Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: @INC not reflecting correctly

by Anonymous Monk
on Aug 27, 2021 at 16:11 UTC ( [id://11136136]=note: print w/replies, xml ) Need Help??


in reply to @INC not reflecting correctly

As has been noted previously, by default Perl is not relocatable. A non-relocatable Perl can be moved, but only to a new directory structure identical to the one it came from.

However, if you are using an OS that supports symbolic links and you create symbolic links that mimic the old directory structure, you can fool Perl. This worked for me under macOS after an upgrade decided the Perl I had installed in the file system root wasn't allowed to be there, and willy-nilly moved it someplace else. I was able to get a symbolic link created to the new location, and Perl was happy.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11136136]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-24 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found