相关疑难解决方法(0)

山狮升级后无法安装一些宝石

我刚刚将我的Macbook更新为Mountain Lion,但现在我无法安装一些宝石,因为下面有关于标题的错误.我环顾四周,似乎与Ruby标头缺失有关.有人建议安装Xcode,所以我从应用程序商店和Xcode命令行工具安装了完整的Xcode.但仍然没有运气.有什么建议?

ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
Run Code Online (Sandbox Code Playgroud)

macos ruby-on-rails

8
推荐指数
1
解决办法
3772
查看次数

无法通过rvm bundle install安装ffi 1.9.0 - OSX 10.8.4

在Macbook Pro上使用OSX 10.8.4,带有自制程序,xcode(带命令行工具)和libffi.

我已经安装了rvm和ruby-1.9.3-p448并且有一个名为omega.ecoop的gemset.有一个gemfile,列出了这个项目所需的宝石.但是,在运行捆绑检查后,我无法安装它们:

Bundler can't satisfy your Gemfile's dependencies.
Run Code Online (Sandbox Code Playgroud)

这是正确的,因为它们没有安装.所以我使用:

bundle install
Run Code Online (Sandbox Code Playgroud)

产生以下内容:

Sams-MacBook-Pro:ecoop Sam$ bundle install
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Using addressable (2.3.5) 
Using chunky_png (1.2.8) 
Using fssm (0.2.10) 
Using sass (3.2.10) 
Using compass (0.12.2) 
Using breakpoint (2.0.6) 
Using coderay (1.0.9) 
Using compass-blend-modes (0.0.2) 
Using color-schemer (0.2.5) 
Using compass-normalize (1.4.3) 
Using compass-rgbapng (0.2.1) 
Using compass-validator (3.0.1) 
Using css_parser (1.3.5) 
Using eventmachine (1.0.3) 
Using http_parser.rb (0.5.3) 
Using em-websocket (0.5.0) 
Installing ffi …
Run Code Online (Sandbox Code Playgroud)

ruby macos ffi rvm

7
推荐指数
1
解决办法
5866
查看次数

安装ffi(1.1.2)时发生错误,Bundler无法继续

在Rails 3.0项目中运行OSX Mountain Lion.

当尝试在Rails项目中使用bundler更新我的gem时,我得到以下错误:

An error occured while installing ffi (1.1.2), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.1.2'` succeeds before bundling.

ERROR:  Error installing ffi:
    ERROR: Failed to build gem native extension.

        /Users/victorstan/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

...

You have to install development …
Run Code Online (Sandbox Code Playgroud)

gem ruby-on-rails ffi osx-mountain-lion

6
推荐指数
2
解决办法
4293
查看次数

标签 统计

ffi ×2

macos ×2

ruby-on-rails ×2

gem ×1

osx-mountain-lion ×1

ruby ×1

rvm ×1