Skip Menu |
 

This queue is for tickets about the Math-GSL CPAN distribution.

Report information
The Basics
Id: 85037
Status: new
Priority: 0/
Queue: Math-GSL

People
Owner: Nobody in particular
Requestors: dhm267 [...] nyu.edu
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Math::GSL build script error on Arch, can't find cflags, and a fix
Date: Fri, 3 May 2013 16:44:03 -0400
To: bug-Math-Gsl [...] rt.cpan.org
From: Darach Miller <dhm267 [...] nyu.edu>
On line 156 of the Build.pl script (reprinted below), my system threw an error about finding the cflags. Line 156: my %gsl_pkgcfg = ExtUtils::PkgConfig->find ('gsl'); " *** can't find cflags for "gsl" " The terminal command "gsl-config --cflags" replies with "-I/usr/include", which matches with what the file /usr/lib/pkgconfig/gsl.pc says. "pkg-config gsl --cflags" returns an empty line, as it should. I replaced line 156 with manually declaring a hash of proper values: my %gsl_pkgcfg = ( modversion => "1.15", cflags => `gsl-config --cflags`, libs => `gsl-config --libs`); This works, and the rest of the script installs beautifully without any errors. It looks like ExtUtils::PkgConfig can't find gsl on my system, even through $PKG_CONFIG_PATH contains gsl.pc. Looks like an error with ExtUtils, but I figure y'all might want to know in case others have trouble. My system is 3.8.5-1-ARCH, SMP, x86_64. Arch distributes gsl alone, without offering gsl-dev. Maybe bundling gsl.pc into the user package instead of splitting off the dev package does something weird with how ExtUtils works.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.