我正在新机器上安装导轨(确切地说是高精度)我已经通过导轨进入设置导轨,但是无论何时我去捆绑安装,都会出现以下错误:
Errno::EACCES: Permission denied @ dir_s_mkdir - /Users/jake/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/extensions/x86_64-darwin-17/2.5.0-static/nio4r-2.3.1
An error occurred while installing nio4r (2.3.1), and Bundler cannot continue.
Make sure that `gem install nio4r -v '2.3.1'` succeeds before bundling.
我已经下载了命令行工具,我已经下载了xcode(实际应用程序)我也是在mysql之前首先不小心下载了postgres(通过命令行)。我不确定这是否与它有关
提前感谢!
答案 0 :(得分:0)
看来我已经在sudo中安装了nio4r-2.3.1,因此没有正确的权限来访问它不在sudo中。我运行以下命令来更改目录:
sudo chown -R jake ~/.rbenv
非常感谢The Tin Man的详细信息: - How to fix a bundle install "nio4r error" on Rails 5.0.0