Valid
        XHTML 1.1! Valid CSS!
Created 5/7/06 Modified 5/7/06
Chelton Evans

GLS -GNU Scientific Library home

Intro
Install

Intro

GSL-GNU Scientific Library   Reference Manual

Install

I had a few problems with the install, namely that it did not copy the object files to /usr/lib .

I did the usual thing.

./configure
make
make install

Here are my notes on the fix.

Rebuilt the library with
  ./configure --disable-shared

The problems persisted.
[zero@localhost gsl]$ gcc -Wall t1.cpp -o main -lgsl -lgslcblas -lm
/tmp/cc6P8NXu.o(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

Inside /gsl-1.7/

cd ./.libs/
cp libgsl.so.0.8.0 /usr/lib/
cp libgsl.lai /usr/lib/
pushd /usr/lib
ln -s libgsl.lai libgsl.la
ln -s libgsl.so.0.8.0 libgsl.so

Inside /gsl-1.7/
cd cblas/.libs
cp libgslcblas.a /usr/lib/
cp libgslcblas.so.0.0.0 /usr/lib/
cp ../libgslcbas.la /usr/lib/
ln -s libgslcblas.so.0.0.0 libgslcbas.so
ln -s libgslcblas.so.0.0.0 libgslcbas.so.0

g++ -Wall t1.cpp -o main -lgsl -lgslcblas -lm

Finally compiled and ran.