Installing GNU scientific library and linking to programme

Posted by jack on Super User See other posts from Super User or by jack
Published on 2012-09-28T19:17:43Z Indexed on 2012/10/02 9:40 UTC
Read the original article Hit count: 315

Filed under:
|

I am trying to install a statistical program which requires GNU Scientific Library (GSL). I have successfully installed GSL through the yum command, but my statistical program gives an error when I try to run make install. I think there is a linking problem. How can I solve it?

$ sudo yum install gsl.x86_64
Installed:
  gsl.x86_64 0:1.15-3.fc16
Dependency Installed:
  atlas.x86_64 0:3.8.4-1.fc16
$ tar -xvzf prog.tgz
$ cd prog
$ make
$ gcc -O3 -Wall -Wshadow -pedantic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DVER32 -I/opt/local/include/ -L/opt/local/lib/     -c -o prog.o prog.c
In file included from prog.c:16:0:
prog.h:7:30: fatal error: gsl/gsl_sf_gamma.h: No such file or directory
compilation terminated.
make: *** [prog.o] Error 1

© Super User or respective owner

Related posts about linux

Related posts about installation