Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

make 'missing separator' error when building CPAN modules on RedHat 8/9

by edan (Curate)
on Jun 10, 2003 at 08:55 UTC ( #264579=note: print w/replies, xml ) Need Help??

in reply to problem building CDB_File-0.92 - Makefile:82: *** missing separator

I'm putting this down for posterity:

Keywords: make makefile redhat 8 9 rh9 rh8 install CPAN MakeMaker missing separator UTF-8

This is a known problem with the perl that is shipped with RedHat 8 & 9. See the following link: Redhat Bugzilla

It is related to the fact that the default locale setting on RedHat 8/9 is "en_US.UTF-8", and that version of perl has a problem in whereby it returns junk in "*.UTF-8" locales.

The 'official' workaround at the time of this writing is to export LANG=C before running your perl Makefile.PL. I also came across a way to change the system-wide default locale, in case you want all the users on your box to be able to install CPAN modules, and you don't mind your default locale not being UTF-8:

Edit the file /etc/sysconfig/i18n

Change the line that looks like this:
to this:
(it might not be en_US for you, but you get the idea)

This takes effect at login.

update: Added RedHat 8, since it appears to have the same problem as RH9

update: Please view this whole thread for the full context.


Replies are listed 'Best First'.
Re: make 'missing separator' error when building CPAN modules on RedHat 8/9
by geektron (Curate) on May 05, 2004 at 14:06 UTC
    most excellent! thanks for recording this. you just saved me hours of headaches ... Archive::Zip was giving me the same issues.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://264579]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2018-07-20 16:55 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (438 votes). Check out past polls.