2012-02-11 80 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,只是从原始终端工作,固定它...不要问我如何。

相关问题