Solution: $ LD_LIBRARY_PATH=/usr/local/lib $ export LD_LIBRARY_PATH or $ vi ~/.profile add line in last of file export LD_LIBRARY_PATH=/usr/local/lib ## source : https://www.gnu.org/software/gsl/manual/html_node/Shared-Libraries.html