Sal*_*leh 4 gem rubygems ruby-on-rails
对不起,这可能是一个基本问题,但我是rails的新手.我想通过命令启动一个新的rails项目rails new projName.在这个过程的中间我收到了这条消息:
run bundle install
Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.
Password:
Run Code Online (Sandbox Code Playgroud)
我不太确定是否应该提供密码,但是我搜索了一下,我发现这样做是安全的(或者至少是我所理解的).
最后我得到了这个警告:
Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run `gem pristine --all` for better startup performance.
* bin/rake: spring inserted
* bin/rails: spring inserted
Run Code Online (Sandbox Code Playgroud)
所以我试着跑gem install Rubygems,我得到了:
ERROR: Could not find a valid gem 'Rubygems' (>= 0) in any repository
ERROR: Possible alternatives: ruby_gem, ruby_gem_eg, ruby-rets, ruby-gen, rubyless
Run Code Online (Sandbox Code Playgroud)
我试过了gem install rubygems-update,我得到了:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Run Code Online (Sandbox Code Playgroud)
我已经通过RVM安装了rails,我不确定为什么我有这些权限问题.因为我对宝石没有经验,所以我被困住了,不知道如何解决这些问题.
| 归档时间: |
|
| 查看次数: |
5869 次 |
| 最近记录: |