LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   perl (https://www.linuxquestions.org/questions/linux-software-2/perl-651746/)

tester^_^ 06-26-2008 03:32 AM

perl
 
when install perl module i got this problem.. have some idea?

cpan[11]> install RPC::PlServer
Running install for module 'RPC::PlServer'
Running make for M/MN/MNOONING/PlRPC/PlRPC-0.2020.tar.gz
Prepending /root/.cpan/build/Net-Daemon-Pj9rTe/blib/arch /root/.cpan/build/Net-Daemon-Pj9rTe/blib/lib to PERL5LIB for 'get'
Has already been unwrapped into directory /root/.cpan/build/PlRPC-OIl76J
Prepending /root/.cpan/build/Net-Daemon-Pj9rTe/blib/arch /root/.cpan/build/Net-Daemon-Pj9rTe/blib/lib to PERL5LIB for 'make'
Could not make: Unknown error
Prepending /root/.cpan/build/Net-Daemon-Pj9rTe/blib/arch /root/.cpan/build/Net-Daemon-Pj9rTe/blib/lib to PERL5LIB for 'test'
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible

knudfl 06-26-2008 11:56 AM

First you will have to build Net-Daemon (-0.43)
Get Net-Daemon-0.43.tar.gz from CPAN and extract to your /home
to get the folder "Net-Daemon"
(It is not necessary (or recommended to use /root) for compiling)

Then the commands are 1) 'perl Makefile.PL' 2) 'make' 3) 'make test
4) su...# make install

And extract PlRPC-0.2001.tar.gz to get "PlRPC-0.2001"
..and the commands are the same as for Net-daemon.

This should work on any system with perl. (unless it's a very old redhat ??)

Seems you have some sort of makefile (unknown to me) to build all ??

Rgds

tester^_^ 06-27-2008 12:39 AM

thank you...
but i have another problem when i use 'install DBI' i have so many test skipped and finally i got this result. and DBI install is not ok. how can i solve it



make: *** [DBI] Error 1
TIMB/DBI-1.605.tar.gz
/usr/bin/make install install DBI -- NOT OK
Failed during this command:
TIMB/DBI-1.605.tar.gz : install NO

knudfl 06-27-2008 12:48 PM

Which distro are you using ?? Linux "name" and "version"
A very nice thing to do is adding this to your LQ profile.

Which version of perl are you using ??

Why not leave "the strange makefile" or method, you are using ?
The "standard way" shown in #2 probably works, and you cannot
do any install or anything else with a gzipped file, please
extract it first.

***DBI-1.605 : (and remember to read README)
1) 'tar zxvf DBI-1.605.tar.gz
2) 'cd DBI-1.605'
3) 'perl Makefile.PL'
4) 'make'
5) 'make test'
6) 'su'
7) 'make install'

is the "proof" way to do it.

Rgds

P.S.: And if you are using a "build program" to extract
and build all perl programs, please tell which ??

tester^_^ 06-29-2008 11:00 PM

is this installation ok



[root@firdaus PlRPC]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/base........ok
t/client......ok
t/compress....ok
t/crypt.......ok
t/methods.....ok
All tests successful.
Files=5, Tests=60, 9 wallclock secs ( 0.04 usr 0.01 sys + 0.59 cusr 0.12 csys = 0.76 CPU)
Result: PASS
[root@firdaus PlRPC]# make install
Writing /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/RPC/PlServer/.packlist
Appending installation info to /usr/lib/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
[root@firdaus PlRPC]#

tester^_^ 06-29-2008 11:17 PM

i used RHEL5
i don't know how to check perl version
actually i'm just beginner

knudfl 06-30-2008 12:13 AM

All perfect !

Version - test = 'perl -v' like 'gcc -v' and 'g++ -v'

Rgds

tester^_^ 06-30-2008 03:20 AM

thank's so much


All times are GMT -5. The time now is 09:14 AM.