Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: How start an application on Linux

by DrHyde (Prior)
on Jan 21, 2014 at 11:14 UTC ( [id://1071444]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How start an application on Linux
in thread How start an application on Linux

Forcing your code to install in particular directories is a Very Bad Idea Indeed.

Do *not* see the "filesystem hierarchy standard". It is Linux-specific, but in any case it is unnecessary. Just rely on perl (via Module::Build or ExtUtils::MakeMaker) to know where to install it.

  • Comment on Re^4: How start an application on Linux

Replies are listed 'Best First'.
Re^5: How start an application on Linux
by karlgoethebier (Abbot) on Jan 21, 2014 at 12:15 UTC
    "Forcing your code to install in particular directories is a Very Bad Idea Indeed."

    Mmh, if i use Module::Build i can force my code to install in particular directories too, isn't it?

    As far as i understood, i can set installdirs to core, site or vendor.

    So in this case i would end up having a sudoku trainer somewhere in my Perl directory :-[

    One might ask so what, but for me this vision is a pain in the ass.

    On Linux such stuff is traditionally installed in /usr/local/bin or /opt/bin.

    IMHO a much better place - and by chance d’accord with Filesystem_Hierarchy_Standard.

    Best regards, KGB

    «The Crux of the Biscuit is the Apostrophe»

      Your opinion is of no consequence. What matters is the opinion of the user. If you don't try to tell it where to install, then under *normal* circumstances (ie, if the user is using a perl that is in his path) then it will install in the path, probably in /usr/local/bin or /usr/bin. Which is what the user wants. Under other circumstances, such as when the user is using some other build of perl, then your code will not unexpectedly pollute the directories in his path.

      I don't know whether Module::Build will let you force your code into particular directories. But just because it lets you doesn't mean that you should.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-25 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found