...
cpan module installations
| Warning | ||
|---|---|---|
| ||
If you attempt to launch cpan, you likely get a message similar to the following:
...
| Code Block | ||
|---|---|---|
| ||
# choose 'yes' to do as much automatically as possible # choose 'local::lib' for the approach you want (as you don't have admin rights on TACC) ... cpan[1]> # choose 'yes' to append the information to your .bashrc file ... cpan[1]> install Config::General ... cpan[2]> install Tie::IxHash ... cpan[3]> install Parallel::ForkManager ... cpan[4]> quit |
| Note | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
Several students were having trouble with the cpan downloads that seem to be related to some kind of interruption in the initial download process. The following commands have solved the issue for at least 1 student. Please try the following if you were unable to get the above cpan downloads to work, and let me know if you continue to experience difficulties.
The above solution is based on steps 4-7 of this page. Again, if this does not fix the problem you were having, please let me know. |
| Info | ||
|---|---|---|
| ||
Just before getting your cpan prompt, there is a block of text that looks something like this
The answer here is yes. What is being asked is if you would like the computer by default to be able to access these new perl 'lib' (libraries) you have created, and if you want perl binaries in your PATH. Recall that the PATH variable is where the command line searches when you enter a command so that you don't have to specify its location from the root directory. Similar is true of the PERL_LOCAL_LIB_ROOT and other variables except instead of being searched from the command line, the perl program searches them when commands inside the perl script are accessed. While there are ways to specify how to access these libraries when running individual commands, that is going to be much more complicated at a minimum, and may require editing scripts or programs. |
Once you quit cpan, you will get a message to restart your shell. Since you are on a remote computer, you can accomplish the same thing by logging out of TACC and sshing back in.
...