LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error: GSL CBLAS library not found (https://www.linuxquestions.org/questions/linux-newbie-8/error-gsl-cblas-library-not-found-814570/)

tony_lincon 06-16-2010 02:45 PM

error: GSL CBLAS library not found
 
I tried to compile one software. After I typed "./configure", there is an error:

error: GSL CBLAS library not found

I installed GSL 1.9 library --- When I was installing, it was like this:

make install
Making install in gsl
make[1]: Entering directory `myDir/gsl-1.9/gsl'
make[2]: Entering directory `myDir/gsl-1.9/gsl'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `myDir/gsl-1.9/gsl'
make[1]: Leaving directory `myDir/gsl-1.9/gsl'
Making install in utils
make[1]: Entering directory `myDir/gsl-1.9/utils'
make[2]: Entering directory `myDir/gsl-1.9/utils'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `myDir/gsl-1.9/utils'
make[1]: Leaving directory `myDir/gsl-1.9/utils'
Making install in sys
make[1]: Entering directory `myDir/gsl-1.9/sys'
make[2]: Entering directory `myDir/gsl-1.9/sys'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include/gsl" || mkdir -p -- "/usr/local/include/gsl"
mkdir: cannot create directory `/usr/local/include/gsl': Permission denied
make[2]: *** [install-pkgincludeHEADERS] Error 1
make[2]: Leaving directory `myDir/gsl-1.9/sys'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `myDir/gsl-1.9/sys'
make: *** [install-recursive] Error 1


I guess that I did not install GSL library correctly, so I got error message such as "GSL CBLAS library not found"?

the Linux environment I am using is CentOS 5.4 in a vmware virtual machine. I have a virtual machine on the network running CentOS 5.4 with the GNOME desktop. I use NoMachine's NX client to connect to the VM from my Windows XP workstation.

Thanks.
Tony

jrtayloriv 06-16-2010 03:43 PM

You need to run make install with sudo -- i.e. do
Code:

sudo make install
You don't have permissions to write to the /usr directory.

tiemen3r 06-17-2010 06:42 PM

Quote:

Originally Posted by jrtayloriv (Post 4005828)
You need to run make install with sudo -- i.e. do
Code:

sudo make install
You don't have permissions to write to the /usr directory.

Actually, CentOS does not (like Ubuntu) use sudo by default. Tony, you need to switch to the root user by typing
Code:

su -
then issue make install.

alan99 06-17-2010 06:53 PM

Is there no binary package for your distribution? I have debian, and I just looked in synaptic and see that I have gsl installed (I'm not even sure why, guess it was a dependency of something I installed)

tiemen3r 06-18-2010 04:44 AM

Quote:

Originally Posted by alan99 (Post 4007033)
Is there no binary package for your distribution? I have debian, and I just looked in synaptic and see that I have gsl installed (I'm not even sure why, guess it was a dependency of something I installed)

Actually, there is. You can install it by switching to the root user and isuing
Code:

yum install gsl-devel

jrtayloriv 06-18-2010 02:14 PM

Oops -- didn't notice that you were on CentOS. But as I said, the primary reason is that you don't have permissions to install there. But as tiemen3r said -- unless you are trying to build and install a development version, you should just install the package via your package management tool.


All times are GMT -5. The time now is 08:30 AM.