Install GSL

tar -xzvf gsl-2.1.tar.gz

cd gsl-2.1

./configure

make

sudo make install

If error occurs: error while loading shared libraries: libgsl.so.19: cannot open shared object file: No such file or directory

export LD_LIBRARY_PATH=/usr/local/lib

For some Linux version (like CentOS), above solution may not work and still report same error. So what we need to do is ‘How to export LD_LIBRARY_PATH to all users and system services and set the path permanently

Create a file: vi /etc/ld.so.conf.d/gsl.conf

Add /usr/local/lib into the file

Run the command: sudo ldconfig

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s