2012-02-11 103 views
2

而且,是的,另一個類似類型的問題,但沒有貼子幫助我的情況。一直試圖解決這個問題兩天。json Errno :: EPERM不允許操作

當我輸入「軌新的應用程序」或運行現有的應用程序「包安裝」,我得到:

Errno::EPERM: Operation not permitted - /Users/pb/.rvm/gems/ruby-1.9.2-p290/gems/json- 1.6.5/.gitignore 
An error occured while installing json (1.6.5), and Bundler cannot continue. 
Make sure that `gem install json -v '1.6.5'` succeeds before bundling. 

當我鍵入任何軌道在現有項目的命令,我得到:

Could not find json-1.6.5 in any of the sources 
Run `bundle install` to install missing gems. 

當我輸入sudo創業板安裝JSON -v '1.6.5' 我得到:

Building native extensions. This could take a while... 
ERROR: Error installing json: 
    ERROR: Failed to build gem native extension. 

/Users/pb/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb creating Makefile 

make 
/usr/bin/gcc-4.2 -I. -I/Users/pb/.rvm/rubies/ruby-1.9.2-p290/include/ruby 
-1.9.1/x86_64-darwin10.8.0 -I/Users/pb/.rvm/rubies/ruby 
-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/pb/.rvm/rubies/ruby-1.9.2 p290/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SO 
URCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -O3 -Wall -o parser.o -c parser.c 
make: /usr/bin/gcc-4.2: No such file or directory 
make: *** [parser.o] Error 1 

我已經嘗試了所有的以下內容:

Uninstall gem json (this tells me json is not installed) 
sudo gem update rails 

我還安裝了最新的xCode - 4.2.1。

任何意見,以解決我的問題將不勝感激!

回答

0

發生這種情況的一個可能的原因是您正在使用rails 3.2並且應用程序是rails 3.1。

執行捆綁安裝並嘗試再次運行它。

2

Soooo,我只是遇到了同樣的問題,後來的版本...原來是因爲我在BYOBU。退出byobu,只是從原始終端工作,固定它...不要問我如何。

相關問題