- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cannot install gettext
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 11:54 AM
тАО07-21-2008 11:54 AM
cannot install gettext
# 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 12:16 PM
тАО07-21-2008 12:16 PM
Re: cannot install gettext
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 01:26 PM
тАО07-21-2008 01:26 PM
Re: cannot install gettext
What's the difference between Locale::gettext and gettext?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 11:12 PM
тАО07-21-2008 11:12 PM
Re: cannot install gettext
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 11:26 PM
тАО07-21-2008 11:26 PM
Re: cannot install gettext
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2008 11:38 PM
тАО07-21-2008 11:38 PM
Re: cannot install gettext
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2008 10:53 AM
тАО07-22-2008 10:53 AM
Re: cannot install gettext
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";
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2008 11:01 AM
тАО07-22-2008 11:01 AM
Re: cannot install gettext
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...