Web Hosting Talk







View Full Version : How do you install LWP on a RAQ?


XTNet
11-08-2001, 11:57 PM
Anyone know how to install LWP on a raq?

Thanks

jaschwa
11-12-2001, 01:54 PM
Installing LWP requires you to use Telnet as the root user. This will void your warranty, so don't do this if you're not comfortable!

You need the following files, but you may want to check
www.cpan.org/modules/by-modules (http://www.cpan.org/modules/by-modules) for the latest versions, and for the corresponding README files.

URI (http://cpan.valueclick.com/modules/by-module/URI/URI-1.17.tar.gz)
MIME-Base64 (http://cpan.valueclick.com/modules/by-module/MIME/MIME-Base64-2.12.tar.gz)
HTML-Parser (http://cpan.valueclick.com/modules/by-module/HTML/HTML-Parser-3.25.tar.gz)
HTML-Tagset (http://cpan.valueclick.com/modules/by-module/HTML/HTML-Tagset-3.03.tar.gz)
libnet (http://cpan.valueclick.com/modules/by-module/Net/libnet-1.09.tar.gz)
Digest-MD5 (http://cpan.valueclick.com/modules/by-module/Digest/Digest-MD5-2.16.tar.gz)
Finally, Libwww-perl for Perl 5.004 (http://cpan.valueclick.com/modules/by-module/LWP/libwww-perl-5.53.tar.gz) or Libwww-perl for Perl 5.005 (http://cpan.valueclick.com/modules/by-module/LWP/libwww-perl-5.60.tar.gz)


After you download the files, upload them to /tmp on your server.

Telnet into your server and su to root.

To unpack the gzip'd files, type this command: gunzip -d *.gz

Extract the tar files with this command: tar -xvf tar-file

Do a dir -l to see what files and directories you have now. You should have the .tar files and a directory for each.

You can delete the .tar files with rm *.tar

cd into each directory (do the HTML-Tagset directory before the HTML-Parser directory, and do the libwww-perl directory last), and perform the following commands :
perl Makefile.PL
make
make test
make install

Watch for warnings & errors. The "perl Makefile.pl" command for libwww.perl may complain that it couldn't find FTP 2.4, but it can run without it.

Afterwards, you can remove each directory and their contents with this command: rm -R directory-name

I wish there was a Cobalt PKG file available for this, but I couldn't find one. Good luck!