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/darwin.sh? 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/darwin.sh
Ol�, Certainly. Perhaps I should've posted that in the first place, sorry. My approach is based on the instructions at : http://duke.usask.ca/~dalglb/macosx/Perl_5.6.html http:[EMAIL PROTECTED]/msg00895.html (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 http://developer.apple.com/qa/qa2001/qa1067.html Alternatively, this : <http://duke.usask.ca/~dalglb/macosx/Perl_5.6.html> explains how to set it up using a script. This is the content of environment.plist : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd"> <plist version="0.9"> <dict> <key>LC_ALL</key> <string>C</string> </dict> </plist> 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/darwin.sh? Again, http://duke.usask.ca/~dalglb/macosx/Perl_5.6.html, shows you can run : perl -i.bak -p -e 's|Local/Library|Library|g' hints/darwin.sh It's because "hints/darwin.sh" 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 everything. Next : localhost% sh Configure -des -Dfirstmakefile=GNUmakefile -Dldflags="-flat_namespace" 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. : pragma/warnings lib/db-btree lib/db-recno lib/posix Installing Berkeley DB <http://www.sleepycat.com/> should get rid of 2 of those testing errors. Tchau ! - Joel _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
