2024 December 20 rabbitmq
rabbitmq
源码安装
# rabbitmq-c
apt-get install openssl libssl-dev # 依赖库
cmake -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=ON -DBUILD_TESTS=OFF .. # 源码编译
mv /usr/local/lib/x86_64-linux-gnu/pkgconfig/librabbitmq.pc /usr/local/lib/pkgconfig/librabbitmq.pc
mv /usr/local/lib/x86_64-linux-gnu/librabbitmq.* /usr/local/lib/
rm -rf /usr/local/lib/x86_64-linux-gnu
# simpleamqpclient
apt-get install libboost-chrono-dev libboost-system-dev # 依赖库
附录
rabbitmq-c ssl error
# add link
ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu/libssl.so
ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so
# make install
simpleamqpclient boost error
apt-get update && apt-get install -y --no-install-recommends libboost-chrono-dev
ln -s /usr/lib/x86_64-linux-gnu/libboost_system.so.1.58.0 /usr/lib/x86_64-linux-gnu/libboost_system.so