0

RoR が初めてで、One Month Rails クラスを受講している (onemonthrails.com)

ブートストラップをインポートしようとしています。

ルビー 2.0.0p247

レール 4.0.0

これが私のGemfileです(「bootstrap-sass」行のみを表示):

ブートストラップジェム

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

助けてくれてありがとう!ディエゴ

4

1 に答える 1

0

このバージョンの周りでいくつかの奇妙な許可バグについて聞いたことがあります

コマンドラインに直接インストールしてみることができます gem install bootstrap-sass -v 2.2.2.0

そして実行しますbundle install

それでも実行できるはずの最悪のシナリオsudo gem install bootstrap-sass -v 2.2.2.0

ただし、sudo には細心の注意を払う必要があります。システムの脆弱性にさらされる可能性があり、宝石があちこちにインストールされるという奇妙な問題が発生する可能性があります. 簡単に言えば、不用意に sudo を使用しないでください。

于 2013-08-22T18:54:47.467 に答える