Module Installation's trouble - Can't locate loadable object for module Text::CSV_XS

Posted on 2014-03-22
Last Modified: 2014-03-28

I'm having a trouble on installing the Text::CSV_XS perl module on AIX OS.
Actually, I'm not root and the server doesn't communicate with the ftp servers because of a proxy prohibiting them.
So I can't configure the cpan shell to install modules easierly.

I've downloaded modules from cpan website and figure out to install them with my own user which does'nt have root's rights. I follow the readme instructions : perl, make, make test and make install. I sat the variable INSTALL_BASE and gave to the command my perl installation home like this :
perl Makefile.PL INSTALL_BASE=/apps/vali/exploit/script/bao/lib/Text-CSV_XS-1.05
I got this (with a warning) :
Welcome to Text::CSV (v.1.32)
You have Text::CSV_XS (v.1.05), so Text::CSV can work very fast!!

Checking if your kit is complete...
Looks good
'INSTALL_BASE' is not a known MakeMaker parameter name.
Writing Makefile for Text::CSV

the make command looked to run well, the make test command too.
But the make install command failed wih permission denied while creationg a directory where I didn't asked him to create it. I got this :

Warning: You do not have permissions to install into /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi at /usr/opt/perl5/lib/5.8.2/ExtUtils/ line 114.
mkdir /usr/opt/perl5/lib/site_perl/5.8.2/Text: Permission denied at /usr/opt/perl5/lib/5.8.2/ExtUtils/ line 176
make: The error code from the last command is 255.


It seems like the installation process doesn't consider my variable INSTALL_BASE.

I need to install some lot of others modules, how can you help me to resolve this issue.
May be you have another way to get around this problem without being root and impossiblity to configure the cpan shell.

Thanks for your help.
Question by:papfal
  • 4
  • 3
LVL 24

Expert Comment

Comment Utility
Try using local::lib

then you can do this

perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)'

Author Comment

Comment Utility
The local::lib module is not installed. Actually, I can't use the CPAN shell to install local::lib even LWP modules.

I've got this when running perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)' command as asked in the notice insallation :

hvalihra-/apps/vali/exploit/script/bao/lib> perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)'
Can't locate local/ in @INC (@INC contains: /apps/vali/exploit/script/bao/lib /usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2 /usr/opt/perl5/lib/site_perl).
BEGIN failed--compilation aborted.

The PERL5LIB variable contains "/apps/vali/exploit/script/bao/lib"

How can I circumvent the cpan shell installation in your solution ?

Thanks for your response ?
LVL 24

Expert Comment

Comment Utility
another option, as long as you have gcc is for you to make a local installation of perl


tar -xzvf perl-5.8.8.tar.gz
cd perl-5.8.8
sh Configure -Dprefix=/apps/vali/exploit/script/bao/lib -des #make this your home directory
make test
make install
mkdir -p ~/usr/local #used for template toolkit installation
) | tee perlinstall.out

( cat >> ~/.bashrc
export $PATH=~/apps/vali/exploit/script/bao/lib:$PATH  
export FTP_PASSIVE=1 )

  manual configuration? no
  o conf prerequisites_policy follow
  o conf commit
  install cpan
    (i.e., upgrade CPAN)
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.


Author Comment

Comment Utility
Thanks for your help.

But I still have the same trouble. The process failed at hte make install command.
No right to create directory.

The problem is that I'm working in a sensitive server for a sensitive client.
The server is used for Service delivry so I can't do everything I want in it. Perl is already installed (on version 5.8.2 for AIX OS).

I'm just trying to install such modules without being root.

Can I have a light solution without re-installing perl ?
I think that the solution that consist to modify the Makefile.PL behaviour looks to be a good way.

Thanks for your solutions and your help
LVL 24

Accepted Solution

mankowitz earned 500 total points
Comment Utility
One last try. Older versions of perl used PREFIX instead of INSTALL_BASE.

perl Makefile.PL PREFIX=/apps/vali/exploit/script/bao/lib

Other than that, I really don't hve other ideas.

Author Comment

Comment Utility
I've installed it by modifying directly the Makefile generated by the command make.
Before I did perl Makefile.PL only.

I set the variables below to take my own lib path :

After that the make install went through the end without error and the module was correctly installed.

After, I tried your last solution by replacing INSTALL_BASE by PREFIX and the installation went through to the end too. Your solution is of course easier and cleaner than mine.

Thanks for your help.
LVL 24

Expert Comment

Comment Utility
great. Glad I could help (if only a bit late)

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now