Error running mysql-proxy

Asked by ngochoaian

Hi all, i'm installing mysql-proxy.
after commands:
$ ./autogen.sh
$ ./configure
$ make
$ make install

i run mysql-proxy by command mysql-proxy -V
I get this error message:
mysql-proxy: error while loading shared libraries: libmysql-chassis.so.0: cannot open shared object file: No such file or directory

what's this problem?

Thanks!

Question information

Language:
English Edit question
Status:
Answered
For:
MySQL Proxy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
vinchen (vinchen13) said :
#1

Is there any error while you run make?

what's your platform?

Revision history for this message
ngochoaian (trangiangnb) said :
#2

my platform is OpenSuse!
while i run make, there are errors:

make[3]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/plugins/debug'
make[3]: Entering directory `/home/bibi/mysql-proxy-0.8.2/plugins'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/plugins'
make[2]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/plugins'
Making all in examples
make[2]: Entering directory `/home/bibi/mysql-proxy-0.8.2/examples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/examples'
Making all in scripts
make[2]: Entering directory `/home/bibi/mysql-proxy-0.8.2/scripts'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/scripts'
Making all in tests
make[2]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests'
Making all in unit
make[3]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/unit'
Making all in lua
make[4]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/unit/lua'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/unit/lua'
make[4]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/unit'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/unit'
make[3]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/unit'
Making all in suite
make[3]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite'
Making all in base
make[4]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base'
Making all in t
make[5]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base/t'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base/t'
Making all in r
make[5]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base/r'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base/r'
make[5]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base'
make[4]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/base'
Making all in bugs
make[4]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs'
Making all in r
make[5]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs/r'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs/r'
Making all in t
make[5]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs/t'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs/t'
make[5]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs'
make[4]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite/bugs'
make[4]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests/suite'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite'
make[3]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests/suite'
make[3]: Entering directory `/home/bibi/mysql-proxy-0.8.2/tests'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests'
make[2]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/tests'
Making all in m4
make[2]: Entering directory `/home/bibi/mysql-proxy-0.8.2/m4'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/m4'
Making all in doc
make[2]: Entering directory `/home/bibi/mysql-proxy-0.8.2/doc'
Making all in chapter
make[3]: Entering directory `/home/bibi/mysql-proxy-0.8.2/doc/chapter'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/doc/chapter'
make[3]: Entering directory `/home/bibi/mysql-proxy-0.8.2/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/doc'
make[2]: Leaving directory `/home/bibi/mysql-proxy-0.8.2/doc'
make[2]: Entering directory `/home/bibi/mysql-proxy-0.8.2'
make[2]: Leaving directory `/home/bibi/mysql-proxy-0.8.2'
make[1]: Leaving directory `/home/bibi/mysql-proxy-0.8.2'

Revision history for this message
ngochoaian (trangiangnb) said :
#3

ok, problem solved!
I have to run /sbin/ldconfig before run mysql-proxy -V

thanks!

Revision history for this message
ngochoaian (trangiangnb) said :
#4

Oh!
i still get an error while i run mysql-proxy -V:

mysql-proxy 0.8.2
  chassis: mysql-proxy 0.8.2
  glib2: 2.30.1
  libevent: 2.0.17-stable
2012-02-20 22:06:15: (critical) loading module '/usr/local/lib/mysql-proxy/plugins/libproxy.so' failed: /usr/local/lib/mysql-proxy/plugins/libproxy.so: cannot open shared object file: No such file or directory
2012-02-20 22:06:15: (critical) setting --plugin-dir=<dir> might help

Revision history for this message
Jan Kneschke (jan-kneschke) said :
#5

Am 20.02.2012 um 09:15 schrieb ngochoaian:

> Question #188262 on MySQL Proxy changed:
> https://answers.launchpad.net/mysql-proxy/+question/188262
>
> Status: Solved => Open
>
> ngochoaian is still having a problem:
> Oh!
> i still get an error while i run mysql-proxy -V:
>
> mysql-proxy 0.8.2
> chassis: mysql-proxy 0.8.2
> glib2: 2.30.1
> libevent: 2.0.17-stable
> 2012-02-20 22:06:15: (critical) loading module '/usr/local/lib/mysql-proxy/plugins/libproxy.so' failed: /usr/local/lib/mysql-proxy/plugins/libproxy.so: cannot open shared object file: No such file or directory
> 2012-02-20 22:06:15: (critical) setting --plugin-dir=<dir> might help

You ran $ make install which should copy the libproxy.so over there.

Is the file in that location?

If yes, run $ ldd /usr/local/lib/mysql-proxy/plugins/libproxy.so

If no, check the output of $ make install for libproxy.so

Jan

Revision history for this message
ngochoaian (trangiangnb) said :
#6

Thank Jan!

In my folder: /usr/local there are two folders: lib and lib64.
in /usr/local/lib/ no there is mysql-proxy/plugins/libproxy.so.
file libproxy.so is in /usr/local/lib64/mysql-proxy/plugins/libproxy.so

Therefore, loading module '/usr/local/lib/mysql-proxy/plugins/libproxy.so' failed.
How can I set plugin-dir to /usr/local/lib64/?

Revision history for this message
Jan Kneschke (jan-kneschke) said :
#7

Am 20.02.2012 um 14:56 schrieb ngochoaian:

> Question #188262 on MySQL Proxy changed:
> https://answers.launchpad.net/mysql-proxy/+question/188262
>
> Status: Answered => Open
>
> ngochoaian is still having a problem:
> Thank Jan!
>
> In my folder: /usr/local there are two folders: lib and lib64.
> in /usr/local/lib/ no there is mysql-proxy/plugins/libproxy.so.
> file libproxy.so is in /usr/local/lib64/mysql-proxy/plugins/libproxy.so
>
> Therefore, loading module '/usr/local/lib/mysql-proxy/plugins/libproxy.so' failed.
> How can I set plugin-dir to /usr/local/lib64/?

see $ mysql-proxy --help

it should list a --plugins-dir option

Jan

Revision history for this message
ngochoaian (trangiangnb) said :
#8

I ran $ mysql-proxy --help
but I still get this error:
2012-02-21 04:35:15: (critical) loading module '/usr/local/lib/mysql-proxy/plugins/libproxy.so' failed: /usr/local/lib/mysql-proxy/plugins/libproxy.so: cannot open shared object file: No such file or directory
2012-02-21 04:35:15: (critical) setting --plugin-dir=<dir> might help

Revision history for this message
Jan Kneschke (jan-kneschke) said :
#9

Am 20.02.2012 um 15:45 schrieb ngochoaian:

> Question #188262 on MySQL Proxy changed:
> https://answers.launchpad.net/mysql-proxy/+question/188262
>
> Status: Answered => Open
>
> ngochoaian is still having a problem:
> I ran $ mysql-proxy --help
> but I still get this error:
> 2012-02-21 04:35:15: (critical) loading module '/usr/local/lib/mysql-proxy/plugins/libproxy.so' failed: /usr/local/lib/mysql-proxy/plugins/libproxy.so: cannot open shared object file: No such file or directory
> 2012-02-21 04:35:15: (critical) setting --plugin-dir=<dir> might help

The error-msg should point you to the right option, I guess.

  $ mysql-proxy --plugin-dir=/usr/local/lib64/mysql-proxy/plugins/ --help

Jan

Can you help with this problem?

Provide an answer of your own, or ask ngochoaian for more information if necessary.

To post a message you must log in.