After running:
$ bundle exec rake
$ bundle exec rake
I receive this error:
我收到此错误:
/Users/user/Documents/Code/spree_gem/vendor/bundle/gems/json-
1.8.2/lib/json/ext/parser.bundle: [BUG] Segmentation fault at 0x00000000000418
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64darwin14.0]
Along with this:
除此之外:
/Users/user/Documents/Code/spree_gem/vendor/bundle/bin/rake:23
:in `<main>'
/Users/user/Documents/Code/spree_gem/vendor/bundle/bin/rake:23
:in `load'
/Users/user/Documents/Code/spree_gem/vendor/bundle/gems/rake-
10.4.2/bin/rake:33:in `<top (required)>'
I've tried $ gem pristine --all
. Any thoughts?
我试过$ gem pristine --all。有什么想法吗?
4 个解决方案
#1
4
I had the same error too. Googled around and found these two posts http://community.onemonth.com/t/install-rvm-error/1883/25
https://bugs.ruby-lang.org/issues/9444
我也有同样的错误。谷歌搜索了这两个帖子http://community.onemonth.com/t/install-rvm-error/1883/25 https://bugs.ruby-lang.org/issues/9444
The first post's solution fixed it for me, so for you it would be:
第一篇帖子的解决方案为我修好了,所以对你来说就是:
rvm get stable
rvm reinstall ruby-2.1.5
#2
3
This worked for me:
这对我有用:
-
Uninstall ruby:
rvm remove 2.2.1
卸载ruby:rvm remove 2.2.1
-
Install ruby:
rvm install 2.2.1
安装ruby:rvm install 2.2.1
-
Reinstall rails:
sudo gem install rails
重新安装rails:sudo gem install rails
-
Reinstall missing gems:
bundle install
重新安装缺少的gem:bundle install
-
Update RubyGems
gem install rubygems-update
更新RubyGems gem install rubygems-update
-
Reset gems
gem pristine --all
重置gems gem pristine --all
-
Maybe you'll have to rerun
bundle install
也许你必须重新运行bundle install
Try running rails server rails s
尝试运行rails server rails
#3
1
Actually, just recalling rvm use ruby-2.2.5
fixed this for me, and is less destructive than the other solutions.
实际上,只是回忆rvm使用ruby-2.2.5为我修复了这个问题,并且比其他解决方案的破坏性更小。
#4
0
I have got the same error
我有同样的错误
But below configuration will start working for me.
但是下面的配置将开始为我工作。
rvm pkg install iconv
rvm pkg install openssl
rvm reinstall 2.1.5 --with-openssl-dir=~/.rvm/usr --with-iconv-dir=~/.rvm/usr
Also it was working whileI have made in Gemfile
by replacing
它也是在我通过替换在Gemfile中制作的
source 'https://rubygems.org'
this line with
这条线
source 'http://rubygems.org'
#1
4
I had the same error too. Googled around and found these two posts http://community.onemonth.com/t/install-rvm-error/1883/25
https://bugs.ruby-lang.org/issues/9444
我也有同样的错误。谷歌搜索了这两个帖子http://community.onemonth.com/t/install-rvm-error/1883/25 https://bugs.ruby-lang.org/issues/9444
The first post's solution fixed it for me, so for you it would be:
第一篇帖子的解决方案为我修好了,所以对你来说就是:
rvm get stable
rvm reinstall ruby-2.1.5
#2
3
This worked for me:
这对我有用:
-
Uninstall ruby:
rvm remove 2.2.1
卸载ruby:rvm remove 2.2.1
-
Install ruby:
rvm install 2.2.1
安装ruby:rvm install 2.2.1
-
Reinstall rails:
sudo gem install rails
重新安装rails:sudo gem install rails
-
Reinstall missing gems:
bundle install
重新安装缺少的gem:bundle install
-
Update RubyGems
gem install rubygems-update
更新RubyGems gem install rubygems-update
-
Reset gems
gem pristine --all
重置gems gem pristine --all
-
Maybe you'll have to rerun
bundle install
也许你必须重新运行bundle install
Try running rails server rails s
尝试运行rails server rails
#3
1
Actually, just recalling rvm use ruby-2.2.5
fixed this for me, and is less destructive than the other solutions.
实际上,只是回忆rvm使用ruby-2.2.5为我修复了这个问题,并且比其他解决方案的破坏性更小。
#4
0
I have got the same error
我有同样的错误
But below configuration will start working for me.
但是下面的配置将开始为我工作。
rvm pkg install iconv
rvm pkg install openssl
rvm reinstall 2.1.5 --with-openssl-dir=~/.rvm/usr --with-iconv-dir=~/.rvm/usr
Also it was working whileI have made in Gemfile
by replacing
它也是在我通过替换在Gemfile中制作的
source 'https://rubygems.org'
this line with
这条线
source 'http://rubygems.org'