【问题标题】:error: could not create '/usr/lib/python3.5': Operation not permitted错误:无法创建“/usr/lib/python3.5”:不允许操作
【发布时间】:2017-10-07 12:19:17
【问题描述】:

我正在尝试在我的 Mac OS X 上安装 thrift servr。

我已经下载了 thrift 0.10.0,然后使用了 configure 命令。它的输出如下:

thrift 0.10.0

Building Plugin Support ...... : no
Building C++ Library ......... : no
Building C (GLib) Library .... : no
Building Java Library ........ : no
Building C# Library .......... : no
Building Python Library ...... : yes
Building Ruby Library ........ : no
Building Haxe Library ........ : no
Building Haskell Library ..... : no
Building Perl Library ........ : yes
Building PHP Library ......... : yes

然后我使用了make 命令。

现在当我运行时:sudo make install。 它给了我如下错误。

error: could not create '/usr/lib/python3.5': Operation not permitted

【问题讨论】:

    标签: python macos thrift


    【解决方案1】:

    我的建议是看看 sudo 的 -H 选项是否有帮助。

    sudo -H  make install
    

    更多关于这方面的报道可以在this link on stackoverflow找到

    作为您使用 OSX 的您,是否考虑过使用brew package manager

    还要检查您是否正确使用了配置。 OSX 的 special notes 与标准的 build from source 注释不同。

    【讨论】:

      【解决方案2】:

      您是否在命令结束时尝试过--user?我在安装一些 python 库并使用它修复它时遇到了这个问题。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-12-30
        • 2016-07-19
        • 2015-10-27
        • 2016-01-06
        • 2017-09-21
        • 2015-02-18
        • 2023-02-21
        • 2017-06-27
        相关资源
        最近更新 更多