Atlas 시리즈 1: 공유 라이브러리를 로드하는 동안 오류가 발생했습니다: libcrypto.so.6: cannot open shared object file: ...

4773 단어
1: Atlas 설치
https://github.com/Qihoo360/Atlas/wiki/Atlas의 설치
이:
[root@localhost bin]# ./mysql-proxyd test start
/usr/local/mysql-proxy/bin/mysql-proxy: error while loading shared libraries: libcrypto.so.6: cannot open shared object file: No such file or directory
error: failed to start MySQL-Proxy of test

뭐?libcrypto가 없습니다.so.육?
3: 직접 yum install openssl*
 
  libcrypto.so.6  , :
yum provides */libcrypto.so.6

  
  openssl098e-0.9.8e-17.el6.centos.2.x86_64

yum install openssl098e-0.9.8e-17.el6.centos.2.x86_64

  
4: 서비스 실행을 보기 위해 온 가방
[root@localhost bin]# ldd mysql-proxy
	linux-vdso.so.1 =>  (0x00007ffff4df7000)
	libmysql-chassis.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis.so.0 (0x00007f40c8038000)
	libmysql-proxy.so.0 => /usr/local/mysql-proxy/lib/libmysql-proxy.so.0 (0x00007f40c7e14000)
	libsql-tokenizer.so.0 => /usr/local/mysql-proxy/lib/libsql-tokenizer.so.0 (0x00007f40c7c05000)
	libevent-2.0.so.5 => /usr/local/mysql-proxy/lib/libevent-2.0.so.5 (0x00007f40c79c2000)
	liblua-5.1.so => /usr/local/mysql-proxy/lib/liblua-5.1.so (0x00007f40c7797000)
	libgmodule-2.0.so.0 => /usr/local/mysql-proxy/lib/libgmodule-2.0.so.0 (0x00007f40c7594000)
	libgthread-2.0.so.0 => /usr/local/mysql-proxy/lib/libgthread-2.0.so.0 (0x00007f40c7393000)
	libmysql-chassis-timing.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-timing.so.0 (0x00007f40c718f000)
	libmysql-chassis-glibext.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-glibext.so.0 (0x00007f40c6f8d000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f40c6cfb000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f40c6af6000)
	libcrypto.so.6 => not found
	libjemalloc.so.1 => /usr/local/mysql-proxy/lib/libjemalloc.so.1 (0x00007f40c68bc000)
	libglib-2.0.so.0 => /usr/local/mysql-proxy/lib/libglib-2.0.so.0 (0x00007f40c659e000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f40c6381000)
	librt.so.1 => /lib64/librt.so.1 (0x00007f40c6179000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f40c5de4000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f40c8247000)
	libcrypto.so.6 => not found
	libcrypto.so.6 => not found
	libcrypto.so.6 => not found
	libcrypto.so.6 => not found
	libcrypto.so.6 => not found

아직
오:
[root@localhost bin]# find / -name libcrypto.so.6
/usr/lib64/libcrypto.so.6
/usr/lib/libcrypto.so.6
[root@localhost bin]# ll /usr/lib64/libcrypto.so.6
lrwxrwxrwx. 1 root root 19 May 11 23:22 /usr/lib64/libcrypto.so.6 -> libcrypto.so.0.9.8e
[root@localhost bin]# ll /usr/lib/libcrypto.so.6
lrwxrwxrwx. 1 root root 19 May 11 19:32 /usr/lib/libcrypto.so.6 -> libcrypto.so.0.9.8e

수동으로 연결 파일 만들기
[root@localhost bin]# ln -s  libcrypto.so.0.9.8e libcrypto.so.6
[root@localhost bin]# ls
encrypt  libcrypto.so.6  mysql-proxy  mysql-proxyd  VERSION

  
[root@localhost bin]# ldd mysql-proxy
	linux-vdso.so.1 =>  (0x00007fffd55ff000)
	libmysql-chassis.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis.so.0 (0x00007f3cfdaa3000)
	libmysql-proxy.so.0 => /usr/local/mysql-proxy/lib/libmysql-proxy.so.0 (0x00007f3cfd87f000)
	libsql-tokenizer.so.0 => /usr/local/mysql-proxy/lib/libsql-tokenizer.so.0 (0x00007f3cfd670000)
	libevent-2.0.so.5 => /usr/local/mysql-proxy/lib/libevent-2.0.so.5 (0x00007f3cfd42d000)
	liblua-5.1.so => /usr/local/mysql-proxy/lib/liblua-5.1.so (0x00007f3cfd202000)
	libgmodule-2.0.so.0 => /usr/local/mysql-proxy/lib/libgmodule-2.0.so.0 (0x00007f3cfcfff000)
	libgthread-2.0.so.0 => /usr/local/mysql-proxy/lib/libgthread-2.0.so.0 (0x00007f3cfcdfe000)
	libmysql-chassis-timing.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-timing.so.0 (0x00007f3cfcbfa000)
	libmysql-chassis-glibext.so.0 => /usr/local/mysql-proxy/lib/libmysql-chassis-glibext.so.0 (0x00007f3cfc9f8000)
	libm.so.6 => /lib64/libm.so.6 (0x00007f3cfc766000)
	libdl.so.2 => /lib64/libdl.so.2 (0x00007f3cfc561000)
	libcrypto.so.6 => /usr/lib64/libcrypto.so.6 (0x00007f3cfc205000)
	libjemalloc.so.1 => /usr/local/mysql-proxy/lib/libjemalloc.so.1 (0x00007f3cfbfcb000)
	libglib-2.0.so.0 => /usr/local/mysql-proxy/lib/libglib-2.0.so.0 (0x00007f3cfbcad000)
	libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3cfba90000)
	librt.so.1 => /lib64/librt.so.1 (0x00007f3cfb888000)
	libc.so.6 => /lib64/libc.so.6 (0x00007f3cfb4f3000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3cfdcb2000)
	libz.so.1 => /lib64/libz.so.1 (0x0000003b3ac00000)

  
[root@localhost bin]# ./mysql-proxyd test start
OK: MySQL-Proxy of test is started

  

좋은 웹페이지 즐겨찾기