On Dec 29, 2009, at 20:37, Peng Yu wrote:

> I'm trying to update CPAN, but I don't have root permission. I'm
> wondering where the update is installed.

In general without root or sudo access you'll not be able to install perl 
modules - you can install them in directories where you have write access to 
though. 

You may want to look at the local::lib perl module for installing without root 
permissions.
> 
> I have the following line in ~/.cpan/CPAN/MyConfig.pm. Will the
> updated be installed in ~/site?

No. 

In general perl modules get install in three locations: Vendor, Site, or Core. 
Core is where perl installs stuff, Vendor is where your package manager 
installs stuff, and Site is where you install stuff. But they all are different 
directories on your system and to make it more confusing, they differ depending 
on operating system. 

What your cpan configuration is telling you is that cpan is installing perl 
modules in the "Site" directories on your computer.  On my computer that 
directory is /usr/local/share/perl/5.10.0. You'll have to find out where that 
is on your machine.

More on this issue here: http://use.perl.org/~schwern/journal/39246

Jeremiah


--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to