Bonjour,
Quelqu’un sait-il pourquoi gem ne trouve pas activerecord-oracle-adapter
?
C:>rails --version
Rails 2.0.1
C:>gem install activerecord-oracle-adapter
ERROR: While executing gem … (Gem::GemNotFoundException)
Could not find activerecord-oracle-adapter (> 0) in any repository
Tout a commencé lorsque j’ai essayé de démarrer Mongrel sur Win32 :
C:\web\FDS_Server>mongrel_rails start -e production -p 4001
** Starting Mongrel listening at 0.0.0.0:4001
** Starting Rails with production environment…
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.1/lib/active_record/connection_adapters/abstract/connection_specificatio
n.rb:231:in establish_connection': Please install the oracle adapter:
gem install activerecord-oracle-adapter` (no suc
h file to load – active_record/connection_adapters/oracle_adapter)
(RuntimeError)
J’ai installé ruby-oci8 et peux communiquer avec une base Oracle
installée sur un serveur distant via:
ruby -r oci8 -e “OCI8.new(‘id’, ‘password’, ‘???.???.?.?/xe’).exec(
‘SELECT * FROM THINGS WHERE ID=7’) do |r| puts
r.join(’ | '); end”
De plus, activerecord-oracle-adapter n’existe pas sur ma machine de
développement… pourtant l’application y fonctionne bien sous Mongrel.
Merci,
Christophe.