Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re^5: How start an application on Linux

by karlgoethebier (Abbot)
on Jan 21, 2014 at 12:15 UTC ( #1071458=note: print w/replies, xml ) Need Help??

in reply to Re^4: 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."

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»

Replies are listed 'Best First'.
Re^6: How start an application on Linux
by DrHyde (Prior) on Jan 22, 2014 at 11:56 UTC

    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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2023-12-11 05:49 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (41 votes). Check out past polls.