LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-15-2013, 03:49 PM   #1
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
install and use local perl module


Hi. I installed an application to a SUSE Linux system on which I have no root privileges. (Installed everything to folders in my own local directories.) Everything compiled and install fine, but after running it I discovered that the version of the DBI::db Perl module already on the system is too old, and so the app crashes because the module is missing an important function.

I haven't done any Perl programming for years, and don't remember much of anything. Could someone explain the quick and painless method of getting the newest version installed locally, and changing the environment so that the local version is used instead of the system one? I know how to do this with C/C++ programs, and Haskell, but not Perl.
 
Old 01-15-2013, 03:54 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I don't have permission to install a module on the system! may help.
 
Old 01-15-2013, 04:55 PM   #3
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166

Original Poster
Blog Entries: 1

Rep: Reputation: 4
Thank you for the help. I decided to try the CPAN approach, thinking that would be easier. However, after I try to install with 'install DBI' in the CPAN shell, the build process eventually dies with:

Code:
/usr/bin/perl /usr/lib/perl5/5.10.0/ExtUtils/xsubpp  -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap  Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -DPERL_USE_SAFE_PUTENV -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -Wall -pipe   -DVERSION=\"1.623\" -DXS_VERSION=\"1.623\" -fPIC "-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/CORE"  -W -Wall -Wpointer-arith -Wbad-function-cast -Wno-comment -Wno-sign-compare -Wno-cast-qual -Wmissing-noreturn -Wno-unused-parameter Perl.c
pgcc-Error-Unknown switch: -fno-strict-aliasing
pgcc-Error-Unknown switch: -pipe
pgcc-Error-Unknown switch: -fmessage-length=0
pgcc-Error-Unknown switch: -Wall
pgcc-Error-Unknown switch: -fstack-protector
pgcc-Error-Unknown switch: -funwind-tables
pgcc-Error-Unknown switch: -fasynchronous-unwind-tables
pgcc-Error-Unknown switch: -Wall
pgcc-Error-Unknown switch: -pipe
pgcc-Error-Unknown switch: -W
pgcc-Error-Unknown switch: -Wall
pgcc-Error-Unknown switch: -Wpointer-arith
pgcc-Error-Unknown switch: -Wbad-function-cast
pgcc-Error-Unknown switch: -Wno-comment
pgcc-Error-Unknown switch: -Wno-sign-compare
pgcc-Error-Unknown switch: -Wno-cast-qual
pgcc-Error-Unknown switch: -Wmissing-noreturn
pgcc-Error-Unknown switch: -Wno-unused-parameter
make: *** [Perl.o] Error 1
  TIMB/DBI-1.623.tar.gz
  /usr/bin/make -- NOT OK
Warning (usually harmless): 'YAML' not installed, will not store persistent state
Prepending /u1/uaf/cmhoward2/.cpan/build/Test-Simple-0.98-qIMiFo/blib/arch /u1/uaf/cmhoward2/.cpan/build/Test-Simple-0.98-qIMiFo/blib/lib /u1/uaf/cmhoward2/.cpan/build/ExtUtils-MakeMaker-6.64-V7EmM3/blib/arch /u1/uaf/cmhoward2/.cpan/build/ExtUtils-MakeMaker-6.64-V7EmM3/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
Failed during this command:
 MSCHWERN/ExtUtils-MakeMaker-6.64.tar.gz      : install NO
 MSCHWERN/Test-Simple-0.98.tar.gz             : install NO
 TIMB/DBI-1.623.tar.gz                        : make NO
Could somebody explain this failure? It appears that "pgcc" does not recognize these flags, so why is CPAN trying to build with pgcc instead of gcc? If that is the problem, how do I change the default compiler?
 
Old 01-15-2013, 05:38 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I'm clueless on this secondary issue, sorry. I didn't mean to throw a curve at you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
not able to install some module in perl jacquestechie Linux - Newbie 4 09-20-2011 02:01 PM
list perl module & install perl module DBD::mysql linson_85 Linux - Newbie 4 06-22-2009 10:42 AM
Perl Module cant Install sohaib Red Hat 6 12-02-2005 09:22 AM
Problem with perl module for w3c validator to work on my local Apache+PHP+perl instal tbamt Linux - Software 0 12-16-2004 05:37 PM
perl module install? DKY Linux - Newbie 33 08-04-2003 01:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration