The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Best Method for installing Perl Modules metallica1973 High Level Programming 2 03-05-2008 12:54 PM
How to check for installed Perl modules on solaris? jsandova SUN Solaris 4 10-22-2007 09:42 AM
Installing Perl Modules ssmiths001 Shell Programming and Scripting 1 06-26-2006 06:20 PM
Calling perl modules from shell scritps kavitha Shell Programming and Scripting 1 03-31-2004 11:34 AM
Re-Installing Perl frustrated1 Shell Programming and Scripting 1 11-04-2003 03:36 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-05-2008
Registered User
 

Join Date: Dec 2007
Posts: 14
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 
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0