Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
For 2023 - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
CPAN Module without root

Posted by John_Moylan (John_Moylan), 19 August 2002
Now this has bothered me for a while.

In the past I have used the CPAN module to install other Perl modules, 'perl -MCPAN -eshell'.
I have root access to the machine so its not a problem
(if you've not heard of it give it a go, it will keep your hair black)  

However, on my own webspace I have only a user account, can I use the CPAN module to install without root access, perhaps to a local directory?

What I like about it is its ability to load all the dependencies thus making life easier, or will I have to do this all by hand and 'use lib ()' ?


Posted by admin (Graham Ellis), 20 August 2002
Good question, John.   The Install module needs some extra variables if you want to place things in non-standard places;  I have got the following from the reference material for running the CPAN modulke (-M CPAN) in an interactive mode,  but I suspect that if you set the things up as environment variables it might be useable in a batch mode too ...

from ...

I am not root, how can I install a module in a personal directory?

     You will most probably like something like this:

       o conf makepl_arg "LIB=~/myperl/lib \
                         INSTALLMAN1DIR=~/myperl/man/man1 \
       install Sybase::Sybperl

     You can make this setting permanent like all o conf settings with o conf commit.

to use modules installed in private directories, you have a choice:
- setenv PERL5LIB /path/to/module
- use lib qw(/path/to/module)
- perl -l/path/to/module

All of these will append /path/to/module to @INC. You should keep in mind that having private/non-standard libraries may cause problems if you wish to have portable code.

Personal experience of this little corner very limited - please do post how you get on / whether the above helps

This page is a thread posted to the opentalk forum at and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2023: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: • WEB: • SKYPE: wellho