Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: site_perl files

by sundialsvc4 (Abbot)
on Jul 20, 2018 at 13:27 UTC ( #1218910=note: print w/replies, xml ) Need Help??

in reply to site_perl files

I do not believe that a package ought to contain a dependency on this particular directory-name, since as others have observed it is not consistent among systems.   But what you might reasonably be able to do now (at least in Unix/Linux) is to create a symbolic link (symlink) named site_perl at the location expected by the package, which links to the actual location of these materials on your system, using the command ln -s.   (Be sure to specify the fully-qualified pathname as the target of the link.)   You must have read/write privileges to the location where the link is to be created, in order to create it there, but access privileges will then be determined by the target when the link is used.   You might also wish to consider reporting the dependency as a defect.

(Be sure to test the link using the ls command after you have created it, since Unix/Linux does not verify the existence or accessibility of the target when creating a symbolic link.)   The use of a hard link is not recommended.

Also:   after you subsequently apply maintenance to a Perl package using the facilities provided by your operating system, check to make sure that the symbolic link is still there and that it is undisturbed.   OS package-builders can embed many different types of commands into their package definitions.   And, if this trick works as expected, document somewhere what you did and why you did it, because such things are easily overlooked.

Replies are listed 'Best First'.
Re^2: site_perl files
by Anonymous Monk on Jul 20, 2018 at 14:39 UTC
    you would have been more help just writing "I don't know what I'm talking about, listen to this anyway"

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2020-01-26 15:54 GMT
Find Nodes?
    Voting Booth?