2015-04-17 18 views
0

我在Mac OSX 10.10.2上。在试图制定升级从2.1.2 2.2.8(通过更新的Gemfile版本),bundle install尝试bcrypt 3.1.10和崩溃安装与此输出:无法安装bcrypt-ruby,阻止设计升级,“无法构建本地宝石扩展”

 /Users/username/.rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb 
     creating Makefile 

     make clean 

     make 
     compiling bcrypt_ext.c 
     make: *** [bcrypt_ext.o] Segmentation fault: 11 

     make failed, exit code 2 

我试图找到一些修正在搜索,如:

`gem install bcrypt -v '3.1.10'´ 

(同样的错误)从GitHub(https://github.com/codahale/bcrypt-ruby

下载宝石来源,并试图从当地的Gemfile(同样的错误)安装。

卸载bcrypt-红宝石gem uni bcrypt,与gem i bcrypt-ruby --platform=ruby(同样的错误)

如果我设置的用户与sudo su -根,我能够运行具有以下输出安装重新安装:

root# gem install bcrypt -v '3.1.10' 
Building native extensions. This could take a while... 
Successfully installed bcrypt-3.1.10 
Parsing documentation for bcrypt-3.1.10 
unable to convert "\xCA" from ASCII-8BIT to UTF-8 for lib/bcrypt_ext.bundle, skipping 
1 gem installed 

但是,如果我退出根目录,则捆绑安装仍会失败。

运行RVM 1.25.3,红宝石1.9.3,2.2.2宝石,捆扎机版本1.9.4时,Xcode 6.3,命令行工具6.3

任何想法?

回答

1

最后,这个工作:

  • 更新RVM对头rvm get head
  • 卸载RVM 1.9.3与rvm uninstall 1.9.3
  • 重新安装RVM 1.9.3。尝试运行rvm install 1.9.3,建议改为运行rvm install ruby-1.9.3-p551。做过某事。
  • rvm use 1.9.3
  • 重新安装捆绑与gem install bundler
  • 现在,终于bundle install作品。

似乎以前的步骤(特别是在Xcode &命令行工具上运行更新)有助于成功。

相关问题