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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
LVL 24

Expert Comment

ID: 39948567
Try using local::lib

then you can do this

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

Author Comment

ID: 39949100
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

ID: 39950099
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)
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 39950660
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
ID: 39952104
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

ID: 39961309
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

ID: 39962091
great. Glad I could help (if only a bit late)

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
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…
Six Sigma Control Plans

623 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