Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Error in configure/make please help!!!

Help
Uday
2012-05-08
2013-06-03
  • Uday
    Uday
    2012-05-08

    Hai,
    I am new to linux environment, I tried to install gdl using configure method…
    I have installed the all promped requisites except 'hdf4'. so I configured with '-with-hdf=no' and the configre process successful (?!!!) but I am getting errors on 'make'.
    this is the details I got on the terminal window…

    # ./configure -with-hdf=no
    checking autoconf version… >=2.62
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether build environment is sane… yes
    checking for a thread-safe mkdir -p… /bin/mkdir -p
    checking for gawk… gawk
    checking whether make sets $(MAKE)… yes
    checking for g++… g++
    checking whether the C++ compiler works… yes
    checking for C++ compiler default output file name… a.out
    checking for suffix of executables…
    checking whether we are cross compiling… no
    checking for suffix of object files… o
    checking whether we are using the GNU C++ compiler… yes
    checking whether g++ accepts -g… yes
    checking for style of include used by make… GNU
    checking dependency style of g++… gcc3
    checking for ranlib… ranlib
    ./configure: line 3611: AC_PROG_LIBTOOL: command not found
    checking for 64-bit OS… checking for gcc… gcc
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking dependency style of gcc… gcc3
    no
    checking for library containing dlopen… -ldl
    checking for malloc_zone_statistics… no
    checking for sbrk… yes
    checking for mallinfo… yes
    checking how to run the C++ preprocessor… g++ -E
    checking for grep that handles long lines and -e… /bin/grep
    checking for egrep… /bin/grep -E
    checking for ANSI C header files… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking malloc.h usability… yes
    checking malloc.h presence… yes
    checking for malloc.h… yes
    checking malloc/malloc.h usability… no
    checking malloc/malloc.h presence… no
    checking for malloc/malloc.h… no
    checking locale.h usability… yes
    checking locale.h presence… yes
    checking for locale.h… yes
    checking for nexttoward… yes
    checking ext/stdio_filebuf.h usability… yes
    checking ext/stdio_filebuf.h presence… yes
    checking for ext/stdio_filebuf.h… yes
    checking for initscr in -lncurses… yes
    checking for stifle_history in -lreadline… yes
    checking for rl_get_screen_size in -lreadline… yes
    checking for gzopen in -lz… yes
    checking omp.h usability… yes
    checking omp.h presence… yes
    checking for omp.h… yes

    OpenMP enabled (omp.h file was found).
    Try -with-openmp=no if your compiler does not support it (e.g. GCC < 4.2)

    checking for gsl_ran_binomial_knuth in -lgsl… yes
    checking for cblas_drot in -lgslcblas… yes
    checking for plsexit in -lplplotcxxd… yes
    checking for plGetDrvDir in -lplplotd… yes

    Warning! Dynamic drivers have to be disabled in plplot
             to make plplot work with ImageMagic:
             - use the -DENABLE_DYNDRIVERS=OFF cmake option when
               compiling plplot to disable dynamic drivers in plplot, or
             - use -with-Magick=no here to not use ImageMagick in GDL.

    checking for wx-config… /usr/bin/wx-config
    checking for Magick++-config… /usr/bin/Magick++-config
    checking for GetMagickVersion in -lMagick++… yes
    checking for nc-config… /usr/bin/nc-config
    checking for nc_open in -lnetcdf… yes
    checking netcdfcpp.h usability… yes
    checking netcdfcpp.h presence… yes
    checking for netcdfcpp.h… yes
    checking for H5Fopen in -lhdf5… yes
    checking for fftw_malloc in -lfftw3… no
    checking for python… /usr/bin/python
    checking for python version… 2.7
    checking for python platform… linux2
    checking for python script directory… ${prefix}/lib/python2.7/site-packages
    checking for python extension module directory… ${exec_prefix}/lib/python2.7/site-packages
    checking for Py_Initialize in -lpython2.7… yes
    checking /usr/include/python2.7/Python.h usability… yes
    checking /usr/include/python2.7/Python.h presence… yes
    checking for /usr/include/python2.7/Python.h… yes
    checking for Numpy include directory… /usr/lib/python2.7/site-packages/numpy/core/include
    checking for numpy/arrayobject.h… yes
    checking for X… libraries , headers
    checking for PS_new in -lps… yes
    configure: creating ./config.status
    config.status: creating Makefile
    config.status: creating src/Makefile
    config.status: creating src/antlr/Makefile
    config.status: creating src/pro/Makefile
    config.status: creating src/pro/dicom/Makefile
    config.status: creating testsuite/Makefile
    config.status: creating doc/Makefile
    config.status: creating config.h
    config.status: config.h is unchanged
    config.status: executing depfiles commands

                      GDL - GNU Data Language
      --- compilation options: ------------------
      System:             
      Installation prefix: /usr/local
      C++ compiler:        g++ -g -O2
      OpenMP support:      yes
      Build type:          standalone (other: Python module)
      --- optional libraries (consult README/INSTALL): --
      wxWidgets:           yes
      Magick:              yes
      NetCDF:              yes
      HDF4:                no
      HDF5:                yes
      FFTW:                no  (GSL version used)
      libproject:          no  (see also MAP_INSTALL)
      MPICH:               no  (needs explicit enabling)
      Python:              yes (2.7)
      UDUNITS-2:           no  (needs explicit enabling)
      GRIB:                no  (needs explicit enabling)
      GSHHS:               no  (see also MAP_INSTALL)
      Xlib:                yes
      pslib:               yes
      --- notes on auxiliary files: ---------------
      - consult MAP_INSTALL for details concerning auxiliary
        files needed for mapping support
      - SAVE and RESTORE procedures require *.pro files from
        the CMSVLIB package (see README for details)
      ------------------------------------
      --- note on OpenMP support -----------------
       OpenMP was autodetected, use -with-openmp=no if your
       compiler does not support it (e.g. GCC < 4.2)
      ------------------------------------
      use 'make' to build and 'make install' to install GDL
      (optional 'make check' tests the build - experimental)

    *********************** WARNING ******************************
    We plan to drop support for Autotools-based configuration
    (i.e. the configure script) and switch to CMake. If possible,
    please try to compile GDL with CMake (e.g. by typing "cmake ."
    instead of "./configure") and please do report any problems.
    Consult INSTALL.CMake for help on passing options to CMake.
    **************************************************************

    #
    #
    # make
    cd . && /bin/sh /home/thirumalesh/gnudatalanguage/gdl/missing -run automake-1.11 -gnu
    src/Makefile.am:71: Libtool library used but `LIBTOOL' is undefined
    src/Makefile.am:71:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
    src/Makefile.am:71:   to `configure.in' and run `aclocal' and `autoconf' again.
    src/Makefile.am:71:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
    src/Makefile.am:71:   its definition is in aclocal's search path.
    src/antlr/Makefile.am:15: Libtool library used but `LIBTOOL' is undefined
    src/antlr/Makefile.am:15:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
    src/antlr/Makefile.am:15:   to `configure.in' and run `aclocal' and `autoconf' again.
    src/antlr/Makefile.am:15:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
    src/antlr/Makefile.am:15:   its definition is in aclocal's search path.
    testsuite/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined
    testsuite/Makefile.am:1:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
    testsuite/Makefile.am:1:   to `configure.in' and run `aclocal' and `autoconf' again.
    testsuite/Makefile.am:1:   If `AC_PROG_LIBTOOL' is in `configure.in', make sure
    testsuite/Makefile.am:1:   its definition is in aclocal's search path.
    make: ***  Error 1
    #

    please tell me what is the problem?

     
  • Hi,

    Do you have libtool installed?

    Sylwester

     
  • Uday
    Uday
    2012-05-08

    Thanx for your quick reply,

    earlier libtool was not installed, now I installed using 'yum install libtool'
    but still no change, same error message…

     
  • Perhaps running "autoreconf" or "libtoolize" in the same directory where the configure script seats might help?
    S.

     
  • BTW, why not try with CMake. We plan to drop support for the autotools-based configuration (i.e. via configure script) after the next release.

    To use CMake, simply type "cmake ." instead of "./configure", and then follow as usual with "make".

    HTH,
    S.

     
  • Alain C.
    Alain C.
    2012-05-08

    autoreconf -fiv
    (on some systems, you may have to (re)create m4/ (mkdir m4) where some files will be copy)

    I wrote several tutorials to compile GDL, a starting point is:
    http://aramis.obspm.fr/~coulais/IDL_et_GDL/GDLonCentOS_5.7.html

    I really don't like to compile a software as a root, GDL is fully "compilable" as a basic user.

    For a first compilation, I will suggest to desactivate most non mandatory dependences
    (hdf, hdf5, python, wxwidgets …) (except if you really plan to use them)

     
  • Uday
    Uday
    2012-05-08

    "autoreconf" or "libtoolize" did not helped but after 'autoreconfig -fiv' the make process proceeded for futher steps but ends up with two errors, the log details are given below.

    regarding using 'cmake' I got this error,

    # cmake
    bash: cmake: command not found…
    Similar command is: 'make'
    #

    @alaingdl:
    hai the link you have given on the tutorials is in different language, i can not understand it. please give the link for the english tutorial.

    and regarding compiling as a user I got this error, thats why i compiled as a root

    ./configure: line 2124: config.log: Permission denied
    ./configure: line 2134: config.log: Permission denied
    any suggestions?

    this is the log details for make command

    # make
    make  all-recursive
    make: Entering directory `/home/thirumalesh/gnudatalanguage/gdl'
    Making all in src
    make: Entering directory `/home/thirumalesh/gnudatalanguage/gdl/src'
    Making all in antlr
    make: Entering directory `/home/thirumalesh/gnudatalanguage/gdl/src/antlr'
    make: Nothing to be done for `all'.
    make: Leaving directory `/home/thirumalesh/gnudatalanguage/gdl/src/antlr'
    Making all in pro
    make: Entering directory `/home/thirumalesh/gnudatalanguage/gdl/src/pro'
    Making all in dicom
    make: Entering directory `/home/thirumalesh/gnudatalanguage/gdl/src/pro/dicom'
    make: Nothing to be done for `all'.
    make: Leaving directory `/home/thirumalesh/gnudatalanguage/gdl/src/pro/dicom'
    make: Entering directory `/home/thirumalesh/gnudatalanguage/gdl/src/pro'
    make: Nothing to be done for `all-am'.
    make: Leaving directory `/home/thirumalesh/gnudatalanguage/gdl/src/pro'
    make: Leaving directory `/home/thirumalesh/gnudatalanguage/gdl/src/pro'
    make: Entering directory `/home/thirumalesh/gnudatalanguage/gdl/src'
    g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -fopenmp -I/usr/include/ImageMagick   -I/usr/include -I/usr/include   -fopenmp  -g -O2 -MT gdl-CFMTLexer.o -MD -MP -MF .deps/gdl-CFMTLexer.Tpo -c -o gdl-CFMTLexer.o `test -f 'CFMTLexer.cpp' || echo './'`CFMTLexer.cpp
    In file included from CFMTLexer.cpp:5:0:
    CFMTLexer.hpp:3:52: fatal error: gnudatalanguage/gdl/src/antlr/config.hpp: No such file or directory
    compilation terminated.
    make: ***  Error 1
    make: Leaving directory `/home/thirumalesh/gnudatalanguage/gdl/src'
    make: ***  Error 1
    make: Leaving directory `/home/thirumalesh/gnudatalanguage/gdl/src'
    make: ***  Error 1
    make: Leaving directory `/home/thirumalesh/gnudatalanguage/gdl'
    make: ***  Error 2
    #

     
  • 0. there's no reason to compile gdl with root privilages… and there're plenty of reasons not to do it
    1. you need to install cmake before using it
    2. which version of gdl are you trying to compile? (if having problems with the cvs version, please try the last release instead)

    S.

     
  • Uday
    Uday
    2012-05-08

    Thanks a lot Sylwester,
    If root privilages are not required then I dont know why I am getting error like"permission denied".

    I have installed cmake but I am not able to use it. what arguments should  be used for it…… ? please tell me I am new to this environment….

    reg: version of gdl, I am using latest code. I have downloaded the code few days back (14th April)…

     
  • > If root privilages are not required then I dont know why I am getting error like"permission denied".

    Since you have used root privilages once already, config.log was created by root, and a normal user cannot overwirte it.
    You can do "sudo chown -R your_username gdl" to make everything in the gdl directory belong to your user.

    > I have installed cmake but I am not able to use it. what arguments should  be used for it…… ?
    > please tell me I am new to this environment….

    $ cmake .
    $ make

    should be enough, for more options please consult INSTALL.Cmake file:
    http://gnudatalanguage.cvs.sf.net/viewvc/gnudatalanguage/gdl/INSTALL.CMake

    > reg: version of gdl, I am using latest code. I have downloaded the code few days back (14th April)…

    Was it a .tar.gz file, or did you use a cvs client to download it?

    Sylwester

     
  • Uday
    Uday
    2012-05-08

    ok,
    but if I type 'cmake' I will get this details,

    $ cmake
    cmake version 2.8.7
    Usage

      cmake  <path-to-source>
      cmake  <path-to-existing-build>

    Options
      -C <initial-cache>          = Pre-load a script to populate the cache.
      -D <var>:<type>=<value>     = Create a cmake cache entry.
      -U <globbing_expr>          = Remove matching entries from CMake cache.
      -G <generator-name>         = Specify a makefile generator.
      -Wno-dev                    = Suppress developer warnings.
      -Wdev                       = Enable developer warnings.
      -E                          = CMake command mode.
      -i                          = Run in wizard mode.
      -L                    = List non-advanced cached variables.
      -build <dir>               = Build a CMake-generated project binary tree.
      -N                          = View mode only.
      -P <file>                   = Process script mode.
      -find-package              = Run in pkg-config like mode.
      -graphviz=           = Generate graphviz of dependencies.
      -system-information  = Dump information about this system.
      -debug-trycompile          = Do not delete the try_compile build tree.
                                    Only useful on one try_compile at a time.
      -debug-output              = Put cmake in a debug mode.
      -trace                     = Put cmake in trace mode.
      -warn-uninitialized        = Warn about uninitialized values.
      -warn-unused-vars          = Warn about unused variables.
      -no-warn-unused-cli        = Don't warn about command line options.
      -check-system-vars         = Find problems with variable usage in system
                                    files.
      -help-command cmd    = Print help for a single command and exit.
      -help-command-list   = List available listfile commands and exit.
      -help-commands       = Print help for all commands and exit.
      -help-compatcommands = Print help for compatibility commands.
      -help-module module  = Print help for a single module and exit.
      -help-module-list    = List available modules and exit.
      -help-modules        = Print help for all modules and exit.
      -help-custom-modules = Print help for all custom modules and exit.
      -help-policy cmp     = Print help for a single policy and exit.
      -help-policies       = Print help for all policies and exit.
      -help-property prop  = Print help for a single property and exit.
      -help-property-list  = List available properties and exit.
      -help-properties     = Print help for all properties and exit.
      -help-variable var   = Print help for a single variable and exit.
      -help-variable-list  = List documented variables and exit.
      -help-variables      = Print help for all variables and exit.
      -copyright           = Print the CMake copyright and exit.
      -help,-help,-usage,-h,-H,/?= Print usage information and exit.
      -help-full           = Print full help and exit.
      -help-html           = Print full help in HTML format.
      -help-man            = Print full help as a UNIX man page and exit.
      -version,-version,/V = Show program name/version banner and exit.

    Generators

    The following generators are available on this platform:
      Unix Makefiles              = Generates standard UNIX makefiles.
      CodeBlocks - Unix Makefiles = Generates CodeBlocks project files.
      Eclipse CDT4 - Unix Makefiles
                                  = Generates Eclipse CDT 4.0 project files.
      KDevelop3                   = Generates KDevelop 3 project files.
      KDevelop3 - Unix Makefiles  = Generates KDevelop 3 project files.

    $

    and reg: code I have downloaded '.tar.gz'   file.  is it ok or not?

     
  • Concerning cmake: notice the space and a dot after the command - the correct invocation is "cmake ." - with a dot after a space.

    Concerning the .tar.gz: of course it's OK, but using a release tarball you will generally get the same functionalities as from the packaged versions of GDL which are available for most of the distros.

    HTH,
    Sylwester

     
  • Uday
    Uday
    2012-05-08

    Ho Sorry, I did not recognise it…

    ok , tried with cmake with  dissabling HDF etc….  its done.
    but in make processs the compilation was terminated with this errors,

    $ make
    Scanning dependencies of target antlr
    Building CXX object src/antlr/CMakeFiles/antlr.dir/NoViableAltException.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/Parser.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/String.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/CharBuffer.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/CommonToken.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/TokenStreamSelector.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/ANTLRUtil.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/TokenBuffer.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/TokenStreamBasicFilter.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/LLkParser.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/ASTNULLType.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/InputBuffer.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/CharScanner.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/ASTRefCount.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/CommonASTWithHiddenTokens.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/CommonHiddenStreamToken.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/BitSet.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/TreeParser.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/MismatchedCharException.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/Token.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/BaseAST.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/NoViableAltForCharException.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/RecognitionException.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/TokenStreamHiddenTokenFilter.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/ASTFactory.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/MismatchedTokenException.cpp.o
    Building CXX object src/antlr/CMakeFiles/antlr.dir/CommonAST.cpp.o
    Linking CXX static library libantlr.a
    Built target antlr
    Scanning dependencies of target gdl
    Building CXX object src/CMakeFiles/gdl.dir/CFMTLexer.cpp.o
    In file included from /home/thirumalesh/gnudatalanguage/gdl/src/CFMTLexer.cpp:5:0:
    /home/thirumalesh/gnudatalanguage/gdl/src/CFMTLexer.hpp:3:52: fatal error: gnudatalanguage/gdl/src/antlr/config.hpp: No such file or directory
    compilation terminated.
    make: ***  Error 1
    make: ***  Error 2
    make: ***  Error 2
    $

     
  • Uday
    Uday
    2012-05-08

    even with .configure I got this same error…

    /home/thirumalesh/gnudatalanguage/gdl/src/CFMTLexer.hpp:3:52: fatal error: gnudatalanguage/gdl/src/antlr/config.hpp: No such file or directory

     
  • Uday
    Uday
    2012-05-08

    I checked in the    'gnudatalanguage/gdl/src/antlr/'     folder,  config.hpp  file is  present…then why this error

    " fatal error: gnudatalanguage/gdl/src/antlr/config.hpp: No such file or directory"

     
  • Perhaps trying with a freshly unpacked tarball might help - maybe the previous unsuccessful configure runs introduced some wrong pathnames into the Makefiles?
    S.

     
  • Uday
    Uday
    2012-05-17

    Thank you very much Sylwester,

    This helped me in installing gdl but I am unable to build the code using IDE.
    I am using Code::Blocks…
    I am getting error like,
    /home/thirumalesh/gnudatalanguage/gdl/src/gdl.cpp|78|error: ‘rl_initialize’ was not declared in this scope|
    /home/thirumalesh/gnudatalanguage/gdl/src/gdl.cpp|80|error: ‘rl_readline_name’ was not declared in this scope|
    /home/thirumalesh/gnudatalanguage/gdl/src/gdl.cpp|81|error: ‘rl_event_hook’ was not declared in this scope|

    ???
    I think problem with 'readline', but readline is installed in the regular path…y
    any linking errors???
    please help…

     
  • Glad it finally worked.
    I have no experience with any IDE, the messages you've posted does not tell anymore than you've written.
    Sylwester

     
  • Uday
    Uday
    2012-05-24

    hai,
    even without IDE I just compiled 'gdl.cpp' using gcc/g++ compiler, then also I got same error.

    $ g++ gdl.cpp
    gdl.cpp: In function ‘void InitGDL()’:
    gdl.cpp:78:17: error: ‘rl_initialize’ was not declared in this scope
    gdl.cpp:80:3: error: ‘rl_readline_name’ was not declared in this scope
    gdl.cpp:81:3: error: ‘rl_event_hook’ was not declared in this scope

    Is there any problem with 'readline'?