This is my first post. My knowledge base is UNIX/Intermediate,
IRIX system admin/beginner and PERL/beginner.
The short question:
After one follows the installation procedure for a module, that is,
download, gunzip, tar, ... then
perl Makefile.PL
make
make test
make install
How does one get the system to recognize the installed PERL module?
Is there a simple way to test that it work?
-----------------------------------------------------------------------
The Long explaination of what I'm trying to do:
This previous message from this listing describes what I want to
be able to do:
*************************************************************************
*It's really easy using the LWP packages. For instance: *
* *
* use LWP::Simple; *
* getstore ('http://www.perl.org/Images/title.gif', 'title.gif'); *
* *
*will fetch you a camel. *
*************************************************************************
It seems LWP is included in the libwww module or is the LWP module, I'm
not really sure which is accurate. Hence my intent is to
install the libwww module.
In the libwww module's README file is says:
*************************************************************************
* " We recommend that you have the following packages installed *
* before you install libwww-perl:" *
* *
* URI *
* MIME-Base64 *
* HTML-Parser *
* libnet *
* Digest-MD5 *
*************************************************************************
So, I downloaded, gunzipped, and untarred them into an account on my SGI
running IRIX 6.5.8, which is networked to several similar machines. Our
system installation of PERL is located on another machine but we all
link to it via /usr/global/perl. Since there isn't enough room on the
system holding our installation of PERL 5.004 to put these modules, I
thought I would install them on one of my disks. Here is a log of how
the first installation of URI-1.16 went with only minor editing
(for brevity):
**********************************************************************
>perl Makefile.PL PREFIX=/perll/ut/URI-1.16
\z not supported by this perl. Fixing URI.pm...
Warning: prerequisite MIME::Base64 2 not found at (eval 1) line 221.
Writing Makefile for URI
> make
mkdir ./blib
mkdir ./blib/lib
mkdir ./blib/arch
mkdir ./blib/arch/auto
mkdir ./blib/arch/auto/URI
mkdir ./blib/lib/auto
mkdir ./blib/lib/auto/URI
cp URI/WithBase.pm ./blib/lib/URI/WithBase.pm
cp URI/_generic.pm ./blib/lib/URI/_generic.pm
cp URI/news.pm ./blib/lib/URI/news.pm
...
cp URI/file/Unix.pm ./blib/lib/URI/file/Unix.pm
cp URI/_userpass.pm ./blib/lib/URI/_userpass.pm
cp URI/_query.pm ./blib/lib/URI/_query.pm
>make test
PERL_DL_NONLAZY=1 /usr/global/bin/perl -I./blib/arch -I./blib/lib
-I/usr/global/lib/perl5/IP27-irix/5.00404 -I/usr/global/lib/perl5 -e
'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
t/*.t
t/abs...............ok
t/clone.............ok
t/data..............skipping test on this platform
t/escape............ok
...
t/rsync.............ok
All tests successful.
Files=20, Tests=324, 11 secs ( 3.66 cusr 1.01 csys = 4.67 cpu)
i>
make install
Installing /perll/ut/URI-1.16/lib/site_perl/./URI/_segment.pm
Installing /perll/ut/URI-1.16/lib/site_perl/./URI/file/FAT.pm
...
Installing /perll/ut/URI-1.16/lib/site_perl/./URI/pop.pm
Installing /perll/ut/URI-1.16/lib/site_perl/./URI.pm
Writing /perll/ut/URI-1.16/lib/site_perl/IP27-irix/auto/URI/.packlist
sh: /perll/ut/URI-1.16/lib/IP27-irix/5.00404/perllocal.pod: cannot
create: No such file or directory
*** Error code 1 (bu21)
***************************************************************************
To get around the last error, I created the file,
/perll/ut/URI-1.16/lib/IP27-irix/5.00404/perllocal.pod
and re-ran "make install" which "seemed" to correct that problem.
I mention this only because I had to do this for every module I tried
to install. Why is that?
Not really sure if the order the modules were listed was significant I
tried installing the MIME module and then reinstalling the URI module.
I did not get any errors during the MIME installation, but still did not
get rid of the fact that the URI module seems to be looking for some of
the MIME functionality. Why is that? Doesn't installing it make it
available?
The following are the lines containing errors from another installation,
although the vast majority of the installs seemed to go "ok".
**********************************************************************
HTML-Parser-3.25
>perl Makefile.PL
PREFIX=/perll/ut/HTML-Parser-3.25
Checking if your kit is complete...
Looks good
Warning: prerequisite HTML::Tagset 3 not found at (eval 1) line 221.
Writing Makefile for HTML::Parser
>make
mkdir ./blib
mkdir ./blib/lib
... (chopped)
cc -n32 -c-D_BSD_TYPES -D_BSD_TIME -woff 1009,1110,1184 -OPT:Olimit=0
-DLANGUAGE_C -O3 -DVERSION=\"3.25\"-DXS_VERSION=\"3.25\"-I/usr/global/
lib/perl5/IP27-irix/5.00404/CORE -DMARKED_SECTION Parser.c
Running Mkbootstrap for HTML::Parser ()
...(chopped)
chmod 644 ./blib/arch/auto/HTML/Parser/Parser.bs
>make test
PERL_DL_NONLAZY=1 /usr/global/bin/perl -I./blib/arch -I./blib/lib
-I/usr/global/lib/perl5/IP27-irix/5.00404 -I/usr/global/lib/perl5 -e
'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;'
t/*.t
t/api_version.......ok
...
t/handler...........ok
t/headparser-http...skipping test on this platform
t/headparser........ok
t/ignore............ok
...
/usr/global/lib/perl5/site_perl .) at blib/lib/HTML/LinkExtor.pm line
31.
BEGIN failed--compilation aborted at blib/lib/HTML/LinkExtor.pm line 31.
dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-4
Failed 4/4 tests, 0.00% okay
t/magic.............ok
...
t/xml-mode..........ok
Failed TestStatus Wstat Total FailFailedList of failed
Failed 1/38 test scripts, 97.37% okay. 4/208 subtests failed,
98.08% okay.
*** Error code 2 (bu21)
>make install
Skipping /perll/ut/HTML-Parser-3.25/lib/site_perl/
IP27-irix/./auto/HTML/Parser/Parser.so (unchanged)
...
Writing /perll/ut/HTML-Parser-3.25/lib/site_perl/
IP27-irix/auto/HTML/Parser/.packlist
Appending installation info to
perll/ut/HTML-Parser-3.25/lib/IP27-irix/5.00404/perllocal.pod
**************************************************************************
**************************************************************************
Bundle-libnet-1.00
>perl Makefile.PL PREFIX=/perll/ut/Bundle-libnet-1.00
Checking if your kit is complete...
Looks good
Writing Makefile for Bundle::libnet
> make
mkdir ./blib
...
mkdir ./blib/lib/auto/Bundle/libnet
cp libnet.pm ./blib/lib/Bundle/libnet.pm
>make test
No tests defined for Bundle::libnet extension.
> make install
Installing /perll/ut/Bundle-libnet-1.00/lib/site_perl
/./Bundle/libnet.pm
Writing /perll/ut/Bundle-libnet-1.00/lib/site_perl/
IP27-irix/auto/Bundle/libnet/.packlist
>make install
Appending installation info to
/perll/ut/Bundle-libnet-1.00/lib/IP27-irix/5.00404/perllocal.pod
**************************************************************************
Still thought I might be ok, until I tried:
***************************************************************
libwww-perl-5.53
>perl Makefile.PL PREFIX=/perll/ut/libwww-perl-5.53
Checking for URI........... failed
Can't locate URI.pm in @INC (@INC contains:
/usr/global/lib/perl5/IP27-irix/5.00404 /usr/global/lib/perl5
/usr/global/lib/perl5/site_perl/IP27-irix /usr/global/lib/perl5/site_perl .)
at Makefile.PL line 32.
The URI module must be installed. WWW without URIs would not
be that great :-)
Checking for HTML::Parser.. failed
Checking for MIME::Base64.. failed
Checking for Net::FTP...... failed
Checking for Digest::MD5 .. failed
The missing modules can be obtained from CPAN. Visit
<URL:http://www.perl.com/CPAN/> to find a CPAN site near you.
*****************************************************************
Any insights would be appreciated.
Thank you for your consideration.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]