Re: Locale setting errors in Perl
I can sympathize. More to the point, I just fixed this. And while the solution may be in the archives, there are also several other solutions in the archives for similar problems which didn't work for me. If your shell is tcsh, put the following 2 lines in your .tcshrc login/setup file. setenv LANG en_US setenv LC_ALL C The funny thing was, most examples I saw had equal signs = in there somewhere, and that didn't work at all. HTH. Chris http://perlmonks.org/index.pl?node=Louis_Wu On Thursday, Sep 25, 2003, at 14:19 US/Pacific, Kevin Barry wrote: I gave up trying to add modules to perl 5.6.0 and upgraded rather painlessly to 5.8.0. Now I get the error below when running any perl scripts: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset), LANG = en_US are supported and installed on your system. perl: warning: Falling back to the standard locale (C). I've tried the environment settings on the perl upgrade instructions on the Apple website and I made the changes to the environment.plist file as detailed on another site with no luck. Is there possibly another fix? Kevin
Re: Locale setting errors in Perl
At 01:58 -0700 9/28/03, Chris Cantrall wrote: If your shell is tcsh, put the following 2 lines in your .tcshrc login/setup file. setenv LANG en_US setenv LC_ALL C Remember though that your .login script will not be executed unless you log in to Darwin using Terminal or externally with ssh. The result will be that execution of perl stuff via AppleScript, BBEdit worksheets, Project Builder, the Execute-Text Service, and others will still have problems. Apple can repair it by making the login which you do with the startup window be a true *NIX login. but that seems unlikely. -- -- As a citizen of the USA if you see a federal outlay expressed in $billion then multiply it by 4 to get your share in dollars. --
libxml2
I can't seem to get libxml2 (using libxml2-2.5.1) to install correctly. I do a ./configure BUILD=darwin Everything seems to configure correctly. Then when I do a make or a make install I get : gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -g -O2 -Wall -c SAX.c -fno-common -DPIC -o .libs/SAX.lo /Library/Frameworks/libxml.framework/Headers/encoding.h:27: header file 'iconv.h' not found /Library/Frameworks/libxml.framework/Headers/encoding.h:132: undefined type, found `iconv_t' /Library/Frameworks/libxml.framework/Headers/encoding.h:133: undefined type, found `iconv_t' cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode make[2]: *** [SAX.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 It seems to install the include files into /usr/local/inclue but no binary in /usr/local/bin Then if I try to install XML::LibXML or another module needing libxml3 it tells me it can't find libxml2. Any thoughts? Brad Rice [EMAIL PROTECTED]
Re: Locale setting errors in Perl
And, if you run scripts from BBEdit like I do, you should write something like ?xml version=1.0 encoding=UTF-8? !DOCTYPE plist SYSTEM file://localhost/System/Library/DTDs/PropertyList.dtd plist version=0.9 dict keyLANG/key stringen_US/string keyLC_ALL/key stringC/string keyMAILADDRESS/key string[EMAIL PROTECTED]/string /dict /plist in ~/.MacOSX/environment.plist. (Forget about the MAILADDRESS; that is mine.) Regards, Vic At 1:58 AM -0700 9/28/03, Chris Cantrall wrote: If your shell is tcsh, put the following 2 lines in your .tcshrc login/setup file. setenv LANG en_US setenv LC_ALL C -- Vic Norton vic at norton dot name
Re: libxml2
On Sunday, September 28, 2003, at 05:57 PM, Brad Rice wrote: Then if I try to install XML::LibXML or another module needing libxml3 it tells me it can't find libxml2. Any thoughts? http://packages.opendarwin.org/ hth/h