RoR新手并参加One Month Rails课程(onemonthrails.com)
我正在尝试导入bootstrap。
ruby 2.0.0p247
rails 4.0.0
这是我的Gemfile(仅显示'bootstrap-sass'line):
Bootstrap Gem
gem 'bootstrap-sass', '~> 2.2.2.0'
这是运行'bundle install'
时的输出Diegos-Air-2:omrails Diego$ bundle install
Fetching gem metadata from '...rubygems.org/..........'
Fetching gem metadata from '...rubygems.org/..'
Resolving dependencies...
Enter your password to install the bundled RubyGems to your system:
Using rake (10.1.0)
Using i18n (0.6.4)
Using minitest (4.7.5)
Using multi_json (1.7.8)
Using atomic (1.1.12)
Using thread_safe (0.1.2)
Using tzinfo (0.3.37)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.14)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.0)
Using activerecord (4.0.0)
Using sass (3.2.10)
Installing bootstrap-sass (2.2.2.0)
Errno::EACCES: Permission denied - /Users/Diego/.rvm/gems/ruby-2.0.0-p247/bin/ruby_noexec_wrapper
An error occurred while installing bootstrap-sass (2.2.2.0), and Bundler cannot continue.
Make sure that `gem install bootstrap-sass -v '2.2.2.0'` succeeds before bundling.
我的GitHub链接:github.com/dschmunis/omrails
感谢您的帮助! 迭
答案 0 :(得分:0)
我听说过这个版本的一些奇怪的权限错误
您可以尝试直接在命令行中安装
gem install bootstrap-sass -v 2.2.2.0
然后运行bundle install
最糟糕的情况是,您仍然可以运行sudo gem install bootstrap-sass -v 2.2.2.0
但你应该对sudo非常小心。它会让您对系统漏洞开放,并且可能会导致一些奇怪的问题,并且宝石被安装到处。长话短说,不要随便使用sudo。