curl -OL https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1.tar.gz tar zxvf cmake-3.22.4.tar.gz cd cmake-3.22.4 ./configure --prefix=/home/share/tools/usr/cmake-3.22.4 && make && make install
curl -OL http://ftpmirror.gnu.org/automake/automake-1.11.1.tar.gz tar -xzf automake-1.11.1.tar.gz cd automake-1.11.1 ./configure --prefix=/home/share/tools/usr/automake-1.11.1 && make && sudo make install
curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-2.65.tar.gz tar -xzf autoconf-2.65.tar.gz cd autoconf-2.65 ./configure --prefix=/home/share/tools/us/autoconf && make && sudo make install curl -OL http://ftpmirror.gnu.org/libtool/libtool-2.2.6.tar.gz tar -xzf libtool-2.2.6.tar.gz cd libtool-2.2.6 ./configure --prefix=/home/share/tools/usr/libtool-2.2.6 && make && sudo make install
安装libevent提示: openssl is a must but can not be found.
解决:
1
sudo apt install libssl-dev
问题4:
安装gcc 缺少依赖:GMP
1 2 3 4 5
wget https://mirrors.tuna.tsinghua.edu.cn/gnu/gmp/gmp-4.2.tar.gz tar -zxvf gmp-4.2.tar.gz cd gmp-4.2 configure --prefix=/home/share/tools/usr/gmp-4.2 sudo make && make install
遇到问题:
1
configure: error: cannot guess build type; you must specify one
Traceback (most recent call last): File "/var/local/mq/producer.py", line 12, in <module> from rocketmq.client import Producer, Message File "/usr/local/lib64/python3.8/site-packages/rocketmq/client.py", line 24, in <module> from .ffi import ( File "/usr/local/lib64/python3.8/site-packages/rocketmq/ffi.py", line 42, in <module> dll = ctypes.cdll.LoadLibrary(_DYLIB_PATH) File "/usr/lib64/python3.8/ctypes/__init__.py", line 451, in LoadLibrary return self._dlltype(name) File "/usr/lib64/python3.8/ctypes/__init__.py", line 373, in __init__ self._handle = _dlopen(self._name, mode) OSError: librocketmq.so: cannot open shared object file: No such file or directory