develooper Front page | perl.macosx | Postings from January 2002

Re: perl 5.6.1, Expat, etc.

Joel Rodrigues
January 11, 2002 08:32
Re: perl 5.6.1, Expat, etc.
Message ID:
On Friday, January 11, 2002, at 02:57 , Philippe de Rochambeau wrote:

> Hello,
> could you please expand on the following (why did you create an 
> environment.plist? What did you put in it? How did you fix 
> hints/ What else did you do to make Perl 5.6.1 
> compile?)
> Many thanks.
> Philippe de Rochambeau
> Le vendredi 11 janvier 2002, à 05:58 , Joel Rodrigues a écrit :
>> Perl 5.6.1 = dead easy to compile with only 2 preparatory steps :
>> 1. Make that environment.plist file.
>> 2. Fix hints/

Olá, Certainly. Perhaps I should've posted that in the first 
place, sorry.

My approach is based on the instructions at : 
(turned up in a Google search)


> why did you create an environment.plist?

Truth is I'm not quite sure what exactly this is, something 
about "locales" I think but we need to "setenv LC_ALL C", but
just running that command sets it only for that one process, 
open another terminal window &
Perl 5.6.1 will complain about "LC_ALL C".

This explains how to create the environment.plist file & where 
to put it (.MacOSX/environment.plist) :
ADC - Technical Q&A QA1067 - Setting environment variables for 
User Processes

Alternatively, this : 
<> explains how 
to set it up using a script.

This is the content of environment.plist :

<?xml version="1.0" encoding="UTF-8"?>
<plist version="0.9">

Just put that in a text file named "environment.plist" , make a 
directory called ".MacOSX" in your home directory,
place "environment.plist" there, log out of OS X & back in.

> How did you fix hints/
Again,, shows 
you can run :
perl -i.bak -p -e 's|Local/Library|Library|g' hints/

It's because "hints/" is a bit out of date with regard 
to current OS X file layout, i.e., it shows 
"/Local/Library/Perl" instead of "/Library/Perl", so all that 
has to be done is to remove the "/Local", otherwise it will 
create new directories, place modules in them & make a mess of 

Next :

localhost% sh Configure -des -Dfirstmakefile=GNUmakefile 
localhost%   make
localhost%   make test

localhost% mv INSTALL INSTALL.txt
(Because of the case insensitive file system)

localhost% make install


Be advised that the build will have 4 errors during testing 
which can be ignored. :


Installing Berkeley DB <> should get 
rid of 2 of those testing errors.

Tchau !
- Joel

Do You Yahoo!?
Get your free address at Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About