Debian Codegraph @

0INSTALL_not_root

raw
1 8 June, 2009
2 Bruce Ravel ([email protected])
3
4
5 Installing Horae and LibPerlXray and its dependencies
6 without root access
7
8
9 If you do not have root access on your computer, but you want to
10 download and install all of my stuff and all of its dependencies, you
11 will have to do some work to prepare your user account. Fortunately, a
12 clever fellow has already worked out a solution to this problem. The
13 trick is to use the local::lib package from CPAN
14 (http://search.cpan.org/~mstrout/local-lib/).
15
16 1. Go to http://search.cpan.org/~mstrout/local-lib/ and download
17 the latest tar.gz file using the link at the top of the page.
18
19 2. Follow the instructions under the heading "To bootstrap if you
20 don't have local::lib itself installed", which I will repeat here:
21
22 1. unpack the local::lib tar.gz file that you just downloaded
23
24 2. cd into the local-lib-1.002000 subdirectory (the version
25 number might be different...)
26
27 3. at the command line, enter "perl Makefile.PL --bootstrap"
28
29 4. answer "yes" to the question it asks about configuring CPAN
30
31 5. do make test then make install
32
33 6. finally do
34
35 echo 'eval $(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)' >>~/.bashrc
36
37 This will alter your .bashrc file so that perl will know to
38 install modules in your own diskspace and find them there
39 once installed. It also exports some environment variables so
40 you can run the programs installed by Horae. (See the
41 local::lib web page for instructions on how to do this for
42 the C shell.)
43
44 3. You will now need to log out and log back in to make this change
45 to the .bashrc file take effect. (Logging out and in is not
46 strictly necessary, but it's easy and it will certainly work.)
47
48
49
50 Notes:
51 ======
52
53 1. These instructions only apply to perl code. This procedue will NOT
54 help you install PGPLOT or Ifeffit without root access. For
55 PGPLOT, you will need to run the PGPLOT_install script with the
56 --prefix command line switch. For Ifeffit, you will need to run
57 the configure script with the --prefix switch. In each case the
58 argument of the switch should be the installation location in your
59 personal disk space. You will then need to set your executation
60 path to find the things that get installed.
61
62 2. Using local::lib behind a proxy server requires that you handle
63 communications through the proxy at the level of the shell. Here at
64 Brookhaven, I have the following in my .bashrc file:
65
66 export http_proxy=http://192.168.1.130:3128/
67