Bonjour à tous
Je viens d'installer Ruby 2.0 ainsi que le DevKit (DevKit-mingw64-64-4.7.2-20130224-1432-sfx)
J'essaye de récupérer un projet ruby 1.8.6 pour le faire tourner sous ruby 2.0 :
J'ai récupéré les fichiers config.ru, application.rb, boot.rb, environment.rb, routes.rb, development.rb, production.rb, test.rb et Gemfile
à partir d'une application ruby 2.0 crée avec la commande rails new test
Lorsque j'exécute rails server sur mon ancien projet ruby 1.8.6 j'ai toujours les mêmes erreurs suivantes :
Par exemple avec la gem sqllite3 :
CRuby200/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7-x86-mingw32/lib/sqlite3.rb:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from CRuby200/lib/ruby/gems/2.0.0/gems/sqlite3-1.3.7-x86-mingw32/lib/sqlite3.rb:6:in `rescue in <top (required)>'
Par exemple avec la gem mysql :
CRuby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1-x86-mingw32/lib/mysql.rb:6:in `require': cannot load such file -- mysql/mysql_api (LoadError)
from CRuby200/lib/ruby/gems/2.0.0/gems/mysql-2.9.1-x86-mingw32/lib/mysql.rb:6:in `rescue in <top (required)>'
J'ai bien essayé d'installer le DevKit puis de refaire un bundle install mais cela ne change rien !
Avez-vous une idée ?
Merci
____________________________________________________________________________________
Ma configuration :
____________________________________________________________________________________
Windows 7, 64 bits
Aptana Studio 3
Ruby 2.0.0p0 (2013-02-24) [i386-mingw32]
gem list :
actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13)
activerecord (3.2.13)
activerecord-mysql-adapter (0.0.1)
activeresource (3.2.13)
activesupport (3.2.13)
arel (3.0.2)
bigdecimal (1.2.0)
builder (3.0.4)
bundler (1.3.4)
cgi_multipart_eof_fix (2.5.0)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.2)
erubis (2.7.0)
execjs (1.4.0)
fastthread (1.0.1 i386-mswin32)
gem_plugin (0.2.3)
hike (1.2.2, 1.2.1)
i18n (0.6.1)
io-console (0.4.2)
journey (1.0.4)
jquery-rails (2.2.1)
json (1.7.7)
linecache (0.43 mswin32)
mail (2.5.3)
mime-types (1.22, 1.21)
minitest (4.3.2)
mongrel (1.1.5 x86-mswin32-60)
multi_json (1.7.2)
mysql (2.9.1 x86-mingw32, 2.7.3 mswin32)
polyglot (0.3.3)
psych (2.0.0)
rack (1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13)
railties (3.2.13)
rake (10.0.4, 0.9.6)
rdoc (4.0.0, 3.12.2)
ruby-debug-base (0.10.3 mswin32)
ruby-debug-ide (0.4.5)
rubygems-update (2.0.3)
sass (3.2.7)
sass-rails (3.2.6)
sprockets (2.2.2)
sqlite3 (1.3.7 x86-mingw32)
sqlite3-ruby (1.3.3)
test-unit (2.0.0.0)
thor (0.18.1, 0.18.0)
tilt (1.3.7, 1.3.6)
treetop (1.4.12)
tzinfo (0.3.37)
uglifier (2.0.1, 1.3.0)
Bundle list :
* actionmailer (3.2.13)
* actionpack (3.2.13)
* activemodel (3.2.13)
* activerecord (3.2.13)
* activeresource (3.2.13)
* activesupport (3.2.13)
* arel (3.0.2)
* builder (3.0.4)
* bundler (1.3.4)
* coffee-rails (3.2.2)
* coffee-script (2.2.0)
* coffee-script-source (1.6
* erubis (2.7.0)
* execjs (1.4.0)
* hike (1.2.2)
* i18n (0.6.1)
* journey (1.0.4)
* jquery-rails (2.2.1)
* json (1.7.7)
* mail (2.5.3)
* mime-types (1.22)
* multi_json (1.7.2)
* mysql (2.9.1)
* polyglot (0.3.3)
* rack (1.4.5)
* rack-cache (1.2)
* rack-ssl (1.3.3)
* rack-test (0.6.2)
* rails (3.2.13)
* railties (3.2.13)
* rake (10.0.4)
* rdoc (3.12.2)
* sass (3.2.7)
* sass-rails (3.2.6)
* sprockets (2.2.2)
* sqlite3 (1.3.7)
* thor (0.18.1)
* tilt (1.3.7)
* treetop (1.4.12)
* tzinfo (0.3.37)
* uglifier (2.0.1)
Contenu du fichier Gemfile :
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# gem 'sqlite3', '1.2.1', :require => 'sqlite3'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# Gems used only for assets and not required
gem 'mysql'
# 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', latforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'bundle
# 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'