Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2013 20:10:00 +0200
From:      Jeff Tipton <jeff.t@mail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Error: shared library "mysqlclient.18" does not exist
Message-ID:  <513E1DF8.3020408@mail.com>
In-Reply-To: <513E1BC9.6040207@FreeBSD.org>
References:  <513E0D6D.10503@mail.com> <513E1BC9.6040207@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 03/11/2013 20:00, Greg Larkin wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 3/11/13 12:59 PM, Jeff Tipton wrote:
>> Hi,
>>
>> I'm trying to set up security/maia, and this is the error message I
>> get:
>>
>> Error: shared library "mysqlclient.18" does not exist
>>
>> Of course, the library does exist :(
>>
>> # ls /usr/local/lib/mysql/ libmysqlclient.a
>> libmysqlclient_r.a     libmysqld.a libmysqlclient.so
>> libmysqlclient_r.so    libmysqlservices.a libmysqlclient.so.18
>> libmysqlclient_r.so.18 plugin
>>
>> I googled about this, and I found 3 things to try but none of that
>> was helpful here:
>>
>> 1. make a link: ln -s /usr/local/lib/mysql/libmysqlclient.so.18
>> /usr/local/lib/libmysqlclient.so.18
>>
>> 2. Check the root's umask and the directory permissions if they
>> are correct, and they are: # umask 22 #ll /usr/local/lib |grep
>> mysql lrwxr-xr-x   1 root  wheel        41 Mar 11 16:25
>> libmysqlclient.so.18@ -> /usr/local/lib/mysql/libmysqlclient.so.18
>> drwxr-xr-x   3 root  wheel       512 Mar 11 16:22 mysql/
>>
>> # ll /usr/local/lib/mysql/ total 27276 -rw-r--r--  1 root  wheel
>> 4844270 Mar 11 16:17 libmysqlclient.a lrwxr-xr-x  1 root  wheel
>> 20 Mar 11 16:22 libmysqlclient.so@ -> libmysqlclient.so.18
>> -rwxr-xr-x  1 root  wheel   3364688 Mar 11 16:22
>> libmysqlclient.so.18* lrwxr-xr-x  1 root  wheel        16 Mar 11
>> 16:22 libmysqlclient_r.a@ -> libmysqlclient.a lrwxr-xr-x  1 root
>> wheel        17 Mar 11 16:22 libmysqlclient_r.so@ ->
>> libmysqlclient.so lrwxr-xr-x  1 root  wheel        17 Mar 11 16:22
>> libmysqlclient_r.so.18@ -> libmysqlclient.so -rw-r--r--  1 root
>> wheel  20019340 Mar  7 15:08 libmysqld.a -rw-r--r--  1 root  wheel
>> 4598 Mar 11 16:17 libmysqlservices.a drwxr-xr-x  2 root  wheel
>> 512 Mar  8 19:01 plugin/
>>
>> 3. Update the ports tree. Ports tree is up to date.
>>
>> Could someone, please, suggest what I could try to solve this?
>>
>> Thanks, Jeff
> Hi Jeff,
>
> At what point do you receive the error message?  Is it when you
> attempt to run the executable built by the port?  If so, please run
> the ldd command against the executable and post the output back here.
>
> Thank you,
> Greg
>
>
> - -- 
> Greg Larkin
>
> http://www.FreeBSD.org/           - The Power To Serve
> http://www.sourcehosting.net/     - Ready. Set. Code.
> http://twitter.com/cpucycle/      - Follow you, follow me
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.13 (Darwin)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlE+G8kACgkQ0sRouByUApCnLgCgwKZvBM7v60BXemWpG5v3k+IL
> A2sAn2+xMhPf4x5bnqt02b+hds1inMUj
> =nI5p
> -----END PGP SIGNATURE-----
Thank you, Greg, for the reply. I get the error message while compiling 
security/maia port. mysql client itself is working ok, I can connect to 
my database server.

ldd output:
# ldd /usr/local/bin/mysql
/usr/local/bin/mysql:
     libreadline.so.8 => /lib/libreadline.so.8 (0x800ab5000)
     libz.so.6 => /lib/libz.so.6 (0x800cf5000)
     libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x800f09000)
     libm.so.5 => /lib/libm.so.5 (0x801219000)
     libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x80143a000)
     libthr.so.3 => /lib/libthr.so.3 (0x801647000)
     libc.so.7 => /lib/libc.so.7 (0x801869000)
     libncurses.so.8 => /lib/libncurses.so.8 (0x801bbc000)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?513E1DF8.3020408>