CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Frequently Asked Questions:
I copied the Perl binary from one machine to anoth

 



Jasmine
Administrator

Jan 19, 2001, 11:37 AM

Post #1 of 1 (2861 views)
I copied the Perl binary from one machine to anoth Can't Post

I copied the Perl binary from one machine to another, but scripts don't work.

(From the Perl FAQ)

That's probably because you forgot libraries, or library paths differ. You really should build the whole distribution on the machine it will eventually live on, and then type make install. Most other approaches are doomed to failure.

One simple way to check that things are in the right place is to print out the hard-coded @INC which perl is looking for.


Code
perl -e 'print join("\n",@INC)'

If this command lists any paths which don't exist on your system, then you may need to move the appropriate libraries to these locations, or create symlinks, aliases, or shortcuts appropriately.

You might also want to check out How do I keep my own module/library directory?.



 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives