Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Install of Locale:gettext failing due to missing libintl

by T-Fen (Acolyte)
on Oct 28, 2014 at 12:20 UTC ( [id://1105294]=perlquestion: print w/replies, xml ) Need Help??

T-Fen has asked for the wisdom of the Perl Monks concerning the following question:

I have perlbrew installed and am attempting to install Locale:gettext with cpanm. I'm seeing the following error (appears libintl is either not found or not installed):

cpanm (App::cpanminus) 1.7014 on perl 5.020001 built for darwin-2level Work directory is /Users/trey/.cpanm/work/1414409291.13907 You have make /usr/bin/make You have /usr/local/bin/wget You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3 You have /usr/bin/unzip Searching Locale::gettext on cpanmetadb ... --> Working on Locale::gettext Fetching http://www.cpan.org/authors/id/P/PV/PVANDRY/gettext-1.05.tar. +gz -> OK Unpacking gettext-1.05.tar.gz Entering gettext-1.05 META.yml/json not found. Creating skeleton for it. Configuring gettext-1.05 Running Makefile.PL checking for gettext... no checking for gettext in -lintl...gettext function not found. Please in +stall libintl at Makefile.PL line 18. no -> N/A -> FAIL Configure failed for gettext-1.05. See /Users/trey/.cpanm/work +/1414409291.13907/build.log for details.

Would someone be able to direct me how to fix?

Thanks.

Replies are listed 'Best First'.
Re: Install of Locale:gettext failing due to missing libintl
by Anonymous Monk on Oct 28, 2014 at 13:22 UTC

    Well, do you have "libintl" library installed or not? If you do, what is the full path of the directory in which that was installed? Also, mention your operating system for others to suggest the way(s) to install the missing software needed.

      Running Mac OSX 10.10 (Yosimite). It looks like I have libintl per the below:

      $ locate libintl /Applications/Adium.app/Contents/Frameworks/libintl.framework /Applications/Adium.app/Contents/Frameworks/libintl.framework/Headers /Applications/Adium.app/Contents/Frameworks/libintl.framework/Resource +s /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/8 /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/8/Headers /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/8/Resources /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/8/Resources/English.lproj /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/8/Resources/English.lproj/InfoPlist.strings /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/8/Resources/Info.plist /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/8/libintl /Applications/Adium.app/Contents/Frameworks/libintl.framework/Versions +/Current /Applications/Adium.app/Contents/Frameworks/libintl.framework/libintl /Applications/OmniGraffle Professional 5.app/Contents/lib/libintl.dyli +b /Applications/Senuti.app/Contents/Frameworks/RedMobile.framework/Versi +ons/A/Frameworks/libintl.dylib /Applications/Stellarium.app/Contents/Frameworks/i386/libintl.8.dylib /Applications/VMware Fusion.app/Contents/Frameworks/libintl.8.0.2.dyli +b /Previous System/usr/local/share/doc/libintl /private/var/db/receipts/org.rudix.pkg.libintl.bom /private/var/db/receipts/org.rudix.pkg.libintl.plist /usr/local/Cellar/gettext/0.19.3/include/libintl.h /usr/local/Cellar/gettext/0.19.3/lib/libintl.8.dylib /usr/local/Cellar/gettext/0.19.3/lib/libintl.a /usr/local/Cellar/gettext/0.19.3/lib/libintl.dylib /usr/local/Cellar/gettext/0.19.3/share/gettext/intl/libintl.rc /usr/local/lib/libintl.8.dylib /usr/local/lib/libintl.a /usr/local/lib/libintl.dylib /usr/local/share/doc/libintl /usr/local/share/doc/libintl/AUTHORS /usr/local/share/doc/libintl/COPYING /usr/local/share/doc/libintl/ChangeLog /usr/local/share/doc/libintl/INSTALL /usr/local/share/doc/libintl/NEWS /usr/local/share/doc/libintl/README /usr/local/share/doc/libintl/README.woe32

      Thanks

        If ...

        nm -u /usr/local/lib/libintl.dylib | fgrep gettext

        ... shows the text "gettext", then you may need to reinstall|update|change the present libintl files.

        Else, could you share the output of

        perl Makefile.PL \ | egrep '(LDDLFLAGS|LDFLAGS).+/usr/local/lib' Makefile

        ... ? If /usr/local/lib is missing from above, try to install manually after setting $CONFIGURE{'LIBS'} in Makefile.PL or LDDLFLAGSto set the library search path.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1105294]
Approved by GotToBTru
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-24 08:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found