linux - Thrift 0.8.0 无法安装在 ./configure

标签 linux ubuntu unix

我正在尝试在 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/

相关文章:

linux - 如何使用 bash 中的参数从文件中提取行

linux - Go 代码构建错误,标准包中的非标准导入 "fmt",导入周期不允许

node.js - APM 在公司代理后面不起作用

php - 让 Ubuntu 确认安装了自定义版本的 PHP

linux - 处理接收 X11 SelectionNotify 事件,xev 不显示该事件;为什么会这样?

从命令行执行时 CGI C 输出正确,但从 web 请求执行时不正确

bash - 如何在 crontab 上进行没有密码的 svn 更新

bash - 添加到 tar 存档后删除文件

linux - 隐藏 Unix Shell 脚本后台进程输出

c - 如何在不更改其值的情况下获取先前设置的闹钟的剩余时间?