Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Im struggling to use cpan to install modules

by tweetiepooh (Hermit)
on Aug 09, 2006 at 08:48 UTC ( [id://566361]=note: print w/replies, xml ) Need Help??


in reply to Im struggling to use cpan to install modules

Depending on your setup but these may work.

1)su -; then set up paths etc and do the whole process as root. You may need to fiddle with the build directories initially.

2)sudo make install; it's only this last stage that needs the special permissions. However some modules seem to also do some other tasks here that may fail.

3)Change the permissions on the perl lihrary directories. I've done this, putting my self in a perladmin group and making that group own /usr/local/lib/perl5 (or where ever on your system).

4)I think that CPANPLUS has the option to sudo for the make install phase, so install that and configure appropriately.

Some of these are inherinantly less safe than others, use what is best for you and your environment.

  • Comment on Re: Im struggling to use cpan to install modules

Replies are listed 'Best First'.
Re^2: Im struggling to use cpan to install modules
by tinita (Parson) on Aug 09, 2006 at 12:43 UTC
    I think that CPANPLUS has the option to sudo for the make install phase
    with CPAN.pm you also can configure your make install command.
    o conf make_install_make_command

    I think this is the place where you'd put the sudo.

      That did the job, Ive spent 2 days working out CPAN but I think its time well spent. Thanks for your help.
Re^2: Im struggling to use cpan to install modules
by Anonymous Monk on Aug 09, 2006 at 09:57 UTC
    Im showing my ignorance but What are the safety issues to consider.
      Well if you make the library directory writeable to a wider set of people it becomes easier to install something duff or nasty.

      The same goes for using a sudo type mechanism.

      Doing anything as root provides the chance to break all sorts of things. What if you get a module where someone has put something into the make to break your system?

      OK so some of these are not likely but they could happen.

Log In?
Username:
Password:

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

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

    No recent polls found