Installing perl modules manually


 
Thread Tools Search this Thread
Top Forums Programming Installing perl modules manually
# 1  
Old 03-05-2008
Installing perl modules manually

I am trying to install a perl module using a tar file and am having trouble doing so. I see that on the system there are two version of perl installed.

PHP Code:
/usr/bin/perl -v
 
/usr/perl5/5.6.1/lib/sun4-solaris-64int
    
/usr/perl5/5.6.1/lib
    
/usr/perl5/site_perl/5.6.1/sun4-solaris-64int
    
/usr/perl5/site_perl/5.6.1
    
/usr/perl5/site_perl
    
/usr/perl5/vendor_perl/5.6.1/sun4-solaris-64int
    
/usr/perl5/vendor_perl/5.6.1
    
/usr/perl5/vendor_perl 
and the libraries that I want to use:

PHP Code:
 /usr/local/lib/perl5/5.8.5/sun4-solaris
    
/usr/local/lib/perl5/5.8.5
    
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris
    
/usr/local/lib/perl5/site_perl/5.8.5
    
/usr/local/lib/perl5/site_perl 
If I perform a:

PHP Code:
perl Makefile.PL LIB=/usr/local/lib/perl5/5.8.5 INSTALLMAN1DIR=/home/local/perl/Data_Dumper/man/man1 INSTALLMAN3DIR=/home/local/perl/Data_Dumper/man/man3 INSTALLBIN=/usr/local/bin 
INSTALLSCRIPT
=/home/scripts/Data_Dumper 
and then when I run a make, I get this error which is using the wrong libraries:

PHP Code:
make
cc 
-c  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xO3 -xdepend   -DVERSION="2.121\" -DXS_VERSION=\"2.121\" -KPIC -I/usr/perl5/5.6.1/lib/sun4-solaris-64int/CORE  Dumper.c
make: cc: Command not found
make: *** [Dumper.o] Error 127 
My question is how can I tell this Makefile to use these libraries:

PHP Code:
/usr/local/lib/perl5/5.8.5/sun4-solaris
    
/usr/local/lib/perl5/5.8.5
    
/usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris
    
/usr/local/lib/perl5/site_perl/5.8.5
    
/usr/local/lib/perl5/site_perl 
and to use the correct c libraries(find them first)

and to use these directories for the rest:

PHP Code:
INSTALLMAN1DIR=/home/local/perl/Data_Dumper/man/man1 INSTALLMAN3DIR=/home/local/perl/Data_Dumper/man/man3 
INSTALLBIN
=/usr/local/bin 
INSTALLSCRIPT
=/home/scripts/Data_Dumper 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Manually Installing McAfee AV agent

I've tried a few things to manually push out a script as a test from one of my primary machines to a test machine. I have a McAfee agent that I just obtained from McAfee, and I'm simply trying to remember what I did via terminal to push it out from my primary machine. Well, I finally figured it... (3 Replies)
Discussion started by: unimachead
3 Replies

2. Red Hat

Issue w/manually installing OpenSSL 1.0.1j

My Redhat Enterprise 5 system is vulnerable to POODLE and there does not seem to be a Redhat fix coming down the pipe. So I have downloaded OpenSSL 1.0.1j from source and built it. My question is ho do I make sure the Apache and Tomcat use the1.0.1j version and not the distro version. Thanks,... (0 Replies)
Discussion started by: caspersgrin
0 Replies

3. Shell Programming and Scripting

how to create custom modules in perl and how to import all modules with single command?

I have some custom functions which i want to use in perl Scripting all time. i want to How to create modules in perl and how to import them. Also if i create 15 modules and i want to > import all at once then how can i import? (0 Replies)
Discussion started by: Navrattan Bansa
0 Replies

4. UNIX for Dummies Questions & Answers

[Solved] Installing Multiple Perl Modules at Once

How could one install multiple Perl modules at once. I tried and get this at the cli: perl -MCPAN -e'install Crypt::DES Digest::CRC Digest::MD4 IO::Pty IO::Socket::SSL WWW::Mechanize Crypt::PasswdMD5 Net::Write' Can't locate object method "PasswdMD5" via package "Crypt" at -e line 1. ... (0 Replies)
Discussion started by: metallica1973
0 Replies

5. Red Hat

installing perl modules

Hi All, I have a customer asking me to install these perl modules on redhat 4 ent: File::Temp Getopt::Long DBD::mysql Mail::Mailer DBD::DB2 Any idea how can I install those modules. Thanks for any comment you may add. (3 Replies)
Discussion started by: itik
3 Replies

6. UNIX for Advanced & Expert Users

Installing GD Perl graphics modules

I'm on Mac OSX, I *think* I succeeded in installing libpng. I can see usr/local/lib/libpng.dylib and its brethren are in place after executing ./configure nd and the holy make install. (2 Replies)
Discussion started by: andrewduncan
2 Replies

7. UNIX for Dummies Questions & Answers

installing perl modules

I resulted to using /usr/sfw/bin/gmake to install my perl modules until i ran into a problem installing perl/Tk Tk-804.028 gmake: Entering directory `/export/home/Tk-804.028/pod' Sorry no HTML building yet gmake: Leaving directory `/export/home/Tk-804.028/pod' I dont unstand what the error... (2 Replies)
Discussion started by: jameskay
2 Replies

8. Shell Programming and Scripting

extracting used perl modules

Hi, I am trying to extract the includes from all the perl programs in my application space;ie. i want the list of all used modules in my application. First i did a grep like 'grep -r "^use.*;$" * > ~dileepp/search.txt' which gives me the output in the form "filename:line containing use"... (0 Replies)
Discussion started by: DILEEP410
0 Replies

9. Programming

Best Method for installing Perl Modules

Which is the perferred method of installing Perl modules on a Unix system? Is is CPAN or manually installing them via a tar file? Also can anyone point me in the right direction to a decent "how to" on configuring CPAN and how to perform custom installs from a tar? thanks:b: (2 Replies)
Discussion started by: metallica1973
2 Replies

10. Shell Programming and Scripting

Installing Perl Modules

I have a script that uses the File::Listing module. I am trying to install it, but I read the ReadMe and it states that the following modules should be installed first: URI MIME-Base64 HTML-Parser libnet Digest-MD5 Compress-Zlib I am very new to Perl and would apprciate anyone's input on... (1 Reply)
Discussion started by: ssmiths001
1 Replies
Login or Register to Ask a Question