Thursday, 18 March 2010

Shared object "" not found

Shared object "" not found

This article describes how I resolved this issue in my box.

16 Mar. 2010
FreeBSD 6.4-STABLE version after an upgrade just appeared:
/libexec/ Shared object "" not found, required by "mysql"
Google was not helpful. So I am going to describe few steps how to fix that problem.
In nutshell the problem is missing C library when package was used (not ports).

We need use of newer version GCC and binutils with FreeBSD Ports Collection.
The base for FreeBSD 6.4 is gcc version 3.4.6
Obtaining information relating to the basic compiler information:
# gcc -v

Step 1
Make sure your ports are up to date:
# /usr/local/bin/cvsup -g -L 2 /path-to-your/standard-supfile OR # portsnap fetch update

Step 2
Installing binutils and GCC45 from ports:
# cd /usr/ports/devel/binutils && make install clean
# cd /usr/ports/lang/gcc45 && make install clean

Step 3
Configuring our Ports Collection for use of newer version GCC
Adjusting make.conf: # vi /etc/make.conf

Add the following lines to the /etc/make.conf file (or modify appropriately):
# 2010-03-15 ********* added P.M. ***************
# Configuring ports for custom version of GCC
.if !empty(.CURDIR:M/usr/ports/*) && exists(/usr/local/bin/gcc45)
# To exclude ports that have problems with custom version of GCC, example the net/openldap* and cyrus-auth ports
.if empty(.CURDIR:M/usr/ports/net/openldap*)&& empty(.CURDIR:M/usr/ports/security/cyrus-sasl2-saslauthd)
# Custom CFLAGS for the ports tree.
# Compile with specific CPU-type-instruction (AMD Athlon) CFLAGS "SSE3" may increase performance 10%-20%
# 2010-03-15 ********* added P.M. ***************

Step 4
Adjusting libmap.conf # vi /etc/libmap.conf gcc45/ gcc45/ gcc45/ gcc45/ gcc45/


Spread Firefox Affiliate Button