crowdint / spree_conekta

BSD 3-Clause "New" or "Revised" License
4 stars 25 forks source link

An error occurred while installing ffi (1.9.3), and Bundler cannot continue #24

Closed emsedano closed 10 years ago

emsedano commented 10 years ago

Que tal... estoy tratando de implementar la gema...

source 'https://rubygems.org'

gem 'rails', '3.2.14'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'mysql2'

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

group :development do
  gem 'pry-rails'
  gem 'pry-debugger'
  gem 'pry-stack_explorer'
end

gem 'jquery-rails'

gem "zendesk_api"
gem 'angularjs-rails'
gem 'enum_simulator', '~> 1.1.0'
gem 'js-routes', '~> 0.9.4'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'

gem 'spree', github: 'spree/spree', branch: '2-0-stable'
gem 'spree_auth_devise', :git => 'https://github.com/spree/spree_auth_devise.git', :branch => '2-0-stable'
gem 'spree_i18n', :git => 'git://github.com/spree/spree_i18n.git', :branch => '3-0-stable'

# Conekta
gem 'spree_conekta', git: 'git://github.com/crowdint/spree_conekta.git'

gem 'savon', '~> 2.3.0'

gem "mail_view", "~> 1.0.3"

la version de ruby es : ruby-1.9.3-head

y justo cuando hago

bundle

obtengo este error

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
...
An error occurred while installing ffi (1.9.3), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.3'` succeeds before bundling.

si corro en consola

gem install ffi -v '1.9.3'

esto es lo que sucede

Building native extensions.  This could take a while...
ERROR:  Error installing ffi:
    ERROR: Failed to build gem native extension.

lo mismo si corro

gem install ffi

alguna sugerencia ?? de ante mano gracias...

netmask commented 10 years ago

podrias postear la salida entera del "bundle install"

softr8 commented 10 years ago

Podrías confirmar que tienes instalado gcc o similar en tu maquina ? Al parecer bundle no puede compilar la gema debido a que no tiene un compilador para usarlo

emsedano commented 10 years ago

Por ahi encontre que necesitaba instalar unas tools del xcode

xcode-select --install

después de esto solo instalé de manera manual la gema

gem install ffi -v '1.9.3'

y fue todo, el error ya no ocurrió, aquí encontré la solución https://github.com/ffi/ffi/issues/286