Installing perl module without sudo access

The module in question is Geo::IP::PurePerl and this is what I'm doing:

tar -zxf Geo-IP-PurePerl-1.24.tar.gz
cd Geo-IP-PurePerl-1.24
perl Makefile.PL
make test
sudo make install

However, I don't have sudo access and just make install results in the following error:

[~/perl/Geo-IP-PurePerl-1.24]# make install
ERROR: Can't create '/usr/bin'
Do not have write permissions on '/usr/bin'
 at -e line 1
make: *** [pure_site_install] Error 13

Is there any way to get around this?


I doubt there is any way to install a Perl module to the native system installation of Perl.

In the past I have had to install a new, completely independent version of perl in a directory that I do have write permission over and then ensure that my .profile file links my path to that location. Then whenever I call perl I'm accessing the local install area where I have full write access to.


perl Makefile.PL PREFIX=~/perllib

of course then you will have to add that path to your @INC include path...

Need Your Help

Flash Starling dispatching Events

actionscript-3 events dispatch starling-framework

Is it possible to send data to a starling object after instantiating it?

Url Encoding problem in Java and Solr

java java-ee solr

I am working in Solr and making some filter quires. One of my filter is consists of a space

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.