尝试使用Homebrew安装httpd时,权限被拒绝@rb_system

时间:2018-06-12 23:47:24

标签: ruby homebrew macos-high-sierra

我想使用Homebrew安装httpd,但我一直收到此错误 -

Error: Permission denied @ rb_sysopen - /tmp/github_api_headers20180612-63207-1943ua6

我试过了 - sudo chmod -R 1777 /tmp,但这不起作用

这是/ tmp

的当前权限集
drwxr-xr-x    8 _mysql  _mysql   256 Jun 12 18:39 tmp

以下是我的mac air上的一些信息

System Version: macOS 10.13.5 (17F77) 
Kernel Version: Darwin 17.6.0

即使我尝试更新ruby,它也会给我这个错误

[2018-06-12 18:13:32] requirements_osx_brew_libs_install
requirements_osx_brew_libs_install () 
{ 
    brew install "$@" --force || { 
        \typeset ret=$?;
        requirements_osx_brew_libs_error "installation";
        case "$_system_version" in 
            10.6)
                rvm_warn "
On OSX 10.6 instead of command line tools install:
    https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.6.pkg"
            ;;
        esac;
        return $ret
    }
}
current path: /Users/iivri.andre
PATH=/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/iivri.andre/.sdkman/candidates/gradle/current/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/iivri.andre/.rvm/bin
command(10): requirements_osx_brew_libs_install autoconf automake libtool pkg-config coreutils libyaml readline libksba openssl@1.1
++ brew install autoconf automake libtool pkg-config coreutils libyaml readline libksba openssl@1.1 --force
Error: Permission denied @ rb_sysopen - /tmp/github_api_headers20180612-55209-1k19y8s

如何更正此问题?

0 个答案:

没有答案