开发者

How can I use vendor-packaged modules from a Perl I compiled myself?

开发者 https://www.devze.com 2022-12-19 20:02 出处:网络
My 开发者_JAVA百科OS-Distribution provides the rpm-package \"perl-obexftp\", which installs the Modul \"OBEXFTP\".

My 开发者_JAVA百科OS-Distribution provides the rpm-package "perl-obexftp", which installs the Modul "OBEXFTP". These are the files:

/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/OBEXFTP.pm

/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto/OBEXFTP

/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto/OBEXFTP/.packlist

/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto/OBEXFTP/OBEXFTP.bs

/usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto/OBEXFTP/OBEXFTP.so

/var/adm/perl-modules/obexftp

I am using now a Perl which I have build from the source. Is there a simple way to make this OBEXFTP-module accesseble to my Perlinstallation?


Choose one of

  • Add the following pragma to your code:

    use lib '/usr/lib/perl5/vendor_perl/5.10.0';
    
  • Add that path to the PERL5LIB environment variable

  • Invoke your code with perl -I/usr/lib/perl5/vendor_perl/5.10.0 program

  • Rebuild perl so that path is in its baked-in @INC

  • Build the module yourself using your custom-built perl

For details, see perlrun.

0

精彩评论

暂无评论...
验证码 换一张
取 消