2012-02-11 19 views
2

そして、同様のタイプの別の質問ですが、投稿の中には私の状況に役立っていません。これを2日間解決しようとしていました。json Errno :: EPERM操作が許可されていません

I型または実行、既存のアプリに「バンドルのインストール」「の新しいアプリはレール」、私が取得:

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. 

私は任意のレールを入力すると、既存のプロジェクトにコマンドを、私が取得:

私はsudoの宝石は、JSON -v '1.6.5' をインストールすると入力すると
Could not find json-1.6.5 in any of the sources 
Run `bundle install` to install missing gems. 

私が手:私はすべて次のことを試してみた

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

これは、あなたがレール3.2を使用しており、アプリケーションがレール3.1である可能性が考えられます。

バンドルインストールを実行してもう一度実行してください。

2

Soooo、私はずっと後のバージョンで同じ問題を抱えていました...私がBYOBUにいたのでそれが判明しました。 byobuを終了し、生の端末から作業しているだけで...どうやって私に質問しないでください。

関連する問題