Author Topic: Cound not find intl library FIXED  (Read 12146 times)

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Cound not find intl library FIXED
« on: March 17, 2012, 07:32:06 AM »
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
_____________________________________________
« Last Edit: March 23, 2012, 06:37:35 AM by Jan Gruuthuse »

nibbles

  • Sr. Member
  • ****
  • Posts: 292
Re: Cound not find intl library
« Reply #1 on: March 18, 2012, 06:53:59 AM »
If you want translations, yes.  What do you get for  "gettext --version" ?

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: Cound not find intl library
« Reply #2 on: March 18, 2012, 07:53:10 AM »
Quote
gettext (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

  • Sr. Member
  • ****
  • Posts: 292
Re: Cound not find intl library
« Reply #3 on: March 18, 2012, 08:16:17 AM »
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.
« Last Edit: March 18, 2012, 08:52:31 AM by nibbles »

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: Cound not find intl library
« Reply #4 on: March 18, 2012, 08:47:22 AM »
thanks, did worry was missing some nice goody.

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: Cound not find intl library
« Reply #5 on: March 18, 2012, 09:03:07 AM »
Code: [Select]
$ 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

  • Sr. Member
  • ****
  • Posts: 292
Re: Cound not find intl library
« Reply #6 on: March 18, 2012, 10:20:22 PM »
Yea mine is linked against libintl.

Code: [Select]
$ 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

  • Hero Member
  • *****
  • Posts: 6060
Re: Cound not find intl library
« Reply #7 on: March 19, 2012, 08:14:19 AM »
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
« Last Edit: March 22, 2012, 03:44:45 PM by Jan Gruuthuse »

nibbles

  • Sr. Member
  • ****
  • Posts: 292
Re: Cound not find intl library
« Reply #8 on: March 19, 2012, 06:48:23 PM »
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

  • Hero Member
  • *****
  • Posts: 6060
Re: Cound not find intl library
« Reply #9 on: March 22, 2012, 03:41:21 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

Code: [Select]
$ 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
« Last Edit: March 22, 2012, 03:45:57 PM by Jan Gruuthuse »

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6060
Re: Cound not find intl library
« Reply #10 on: March 23, 2012, 06:36:57 AM »
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

  • Sr. Member
  • ****
  • Posts: 292
Re: Cound not find intl library FIXED
« Reply #11 on: March 23, 2012, 09:01:00 AM »
Add preloadable_libintl.so to the standard system-wide persistent location listed in man 8 ld-linux
among other places,

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