Install GSL

tar -xzvf gsl-2.1.tar.gz

cd gsl-2.1



sudo make install

If error occurs: error while loading shared libraries: 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/

Add /usr/local/lib into the file

Run the command: sudo ldconfig

Check GSL version

gsl-config --version

Leave a Reply

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

You are commenting using your 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