Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: why perl doesnt recognize modules after copyied *.pm to paths in @INC

by tobyink (Abbot)
on Nov 29, 2012 at 13:46 UTC ( #1006254=note: print w/replies, xml ) Need Help??


in reply to why perl doesnt recognize modules after copyied *.pm to paths in @INC

Many Perl modules include compiled components written in XS (a highly pre-processed flavour of C). Just copying across the Perl module (which in these cases is often just a stub to load the XS) is insufficient.

On a machine with Internet access, download the installation tarballs for the libraries you need (including their dependencies), then copy them to the machine you want them on. Then, making sure you install them in the correct order to satisfy any dependencies), decompress them and run:

perl Makefile.PL make make test make install

for each.

Or, as per marto's suggestion set up a local CPAN mirror. That's probably more initial work, but would pay off in the long term.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
  • Comment on Re: why perl doesnt recognize modules after copyied *.pm to paths in @INC
  • Download Code

Replies are listed 'Best First'.
Re^2: why perl doesnt recognize modules after copyied *.pm to paths in @INC
by czkzga (Initiate) on Nov 29, 2012 at 14:25 UTC
    thx, it is important information i will check if modules have xs.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006254]
help
Chatterbox?
[Discipulus]: Eily tongue twister or votes? ;=)
[Eily]: Discipulus turn me into a Bishop
Discipulus abracadabra.. Eily tranformed into a.. shop for bisexual peoples..
[LanX]: Eily don't be sad ... you are the Bishop of our hearts.
[marto]: 1nickt, I just said that in a Sean Connery accent
[LanX]: Discipulus++ # Bi-Shop
[Eily]: is the Bishop of hearts higher or lower ranked than the Jack?
[ambrus]: Higher.
[Eily]: Discipulus what's the merchandise? Other bi-people?

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (13)
As of 2017-09-26 12:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (294 votes). Check out past polls.

    Notices?