EnvironmentSetup/AmigaOS/CPAN install

Back to Amiga OS Environment Setup

Original information is taken from CPAN install, on OpenOffice.org wiki

What means CPAN?
CPAN is the Comprehensive Perl Archive Network, a large collection of Perl software and documentation. You can begin exploring from either http://www.cpan.org/, http://www.perl.com/CPAN/ or any of the mirrors listed at http://www.cpan.org/SITES.html and http://mirror.cpan.org/. Note that CPAN is also the name of a Perl module, CPAN.pm, which is used to download and install Perl software from the CPAN archive. This page tells you only enough to use this Perl module to install additional perl modules. You may find the documentation for it by using perldoc CPAN via the command line or on the web at http://search.cpan.org/author/JHI/perl-5.8.0/lib/CPAN.pm. Install a module with CPAN.

Start the CPAN module
Open a terminal, and type :

sh

Followed by : $ perl -MCPAN -e shell

This can not work, for several reasons. One of them, can be that you are behind a firewall.

Solution : set FTP_PASSIVE to 1. $ export FTP_PASSIVE="1"

Then ... retry to start the CPAN module. $ perl -MCPAN -e shell

If this is your first time you use this module you have to answer some questions of this module. Just follow the directions on your screen.

For example, if you want to install the Mail::Sender module do it like:

cpan> install Mail::Sender

Typing help gets you some online help.

cpan> help

And typing quit quits the module.

cpan> quit

This is everything you need to know to use the CPAN module.

Install missing modules on Amiga OS
With the current pre-compiled perl version available, several modules are missing. OOo4Kids/OOoLight will need :


 * Archive::Zip
 * Compress::Raw::Zlib
 * (maybe other, but I'm currently stuck with Compress::Raw::Zlib)

To summarize, questions will be asked, and if you don't know what answer, keep the default answer.

DISCLAIMER : The log below is there to illustrate, and might be missing some information.

/SDK/Local/clib2/lib/perl5/5.8.5/CPAN/Config.pm initialized.

CPAN is the world-wide archive of perl resources. It consists of about 100 sites that all replicate the same contents all around the globe. Many countries have at least one CPAN site already. The resources found on CPAN are easily accessible with the CPAN.pm module. If you want to use CPAN.pm, you have to configure it properly.

If you do not want to enter a dialog now, you can answer 'no' to this question and I'll try to autoconfigure. (Note: you can revisit this dialog anytime later by typing 'o conf init' at the cpan prompt.)

Are you ready for manual configuration? [yes]

/.cpan Shall we use it as the general CPAN build and cache directory?

CPAN build and cache directory? [/.cpan], e.g.

Your terminal expects ISO-8859-1 (yes/no)? [yes]

If you have one of the readline packages (Term::ReadLine::Perl, Term::ReadLine::Gnu, possibly others) installed, the interactive CPAN shell will have history support. The next two questions deal with the filename of the history file and with its size. If you do not want to set this variable, please hit SPACE RETURN to the following question.

File to save your history? [/.cpan/histfile] Number of lines to save? [100]

The CPAN module can detect when a module that which you are trying to build depends on prerequisites. If this happens, it can build the prerequisites for you automatically ('follow'), ask you for confirmation ('ask'), or just ignore them ('ignore'). Please set your policy to one of the three values.

Policy on building prerequisites (follow, ask or ignore)? [ask]

The CPAN module will need a few external programs to work properly. Please correct me, if I guess the wrong path for a program. Don't panic if you do not have some of them, just press ENTER for those. To disable the use of a download program, you can type a space followed by ENTER.

Warning: gzip not found in PATH Where is your gzip program? /SDK/C/gzip Warning: tar not found in PATH Where is your tar program? /SDK/C/tar Warning: unzip not found in PATH Where is your unzip program? Warning: make not found in PATH Where is your make program? /SDK/C/gmake Warning: lynx not found in PATH Where is your lynx program? Warning: wget not found in PATH Where is your wget program? /SDK/C/wget Warning: ncftpget not found in PATH Where is your ncftpget program? Warning: ncftp not found in PATH Where is your ncftp program? Warning: ftp not found in PATH Where is your ftp program? Warning: gpg not found in PATH Where is your gpg program? What is your favorite pager program? [more] What is your favorite shell? sh

Every Makefile.PL is run by perl in a separate process. Likewise we run 'make' and 'make install' in processes. If you have any parameters (e.g. PREFIX, LIB, UNINST or the like) you want to pass to the calls, please specify them here.

If you don't understand this question, just press ENTER.

Parameters for the 'perl Makefile.PL' command? Typical frequently used settings:

PREFIX=~/perl      non-root users (please see manual for more hints)

Your choice: [] Parameters for the 'make' command? Typical frequently used setting:

-j3             dual processor system

Your choice: [] Parameters for the 'make install' command? Typical frequently used setting:

UNINST=1        to always uninstall potentially conflicting files

Your choice: []

Sometimes you may wish to leave the processes run by CPAN alone without caring about them. As sometimes the Makefile.PL contains question you're expected to answer, you can set a timer that will kill a 'perl Makefile.PL' process after the specified time in seconds.

If you set this value to 0, these processes will wait forever. This is the default and recommended setting.

Timeout for inactivity during Makefile.PL? [0]

If you're accessing the net via proxies, you can specify them in the CPAN configuration or via environment variables. The variable in the $CPAN::Config takes precedence.

Your ftp_proxy? Your http_proxy? Your no_proxy?

If you're accessing the net via proxies, you can specify them in the CPAN configuration or via environment variables. The variable in the $CPAN::Config takes precedence.

Your ftp_proxy? Your http_proxy? Your no_proxy? You have no /.cpan/sources/MIRRORED.BY I'm trying to fetch one LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY

Now we need to know where your favorite CPAN sites are located. Push a few sites onto the array (just in case the first on the array won't work). If you are mirroring CPAN to your local workstation, specify a file: URL.

First, pick a nearby continent and country (you can pick several of each, separated by spaces, or none if you just want to keep your existing selections). Then, you will be presented with a list of URLs of CPAN mirrors in the countries you selected, along with previously selected URLs. Select some of those URLs, or just keep the old list. Finally, you will be prompted for any extra URLs -- file:, ftp:, or http: -- that host a CPAN mirror.

(1) Africa (2) Asia (3) Australasia (4) Central America (5) Europe (6) North America (7) Oceania (8) South America Select your continent (or several nearby continents) []5

Select your country (or several nearby countries) [] invalid items entered, try again (1) Austria (2) Belgium (3) Bosnia and Herzegovina (4) Bulgaria (5) Croatia (6) Czech Republic (7) Denmark (8) Finland (9) France (10) Germany (11) Greece (12) Hungary (13) Iceland (14) Ireland (15) Italy (16) Latvia 15 more items, hit SPACE RETURN to show them Select your country (or several nearby countries) []

Sorry! since you don't have any existing picks, you must make a geographic selection.

(1) ftp://cpan.cict.fr/pub/CPAN/ (2) ftp://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/cpan/ (3) ftp://ftp.crihan.fr/mirrors/ftp.cpan.org/ (4) ftp://ftp.inria.fr/pub/CPAN/ (5) ftp://ftp.lip6.fr/pub/perl/CPAN/ (6) ftp://ftp.oleane.net/pub/CPAN/ (7) ftp://ftp.u-strasbg.fr/CPAN (8) ftp://mir1.ovh.net/ftp.cpan.org (9) http://cpan.enstimac.fr/ Select as many URLs as you like (by number), put them on one line, separated by blanks, e.g. '1 4 5' [] 6 7 4

Enter another URL or RETURN to quit: []

commit: wrote /SDK/Local/clib2/lib/perl5/5.8.5/CPAN/Config.pm Terminal does not support AddHistory.

cpan shell -- CPAN exploration and modules installation (v1.7601) ReadLine support available (try 'install Bundle::CPAN')

cpan> install Bundle::CPAN CPAN: Storable loaded ok We have to reconfigure CPAN.pm due to following uninitialized parameters:

unzip

/SDK/Local/clib2/lib/perl5/5.8.5/CPAN/Config.pm initialized.

... and so on