리눅스
[리눅스] libzmq.so.5: cannot open shared object file: No such file or directory
홍또~
2021. 1. 25. 18:46
libzmq.so.5 를 Centos에 yum으로 설치해보자
1. wget 명령어로 tar파일 받기
wget https://github.com/zeromq/libzmq/archive/v4.2.3.tar.gz
2. 압축풀기
tar zxvf v4.2.3.tar.gz
3. 압축푼 폴더 접근
cd libzmq-4.2.3/
4. 컴파일 및 설치
./autogen.sh (libtool)
./configure --prefix=/usr
make
make install
예외1) autogen.sh: error: could not find libtool. libtool is required to run autogen.sh.
-> 해결법 yum -y install libtool
예외2) configure: error: Unable to find a working C++ compiler
-> 해결법 yum -y install gcc gcc-c++
설치된 dir : /usr/lib
해당 폴더 LIBRARY_PATH에 추가
export LD_LIBRARY_PATH="/usr/lib"