I am trying to install the GNU scientific library on Ubuntu 12.04. I've downloaded gsl-1.15 from the nearest GNU mirror (in my case this one). I ran the building steps listed on the INSTALL file:
$ sudo ./configure --prefix /usr/local
without any error.
$ sudo make
which resulted in two errors. I ran the next one anyway:
$ sudo make install
I'm posting just the final lines of the respective outputs:
$ sudo make
...
gcc -DHAVE_CONFIG_H -I. -g -O2 -MT gsl-randist.o -MD -MP -MF .deps/gsl-randist.Tpo -c -o gsl-randist.o gsl-randist.c
mv -f .deps/gsl-randist.Tpo .deps/gsl-randist.Po
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -o gsl-randist gsl-randist.o libgsl.la cblas/libgslcblas.la -lm
libtool: link: gcc -g -O2 -o .libs/gsl-randist gsl-randist.o ./.libs/libgsl.so cblas/.libs/libgslcblas.so -lm
./.libs/libgsl.so: undefined reference to `gsl_sf_ellint_RD_e'
collect2: ld returned 1 exit status
make[2]: *** [gsl-randist] Error 1
make[2]: Leaving directory `/home/ana/gsl-1.15'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ana/gsl-1.15'
make: *** [all] Error 2
$ sudo make install
...
make[1]: Entering directory `/home/ana/gsl-1.15'
/bin/bash ./libtool --tag=CC --mode=link gcc -g -O2 -o gsl-randist gsl-randist.o libgsl.la cblas/libgslcblas.la -lm
libtool: link: gcc -g -O2 -o .libs/gsl-randist gsl-randist.o ./.libs/libgsl.so cblas/.libs/libgslcblas.so -lm
./.libs/libgsl.so: undefined reference to `gsl_sf_ellint_RD_e'
collect2: ld returned 1 exit status
make[1]: *** [gsl-randist] Error 1
make[1]: Leaving directory `/home/ana/gsl-1.15'
make: *** [install-recursive] Error 1
Can anyone help me figure out what is the source of this error?
Thank you.
make) as root (sudo). Only run theinstalltarget with root privileges (usually needed, not when running a non-system-wide install). – gertvdijk Jan 2 at 2:50gsl-binis provided in theuniverserepository for your convenience. – gertvdijk Jan 2 at 2:52g++ -lm -lgsl -lgslcblas specfun.c /tmp/ccdeAgsn.o: In function ´main': specfun.c:(.text+0x25): undefined reference to ´gsl_sf_bessel_J0' collect2: ld returned 1 exit status– Ana Carolina Jan 2 at 15:16