Apm source config 중 오류

10.10버전에선 잘되면 옵션이

11버전에선 안되는데 어느부분이 문제인지 도통 모르겠네요.

mysql, apache는 잘 설치됬고 php make test중
$ sudo make test

Build complete.
Don’t forget to run ‘make test’.

/usr/local/src/php-5.2.17/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
make: [test] Error 127 (ignored)
$
라는 오류가 납니다.

$ sudo find / -name "libmysqlclient.so.18"
/usr/local/src/mysql-5.5.11/libmysql/libmysqlclient.so.18
/usr/local/apm/mysql/lib/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18
$

어느 부분을 만져야 될까요?

여기부터는 로그입니다.

Linux 2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 i686 athlon i386 GNU/Linux

httpd-2.2.17.tar.gz
mysql-5.5.11.tar.gz
php-5.2.17.tar.gz

mysql

cmake -DCMAKE_INSTALL_PREFIX=/usr/local/apm/mysql
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DDEFAULT_COLLATION=utf8_general_ci
-DDEFAULT_CHARSET=utf8
-DENABlED_LOCAL_INFILE=1
-DWITH_EXTRA_CHARSETS=all
-DWITH_SSL=bundled
-DMYSQL_DATADIR=/usr/local/apm/data

#groupadd mysql
#useradd -r -g mysql mysql
#cd /usr/local/mysql
#chown -R mysql.mysql .
#scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/apm/data
#chown -R root .
#chown -R mysql data
#cp support-files/my-medium.cnf /etc/my.cnf
#cp support-files/mysql.server /etc/init.d/mysql.server
#cd bin
#mysqld_safe --user=mysql --datadir=/usr/local/apm/data &
#mysqladmin -uroot password

apache

./configure --prefix=/usr/local/apm/apache
–enable-so
–enable-module=so
–enable-rewrite
–enable-unique-id
–with-mpm=prefork
–enable-shared=max
–with-apx2=/usr/local/apm/apache/apx

php

./configure --prefix=/usr/local/apm/php
–with-mysql=/usr/local/apm/mysql
–with-apxs2=/usr/local/apm/apache/bin/apxs
–disable-debug
–disable-posix
–disable-rpath
–enable-bcmath
–enable-gd-native-ttf
–enable-sysvsem
–enable-sysvshm
–enable-wddx
–enable-inline-optimization
–enable-mbstring
–enable-sockets
–enable-ftp
–enable-xml
–enable-mod-charset
–with-jpeg-dir
–with-freetype-dir
–with-imap=shared
–with-imap-ssl
–with-kerberos
–with-mhash
–with-mcrypt
–with-zlib
–with-gd
–with-ttf
–with-openssl
–with-curl
–with-libxml-dir