develooper Front page | perl.perl5.porters | Postings from March 2008

Problems when setting the libraries' installation path

From:
Sérgio Durigan Júnior
Date:
March 19, 2008 13:26
Subject:
Problems when setting the libraries' installation path
Message ID:
1205958378.6226.14.camel@miki
Hello,

Continuing with my attempt to compile Perl on a "biarch" system (PPC64
with a 32-bit userland), I'm having some trouble when I try to change
the place where "make install" will put the compiled libraries. As you
may guess, my system have only one "/lib" (or "/usr/lib", or
"/usr/local/lib") which contains only 32-bit binaries. What I would like
to do is to create a "/lib64" (or "/usr/lib64", or "/usr/local/lib64")
and install every 64-bit binary there.

After a few questions in #perl channel (on Freenode) I tried to modify
the value of $sitelib, which in fact changes the lib's path. But, as you
can see below (from the generated config.sh):

installarchlib='/usr/local/lib/perl5/5.10.0/ppc64-linux'
installbin='/usr/local/bin'
installhtml1dir=''
installhtml3dir=''
installman1dir='/usr/local/share/man/man1'
installman3dir='/usr/local/share/man/man3'
installprefix='/usr/local'
installprefixexp='/usr/local'
installprivlib='/usr/local/lib/perl5/5.10.0'
installscript='/usr/local/bin'
installsitearch='/usr/local/lib64/perl5/site_perl/5.10.0/ppc64-linux'
installsitebin='/usr/local/bin'
installsitehtml1dir=''
installsitehtml3dir=''
installsitelib='/usr/local/lib64/perl5/site_perl/5.10.0'
installsiteman1dir='/usr/local/share/man/man1'
installsiteman3dir='/usr/local/share/man/man3'
installsitescript='/usr/local/bin'
installstyle='lib/perl5'
installusrbinperl='undef'
installvendorarch=''
installvendorbin=''
installvendorhtml1dir=''
installvendorhtml3dir=''
installvendorlib=''
installvendorman1dir=''
installvendorman3dir=''
installvendorscript=''

Some variables still hold the old "/usr/local/lib/" value (specifically
'installarchlib' and 'installprivlib'). The question is: how do I change
this value  in a "global" way, so every variable will be updated to use
"/usr/local/lib64"?

By the way, I'm modifying the behaviour of the Configure script to do
that "path modification" when the "use64bitall" option is provided by
the user. So, the line that I have used to generate the piece of code
above is:

./Configure -de -Duse64bitall

I'd like an opinion about it, too :-). Am I confusing things? Should it
be done in another file instead of Configure? If these modifications are
welcome, then I'll send the patch.

Thanks in advance,

-- 
Sérgio Durigan Júnior
Software Engineer
Linux Technology Center - LTC
IBM Brazil




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About