http://www.perlmonks.org?node_id=891487


in reply to Re: Install Math::GSL fail
in thread Install Math::GSL fail

OK so per Anonymous, I deleted the existing Makefile. Per marto I started a new session. Per Khen1950fx I set the env variable, but it's at /usr/local/pkgconfig.

On trying to install again, I get

cpan[1]> install Math::GSL Going to read '/root/.cpan/Metadata' Database was generated on Fri, 04 Mar 2011 10:27:20 GMT Running install for module 'Math::GSL' Running make for L/LE/LETO/Math-GSL-0.22.tar.gz Checksum for /root/.cpan/sources/authors/id/L/LE/LETO/Math-GSL-0.22.ta +r.gz ok Scanning cache /root/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Going to build L/LE/LETO/Math-GSL-0.22.tar.gz Checking for GSL..Package gsl was not found in the pkg-config search p +ath. Perhaps you should add the directory containing `gsl.pc' to the PKG_CONFIG_PATH environment variable No package 'gsl' found at Build.PL line 108 *** can not find package gsl *** check that it is properly installed and available in PKG_CONFIG_PA +TH at Build.PL line 108 Warning: No success on command[/usr/bin/perl Build.PL ] 'YAML' not installed, will not store persistent state LETO/Math-GSL-0.22.tar.gz /usr/bin/perl Build.PL -- NOT OK Running Build test Make had some problems, won't test Running Build install Make had some problems, won't install Could not read '/root/.cpan/build/Math-GSL-0.22-pXritF/META.yml'. Fall +ing back to other methods to determine prerequisites Failed during this command: LETO/Math-GSL-0.22.tar.gz : writemakefile NO '/usr +/bin/perl Build.PL ' returned status 256
GSL does not appear in /usr/local/pkgconfig, but it is installed
[root@stats corman]# yum info GSL Loaded plugins: langpacks, presto, refresh-packagekit Adding en_US to language list Installed Packages Name : gsl Arch : i686 Version : 1.14 Release : 1.fc14 Size : 2.3 M Repo : installed From repo : fedora Summary : The GNU Scientific Library for numerical analysis URL : http://www.gnu.org/software/gsl/ License : GPLv3 and GFDL and BSD Description : The GNU Scientific Library (GSL) is a collection of rout +ines for : numerical analysis, written in C.
But locate gsl.pc returns nothing :-/ locate GSL only returns stuff in /home/corman/.cpan/build. And it strikes me that this could be part of the problem. When I first tried to install this I forgot to SU to root. Do these files need to be in /root/.cpan/build if I'm running CPAN as root?

But that still doesn't address the gsl.pc issue... UPDATE: I installed YAML. Now CPAN says:

cpan[3]> install Math::GSL Running install for module 'Math::GSL' Running Build for L/LE/LETO/Math-GSL-0.22.tar.gz Has already been unwrapped into directory /root/.cpan/build/Math-GSL +-0.22-yrnKBo '/usr/bin/perl Build.PL ' returned status 256, won't make Running Build test Make had some problems, won't test Running Build install Make had some problems, won't install