both cmake and make do not compile

Help
Joanna
2012-09-18
2013-06-03
  • Joanna
    Joanna
    2012-09-18

    Hi,

    I have downloaded the latest CVS (checked out today) and both cmake and ./conifgure + make  produce errors on my Ubuntu 12.04 machine:

    cmake . -DNETCDF=OFF   fails with this error:

    • checking for module 'libps'
      -   found libps, version 0.4.5
    • Could NOT find LIBPS (missing:  LIBPS_INCLUDE_DIRS)
      CMake Error at CMakeLists.txt:574 (message):
        pslib is required but was not found.

      Use -DPSLIBDIR=DIR to specify the pslib directory tree.

      Use -DPSLIB=OFF to not use it.

      (suitable Debian/Ubuntu package: pslib-dev)

      (suitable Fedora package: pslib-devel)

    • Configuring incomplete, errors occurred!

    However, pslib-dev is installed.

    ./configure -with-netcdf=no   completes successfully, (it does detect pslib), but then make fails with this error:

    Making all in envi
    make: Entering directory `/home/jo/ubuntutweaks/gdl/cvs/gdl-18sep12/src/pro/envi'
    make: *** No rule to make target `all'.  Stop.
    make: Leaving directory `/home/jo/ubuntutweaks/gdl/cvs/gdl-18sep12/src/pro/envi'
    make: ***  Error 1
    make: Leaving directory `/home/jo/ubuntutweaks/gdl/cvs/gdl-18sep12/src/pro'
    make: ***  Error 1
    make: Leaving directory `/home/jo/ubuntutweaks/gdl/cvs/gdl-18sep12/src'
    make: ***  Error 1
    make: Leaving directory `/home/jo/ubuntutweaks/gdl/cvs/gdl-18sep12'
    make: ***  Error 2

    Please let me know what I can do to compile this.

    Thanks!
    Joanna

     
  • Alain C.
    Alain C.
    2012-09-18

    since I have a U 12.04 around for that purpose, I will give a look.

    but I used to compiled the "configure" way on this without too much trouble, doing:
    1/ mkdir m4
    2/ removing line 41 in configure.in  ( configure.in:41: option `color-tests' not recognized )
    3/ autoreconf -vfi
    4/ ./configure -without-hdf -without-hdf5 -without-netcdf ….
    5/ make -j 3  (only 2 cores on this box)

    HTH

    Alain

     
  • Joanna
    Joanna
    2012-09-18

    That worked for me!  Thanks!