perl - How can I tell a CPAN installation of PDL to use my FFTW path? -
i need install perl pdl library via cpan non-root user.
cpan non-root works question: how can use cpan non-root user?
now, pdl depends on fftw library. evidently, sysadmin has 32-bit version installed when require 64-bit machine.
i base on following error message during cpan install:
gcc -shared -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic fftw.o -o ../../blib/arch/auto/pdl/fftw/fftw.so \ -lm -l/lib -l/usr/lib -l/usr/local/lib -l/usr/local/lib64 -l/lib64 -l/usr/lib64 -ldfftw -ldrfftw \ /usr/bin/ld: skipping incompatible /usr/local/lib/libdfftw.a when searching -ldfftw /usr/bin/ld: skipping incompatible /usr/local/lib/libdfftw.a when searching -ldfftw /usr/bin/ld: cannot find -ldfftw
now have installed fftw in $home/lib
, indeed libdfftw.a
.
the problem can't gcc compilation instance use locally installed copy.
i have tried following:
- setting ld_library_path in .bash_profile, , yes, exporting -- no dice.
- following how can set library , include paths makefile.pl single installation?, set
o conf makepl_arg
incpan
to:libs=-l/homedir/lib inc=-i/homedir/include
-- still no dice - i did same step 2
o conf mbuild_arg
--- again, no dice.
none of these attempts had effect on gcc
line above; there no additional paths specified -l
flags.
what else can try in cpan
compilation command reference copy of fftw?
update 1
i should add before make changes, makepl_arg
is:
makepl_arg [installdirs=site]
hence, setting makepl_arg
to:
makepl_arg [installdirs=site libs=-l/homedir/lib inc=-i/homedir/include]
i setting these configurations without doing o conf commit
permit experimentation. should commiting these changes?
update 2
i see -l
flags in above gcc
line coming makefile, seems made makemaker presume reading file 'makefile.pl'
the solution examine .cpan/build/pdl-*/
directory.
in install file indicates perldl.conf
file can modified indicate paths fftw libs , fftw include directories.
the process follows , can done after failed attempt @ installing pdl:
- copy
.cpan/build/pdl-*/perldl.conf
file~/.perldl.conf
- notice.
being added before filename - pdl file when installing, under cpan - modify
fftw__libs
,fftw_inc
in~/.perldl.conf
point appropriate locations. - attempt install of pdl again cpan.
a bit confusing pdl not adhere makepl_arg
cpan configuration.
Comments
Post a Comment