Operating System - HP-UX
1820733 Members
3211 Online
109627 Solutions
New Discussion юеВ

Re: cannot install gettext

 
James Sim
Advisor

cannot install gettext

I'm trying to install Locale::gettext but keep getting this error:

# perl Makefile.PL
Set up gcc environment - 4.2.1
checking for gettext... no
checking for gettext in -lintl... no
gettext function not found. Please install libintl at Makefile.PL line 18.

I also tried running perl -MCPAN -e 'install Locale::gettext' but still get the same error.

Any input would be appreciated.
7 REPLIES 7

Re: cannot install gettext

James,

I wonder if you have to have the gettext package installed itself for the perl modules to work (I guess they'd be there by default on Linux)

Download from here:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.17/

Note you'll also need to install libiconv as well.

HTH

Duncan

I am an HPE Employee
Accept or Kudo
James Sim
Advisor

Re: cannot install gettext

I installed both modules (gettext and libiconv) but am getting the same errors.

What's the difference between Locale::gettext and gettext?

Re: cannot install gettext

James,

Well I would imagine that Locale::gettext is a Perl Module wrapper for the gettext functions in libintl, so it would make sense to need gettext installed before Locale::gettext would build.

I'd imagine this is a problem with library/include paths in the Makefile (which means it doesn't find some .h or .a/.so/.sl file - I'm guessing its looking for libintl.so or libintl.sl)

Unfortunately I know zip about debugging Perl makefiles... You really need Merijn to pop his head in here and respond, unfortunately I think he's on holiday until the end of July...

Can you make any sense out of what you see on or around line 18 of the Makefile?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Jeeshan
Honored Contributor

Re: cannot install gettext

Hi James

I think you need to install the inttool to resolve the error. you can download it from here

http://hpux.connect.org.uk/hppd/hpux/Gnome/intltool-0.40.0/
a warrior never quits
Steven E. Protter
Exalted Contributor

Re: cannot install gettext

Shalom,

Be sure to carefully follow the pre-requisite list. If not, the depot will install and do very nice core dumps instead of working.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James Sim
Advisor

Re: cannot install gettext

I installed intltool and still get the same error.

Here's a sample of the Makefile.PL file:

unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
# try with -lintl
$libs = "-lintl";
unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) {
unlink("conftest.c");
unlink("conftest");
die "gettext function not found. Please install libintl";
}
}
James R. Ferguson
Acclaimed Contributor

Re: cannot install gettext

Hi James:

The Makefile.PL is attempting to compile snippet of code that uses '/usr/include/libintl.h'. If you don't have that, you're not going to get far.

The compilation/linking is tried, first, without '-lintl' and then if that fails, with '-lintl'.

Regards!

...JRF...