[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [help-gnuastro] GNU Astro configure error - missing WCSLIB component

From: Duane Booher
Subject: Re: [help-gnuastro] GNU Astro configure error - missing WCSLIB component
Date: Fri, 25 May 2018 18:23:50 +0000

Thank you for all your support, I'm almost there except for one last problem.

I'm currently using:
./configure --prefix=/packages/gnuastro/0.5 
CPPFLAGS="-I/packages/wcslib/5.18/include -I/packages/cfitsio/3.410/include"

Which solved most of the issues except for fffree which I cannot find so far:

/bin/sh ../../libtool  --tag=CC   --mode=link gcc  -Wall -O3  -pthread  
-L../../lib -L/packages/wcslib/5.18/lib -o astarithmetic main.o ui.o 
arithmetic.o operands.o -lgnuastro -ljpeg -lwcs -lcfitsio -lcurl -lgsl 
-lgslcblas -lm  
libtool: link: gcc -Wall -O3 -pthread -o .libs/astarithmetic main.o ui.o 
arithmetic.o operands.o  -L../../lib -L/packages/wcslib/5.18/lib 
/scratch/ddb79/gnuastro-0.5/lib/.libs/ -L../lib -ljpeg -lwcs 
-lcfitsio -lcurl -lgsl -lgslcblas -lm -pthread -Wl,-rpath 
/scratch/ddb79/gnuastro-0.5/lib/.libs/ undefined reference to 
collect2: error: ld returned 1 exit status


´╗┐On 5/25/18, 10:31 AM, "Mohammad Akhlaghi" <address@hidden> wrote:

    I am happy we fixed the linker flags. To tell the compiler where to look 
    for the headers, we have to use the `CPPFLAGS' environment variable.
    So the solution is to run this command:
    ./configure --prefix=/packages/gnuastro/0.5 
    CPPFLAGS=-I/packages/wcslib/5.18/include LDFLAGS=-L/packages/wcslib/5.18/lib
    The Configure script's `--includedir' is for the output/installed header 
    files, not the input.
    In other words, with `--includedir=/packages/wcslib/5.18/include', you 
    are telling the build system to put Gnuastro library's headers in the 
    same place as WCSLIB's headers 
    (`--includedir=/packages/wcslib/5.18/include'), while everything else 
    will be installed in `/packages/gnuastro/0.5'.
    The configure command above should fix the problem. If so, please let us 
    To avoid such problems in the future (and use a simple `./configure 
    --prefix=PPPPP') you can set the LDFLAGS and CPPFLAGS similar to how you 
    set the PATH and LD_LIBRARY_PATH variables (to look into each program's 
    specific version locations).
    In the mean time, it would also help your users if MANPATH and INFOPATH 
    also point to the same versions of the software that PATH points to. In 
    this way, when people run any of the two commands below, they will get 
    the man page and Info documentation of the version corresponding to the 
    executable (in this case, NoiseChisel's executable, which is one of 
    Gnuastro's programs).
    $ man astnoisechisel
    $ info astnoisechisel
    These are summarized in the box at the end of this page:


reply via email to

[Prev in Thread] Current Thread [Next in Thread]