Shared object "libintl.so.9" not found, required by "bash"

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Shared object "libintl.so.9" not found, required by "bash"

Postby bojinov » 05 Oct 2011, 04:37

Hello,

I m facing a strange problem over here. Hope you can help sorting it out.
Here it goes:

Code: Select all
[root@XXXXX /usr/local/etc/rc.d]# ./mysql-server start
Starting mysql.
/libexec/ld-elf.so.1: Shared object "libintl.so.9" not found, required by "bash"
./mysql-server: WARNING: failed to start mysql


Same goes for the squid rc script.
I re-installed gettext, libiconv and bash (in that order) and now get no dep issues with bash, but I still can not start the RC scripts.

Code: Select all
ldd /usr/local/bin/bash
/usr/local/bin/bash:
        libncurses.so.8 => /lib/libncurses.so.8 (0x8006e7000)
        libintl.so.9 => /usr/local/lib/libintl.so.9 (0x800834000)
        libiconv.so.3 => /usr/lib/libiconv.so.3 (0x80093d000)
        libc.so.7 => /lib/libc.so.7 (0x800b38000)


Code: Select all
locate libintl.so.9
/s/usr-local/lib/libintl.so.9


I should mention that this is jailed installation running freebsd 8.2 AMD64
The host OS is fine.

I tried copying the libintl.so.9 and libiconv.so.3 to the /lib/ folder of the jail. (just for the test) Then I get no errors, but the RC scripts will fail with no reason.
bojinov
Junior Member
 
Posts: 19
Joined: 06 Dec 2009, 17:59

Postby SirDice » 05 Oct 2011, 07:05

Your [port]devel/gettext[/port] is out of sync. Try rebuilding bash.

It also appears you have replaced [file]/bin/sh[/file] with bash, or changed root's shell to bash, bad idea, really bad idea.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby bojinov » 05 Oct 2011, 07:12

Hi,

Thanx for replying.

I have rebuilt bash. That fixed the problem partially as I mentioned
Meaning that I could now start bash. But when I try to run the RC script it still fails

Do not get what does out of sync mean ?
I updated gettext by mistake and that is when it all started.

As for the default shell ... not sure. I ll check, but I haven't set anything. I just execute bash with jexec (jexec 1 bash)
bojinov
Junior Member
 
Posts: 19
Joined: 06 Dec 2009, 17:59

Postby bojinov » 05 Oct 2011, 08:05

I switched default shell to tcsh and RC scripts will not start somewhat properly.
No missing lib error, but still fail.
How do I rebuild all ports that depend on gettext ?
bojinov
Junior Member
 
Posts: 19
Joined: 06 Dec 2009, 17:59

Postby SirDice » 05 Oct 2011, 08:51

bojinov wrote:Do not get what does out of sync mean ?

It means bash was build with a different version of gettext, they are out of sync.

bojinov wrote:How do I rebuild all ports that depend on gettext ?

If you have [port]ports-mgmt/portmaster[/port] installed:
[cmd=#]portmaster -r devel/gettext[/cmd]

[port]ports-mgmt/portupgrade[/port] has a similar option.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby bojinov » 05 Oct 2011, 09:00

I use portupgrade. Can you provide the parameters for it ? just for future reference
portmaster will have to do.
Cheers
bojinov
Junior Member
 
Posts: 19
Joined: 06 Dec 2009, 17:59

Postby SirDice » 05 Oct 2011, 09:03

I would suggest reading [pman=1]portupgrade[/pman].
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby DutchDaemon » 05 Oct 2011, 14:49

And read [file]/usr/ports/UPDATING[/file] before you upgrade anything. There have been quite a number of [FILE]gettext[/FILE] warnings in there.
User avatar
DutchDaemon
Old Fart
 
Posts: 10463
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby SirDice » 05 Oct 2011, 14:54

Ah, yes. Updating gettext can be a real pain. A lot of ports depend on it and those seem to break really easy, even with a relatively minor update to gettext.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby Carpetsmoker » 06 Oct 2011, 13:28

Plus, many ports link against gettext seemingly at random, even if you don't need it or if you explicitly disabled it. This is usually some form of autotools failure.

My solution: don't update gettext. Only update it with system upgrades (7->8->9, etc).
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
User avatar
Carpetsmoker
Member
 
Posts: 904
Joined: 16 Nov 2008, 19:07
Location: Eindhoven, Netherlands

Postby SirDice » 06 Oct 2011, 14:19

Since I build all my packages myself in a clean jail I never had any issues with updating. I simply pkg_delete everything and reinstall the packages I need.
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16161
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 2 guests