PDA

View Full Version : [perl] verificare l'installazione manuale di un modulo


Lorekon
07-10-2008, 18:15
problemissimo per supersperti.

sotto mandriva
mi serve un applicativo che usa un modulo per NON DISPONIBILE nel repository CPAN (e ovviamente assente da qualunque repositoy come modulo .rpm)
per la precisione il modulo č Math::SpecFun::Gamma
mi sono scaricato il modulo, ho seguito queste istruzioni
http://www.igsuite.org/cgi-bin/igwiki/faq21

sembra andare tutto bene (non mi ritorna nessun errore).

tuttavia l'applicativo continua a non funzionare, ho la sensazione che non mi si sia installato il modulo perl.

come posso verificare che si sia installato?

grazie a tutti!!

Lorekon
07-10-2008, 18:20
posto quel che esce dalla shell

[root@XXX Math-GammaFunction-0.02]# Makefile.PL
bash: Makefile.PL: command not found
[root@XXX Math-GammaFunction-0.02]# perl Makefile.PL
Writing Makefile for Math::GammaFunction
[root@XXX Math-GammaFunction-0.02]# make
gcc -c -I. -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/i nclude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pi pe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-siz e=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"0.02\" -DXS_VERSION=\"0.02\" -fPIC "-I/usr/lib/perl5/5.10.0/i386- linux-thread-multi/CORE" GammaFunction.c
Running Mkbootstrap for Math::GammaFunction ()
chmod 644 GammaFunction.bs
rm -f blib/arch/auto/Math/GammaFunction/GammaFunction.so
gcc -shared -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasy nchronous-unwind-tables -L/usr/local/lib GammaFunction.o -o blib/arch/auto/Math /GammaFunction/GammaFunction.so \
-lRmath \

chmod 755 blib/arch/auto/Math/GammaFunction/GammaFunction.so
cp GammaFunction.bs blib/arch/auto/Math/GammaFunction/GammaFunction.bs
chmod 644 blib/arch/auto/Math/GammaFunction/GammaFunction.bs
Manifying blib/man3/Math::GammaFunction.3pm
[root@XXX Math-GammaFunction-0.02]#

Lorekon
07-10-2008, 18:28
se copiassi ROZZAMENTE il modulo .pm dentro
/usr/lib/perl5/5.10.0/Math/ ?

Lorekon
07-10-2008, 18:31
ancora
ho trovato che si puņ usare "use ExtUtils::Installed"
http://www.perl.it/documenti/faq/view.html?pag=3&faq=4

cosa scrivo nella shell?

con "perl use ExtUtils::Installed" non funge
con "use ExtUtils::Installed" non funge


ho trovato due file (GammaFunction.so e GammaFunction.bs) qua dentro
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/auto/Math/GammaFunction/

questo significa che funzionano?