1833883 Members
1714 Online
110063 Solutions
New Discussion

cc compiler error

 
varap
Occasional Advisor

cc compiler error

Hi ,

When I am compiling some program I am getting following error. And I have checked that cc.cat is present in that pirticular path.

cc: Couldn't open the message catalog: "/opt/ansic/lib/nls/msg/C/cc.cat".

Any pointers in fixing this will be of great help.

Regds,
Vara
4 REPLIES 4
A. Clay Stephenson
Acclaimed Contributor

Re: cc compiler error

I suspect that while the 'C' - the default - directory may be there what is missing is the appropropriate directories/files for your $LANG setting.
If it ain't broke, I can fix that.
varap
Occasional Advisor

Re: cc compiler error

Hi ,

The error reported is cc: Couldn't open the message catalog: "/opt/ansic/lib/nls/msg/C/cc.cat".

That means the LANG variable is correctly set to "C" .

Vara
T G Manikandan
Honored Contributor

Re: cc compiler error

Make sure you add the path in the NLSPATH variable.

NLSPATH=/opt/ansic/lib/nls/msg/C/
export NLSPATH

Revert on further help
T G Manikandan
Honored Contributor

Re: cc compiler error

check the man pages of environ(5)

$man 5 environ