我在捆绑安装过程中遇到了一些错误。我跑的命令/home/tanmay/.rvm/gems/[email protected]/bin/bundle install
在rails中捆绑安装错误
下面是错误的详细信息:
Errno::EACCES: Permission denied - /home/circar
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:245:in `mkdir'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:245:in `fu_mkdir'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:219:in `block (2 levels) in mkdir_p'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:217:in `reverse_each'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:217:in `block in mkdir_p'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:203:in `each'
/home/tanmay/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb:203:in `mkdir_p'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler.rb:308:in `mkdir_p'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/installer.rb:287:in `create_bundle_path'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/installer.rb:54:in `run'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/installer.rb:18:in `install'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/cli/install.rb:107:in `run'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/cli.rb:158:in `install'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/lib/bundler/cli.rb:10:in `start'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/bin/bundle:20:in `block in <top (required)>'
/home/tanmay/.rvm/gems/ruby[email protected]/gems/bundler-1.10.3/lib/bundler/friendly_errors.rb:7:in `with_friendly_errors'
/home/tanmay/.rvm/gems/[email protected]/gems/bundler-1.10.3/bin/bundle:18:in `<top (required)>'
/home/tanmay/.rvm/gems/[email protected]/bin/bundle:23:in `load'
/home/tanmay/.rvm/gems/[email protected]/bin/bundle:23:in `<main>'
/home/tanmay/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval'
/home/tanmay/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>'
环境
Bundler 1.10.3
Rubygems 2.1.11
Ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux]
GEM_HOME /home/circar/.gem/ruby/2.0.0/ruby/2.0.0
GEM_PATH
RVM 1.26.11 (master)
Git 1.7.9.5
捆扎机设置:
without
Set for your local app (/home/tanmay/amit_rails/circarindia/.bundle/config): "development:test"
disable_shared_gems
Set for your local app (/home/tanmay/amit_rails/circarindia/.bundle/config): "1"
path
Set for your local app (/home/tanmay/amit_rails/circarindia/.bundle/config): "/home/circar/.gem/ruby/2.0.0"
UPDATE 我的包后,安装运行正常se命令。
RM -rf〜/ .bundle /〜/ .gem/ 室射频$ GEM_HOME /捆扎机/, 室射频.bundle /, 室射频供应商/缓存/, 室射频的Gemfile。锁, 但我不明白这些命令。这个命令是什么? 在此先感谢
看起来你是以错误的用户身份登录的:你在'/ home/tanmay'中,但是脚本试图写入'/ home/circar'中的gems文件夹,因为GEM_HOME被设置为'/家庭/ circar'。你实际登录了哪个用户?如果两个用户需要互相写入主文件夹,则可以将它们放在一个组中,并确保这些文件夹都具有组写入权限。 –
但经过RM -rf〜/ .bundle /〜/ .gem/ 室射频$ GEM_HOME /捆扎机/ 室射频.bundle/ 室射频供应商/缓存/ 室射频Gemfile.lock的 – AGM
后这些comand运行bundle安装正常。 – AGM