我正在尝试在 Windows 10 机器上托管的 ubunto 20 VM 上安装 thrift-0.8.0。
执行命令后,我得到最后三行:
检查 -lsocket 中的 setsockopt ...否
检查 -lybcrypto 中的 BN_init ...否
配置:错误:“错误:需要 libcrypto。”
我已经安装了 libss-dev 包。
我也尝试了我在帖子中看到的这个解决方案:
LDFLAGS='-L/usr/local/ssl/lib' LIBS='-ldl' ./configure --prefix=/usr/local/thrift --with-php --with-boost=/usr/local/boost
我试过了 :
../thrift-0.8.0/configure CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib CXXFLAGS=-DMINGW
没有任何效果,我感到很失落,你们能提出一个解决方案吗?
最佳答案
安装最新版本0.15.0
来自 git repo :
sudo apt install automake bison flex g++ git libboost-all-dev \
libevent-dev libssl-dev libtool make pkg-config
git clone -b 0.15.0 https://github.com/apache/thrift.git
cd thrift
git branch
./bootstrap.sh
./configure --disable-dependency-tracking
make
sudo make install
关于linux - Thrift 0.8.0 无法安装在 ./configure,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70057278/