我正在尝试在我的系统(macOs 10.14.5)上安装thrift(0.11.0)。为此,我下载并提取了tar文件。然后我运行以下命令:
./bootstrap.sh
./configure
make
make install
但是进行安装引发以下错误:
error: could not create '/usr/lib/python2.7/site-packages': Operation not permitted
然后,我还尝试在/usr/lib/python2.7内手动创建site-package,但错误消息仍然相同。在运行make install时,我也尝试过sudo,但并没有太大帮助。
我在Mac OS上尝试安装thrift时遇到了同样的问题。
我找到了在Mac OS上安装Thrift的单独指南,我尝试了一下,终于成功了:
1-从boost.org untar编译中下载boost库,>
./bootstrap.sh sudo ./b2 threading=multi address-model=64 variant=release stage install
2-下载libevent,解压缩并使用
./configure --prefix=/usr/local make sudo make install
3-下载Apache Thrift的最新版本,解压缩并使用
./configure --prefix=/usr/local/ --with-boost=/usr/local --with-libevent=/usr/local
尝试一下,让我知道您的结果。