News:

--

Main Menu

Cound not find intl library FIXED

Started by Jan Gruuthuse, March 17, 2012, 07:32:06 AM

Previous topic - Next topic

Jan Gruuthuse

Quote-- Checking for gettext
-- ********************
-- Found libintl.h
-- Cound not find intl library
Could not find Gettext
any user action required?

_____________________________________________
Avidemux v2.6.0 (r7749)
_____________________________________________
Compiler: GCC 4.6.1
Build Target: Linux (x86-64)
User Interface: Qt (4.7.4)
_____________________________________________
Kernel: Linux 3.0.0-16-generic (x86_64)
Distribution: Linux Ubuntu 11.10 (oneiric)
Desktop: Unity 2D 4.28.0
Display Server: 1.11.2.902 (1.11.3 RC 2)
Display Driver: intel 2.18.0
Intel Core i5-2500K with 16 GB ram
OpenGL Renderer:  Mesa DRI Intel(R) Sandybridge
Version: 3.0 Mesa 8.0.1
_____________________________________________

nibbles

If you want translations, yes.  What do you get for  "gettext --version" ?

Jan Gruuthuse

Quotegettext (GNU gettext-runtime) 0.18.1
Copyright (C) 1995-1997, 2000-2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Ulrich Drepper.

nibbles

#3
Oh I read it wrong.  It found libintl.h, but not libintl.8.so.  Find it, and run `ldd gettext` if you can to see if gettext is linked against libintl.so.

Jan Gruuthuse

thanks, did worry was missing some nice goody.

Jan Gruuthuse

$ ldd /usr/bin/gettext
Quote   linux-vdso.so.1 =>  (0x00007fffa93ff000)
   libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f58fd73c000)
   /lib64/ld-linux-x86-64.so.2 (0x00007f58fdb0b000)

nibbles

Yea mine is linked against libintl.

$ otool -L /usr/local/Cellar/gettext/0.18.1.1/bin/gettext
/usr/local/Cellar/gettext/0.18.1.1/bin/gettext:
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.19.0)
/usr/local/Cellar/gettext/0.18.1.1/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 159.1.0)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)


Do you have a /usr/lib/libintl.so  or in /usr/local/lib/libintl.so or some version of those?

Jan Gruuthuse

#7
Only thing close to libintl found would be these:
/usr/include/libintl.h
/usr/share/gettext/intl/libintl.rc
/usr/lib/preloadable_libintl.so
/usr/share/gettext/intl/libintl.rc
synaptic could not find either, did install these:
libintl-perl
libintl-xs-perl
libintl-gettext-ruby
libintl-gettext-ruby1.8
no succes :(
in synaptic package manager checked installed files for gettext:
Quote/.
/usr
/usr/bin
>8 >8

/usr/lib
>8 >8

/usr/lib/preloadable_libintl.so <-
>8 >8

nibbles

I'm not the right person to debug shared libraries on ELF because I don't have a system handy to test on, but you may need to run ldconfig or just add that to your preload list in /etc/ld.so.preload or as

    $ LD_PRELOAD=/usr/local/lib/preloadable_libintl.so
    $ export LD_PRELOAD

If that doesn't work, I'll gr0k the source code and walk through the detection steps with you.

Jan Gruuthuse

#9
Quote from: nibbles on March 19, 2012, 06:48:23 PM
... but you may need to run ldconfig or just add that to your preload list in /etc/ld.so.preload or as

    $ LD_PRELOAD=/usr/local/lib/preloadable_libintl.so
    $ export LD_PRELOAD

If that doesn't work, I'll gr0k the source code and walk through the detection steps with you.
Above did not work, I must have been sleeping :) However this did work by the looks of it:
$ LD_PRELOAD=/usr/lib/preloadable_libintl.so

$ LD_PRELOAD=/usr/lib/preloadable_libintl.so
jan@DH67BL:~$ export LD_PRELOAD
jan@DH67BL:~$ ldd /usr/bin/gettext
linux-vdso.so.1 =>  (0x00007fff659bb000)
/usr/lib/preloadable_libintl.so (0x00007f7d9a2f4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7d99f3b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7d9a501000)

thanks again. Now hoping building avidemux thinks case solved

Jan Gruuthuse

that procedure did fail to regarding avidemux building. After each reboot preloadable_libintl.so was not linked to gettext
copy /usr/lib/preloadable_libintl.so to /usr/lib/libintl.so did the trick

nibbles

Add preloadable_libintl.so to the standard system-wide persistent location listed in man 8 ld-linux
among other places,

/etc/ld.so.preload
    File containing a whitespace separated list of ELF shared libraries to be loaded before the program.