简体   繁体   English

Rails 3-安装问题…找不到bcrypt-ruby-2.1.2

[英]Rails 3 - Installation Problems…Could not find bcrypt-ruby-2.1.2

I'm working to install Rails 3 on a new MacBook Pro... 我正在努力在新的MacBook Pro上安装Rails 3 ...

when trying to get my app going, I get the following error: 当尝试使我的应用程序运行时,出现以下错误:

Could not find bcrypt-ruby-2.1.2 in any of the sources
Try running `bundle install`.

When I run bundle install, I get the following: 运行捆绑安装时,会得到以下信息:

...

Installing bcrypt-ruby (2.1.2) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

...

Any ideas what I'm doing wrong? 有什么想法我做错了吗?

Also... When I run rails -v it returns: 另外...当我运行rails -v时,它返回:

Could not find bcrypt-ruby-2.1.2 in any of the sources
Try running `bundle install`.

There's a problem compiling the extension, most likely you are missing a C library or something like that. 扩展扩展存在问题,很可能是您缺少C库或类似的东西。 On my Mac it installed with no problem using ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10.4.0] installed with RVM. 在我的Mac上,使用随RVM一起安装的ruby 1.8.7(2010-08-16 patchlevel 302)[i686-darwin10.4.0]可以顺利安装。

Can you try gem install bcrypt-ruby to get more debugging output? 您可以尝试使用gem install bcrypt-ruby获得更多调试输出吗?

Are you using ports or brew or something else? 您是否正在使用端口或Brew或其他工具?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM