Hola Lista
A ver si me podeis ayudar con este problema:
Al ejecutar rake db:create:all me da este error:
(in /home/xurde/WEBS/tiendaOnline)
rake aborted!
Unknown database ‘tiendaonline_development’
Muestro el Error completo con :
rake db:create:all --trace
(in /home/xurde/WEBS/tiendaOnline)
** Invoke db:create:all (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
Unknown database ‘tiendaonline_development’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/mysql_adapter.rb:527:in
real_connect' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/mysql_adapter.rb:527:in
connect’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/mysql_adapter.rb:186:in
initialize' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/mysql_adapter.rb:85:in
new’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/mysql_adapter.rb:85:in
mysql_connection' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in
send’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:292:in
connection=' /usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:260:in
retrieve_connection’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.1.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
connection' /usr/lib/ruby/gems/1.8/gems/spree-0.5.1/lib/spree/config.rb:15:in
instance’
/usr/lib/ruby/gems/1.8/gems/spree-0.5.1/lib/preference_access.rb:7:in
[]' /home/xurde/WEBS/tiendaOnline/config/initializers/spree.rb:39 /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in
load’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in
load' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in
new_constants_in’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:503:in
load' /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:484:in
load_application_initializers’
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:483:in each' /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:483:in
load_application_initializers’
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:149:in
process' /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:97:in
send’
/usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/initializer.rb:97:in run' /usr/lib/ruby/gems/1.8/gems/spree-0.5.1/lib/spree/initializer.rb:87:in
run’
/home/xurde/WEBS/tiendaOnline/config/environment.rb:13
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in
require' /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:355:in
new_constants_in’
/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/dependencies.rb:510:in
require' /usr/lib/ruby/gems/1.8/gems/rails-2.1.2/lib/tasks/misc.rake:3 /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in
call’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:617:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in
each’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in execute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in
invoke_with_call_chain’
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
invoke_with_call_chain’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:588:in
invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in
each’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:585:in
invoke_prerequisites' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:577:in
invoke_with_call_chain’
/usr/lib/ruby/1.8/monitor.rb:242:in synchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in
invoke_with_call_chain’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in
invoke_task’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in
each’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exception_handling’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in top_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in
run’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in
standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in
run’
/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
/usr/bin/rake:16:in `load’
/usr/bin/rake:16
Miro las versiones:
rails -v
Rails 2.1.2
gem -v
1.3.1
rake -v Produce el siguiente error:
(in /home/xurde/WEBS/tiendaOnline)
/usr/bin/ruby1.8 -Ilib:test
“/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb”
/usr/bin/ruby1.8 -Ilib:test
“/usr/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb”
Errors running test:units!
pongo tambien una lista de la gemas que tengo instaladas:
gem list --local
*** LOCAL GEMS ***
actionmailer (2.2.2, 2.1.2, 2.1.0)
actionpack (2.2.2, 2.1.2, 2.1.0)
activemerchant (1.4.0)
activerecord (2.2.2, 2.1.2, 2.1.0)
activeresource (2.2.2, 2.1.2, 2.1.0)
activesupport (2.2.2, 2.1.2, 2.1.0)
builder (2.1.2)
cgi_multipart_eof_fix (2.5.0)
columnize (0.3.0)
daemons (1.0.10)
fastthread (1.0.1)
gem_plugin (0.2.3)
has_many_polymorphs (2.12)
highline (1.5.0, 1.4.0)
hoe (1.8.2)
linecache (0.43)
mini_magick (1.2.3)
mongrel (1.1.5)
nokogiri (1.1.1)
rails (2.1.2, 2.1.0)
rake (0.8.3)
rmagick (2.8.0)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubyforge (1.0.2)
rubygems-update (1.3.1)
sources (0.0.1)
spree (0.5.1)
tlsmail (0.0.1)
Recientemente actualize rubygmes de la version 0.9.4 a la 1.3.1 . Me dio
un
problema que quedaron las 2 instaladas que solucione con:
mv /usr/bin/gem /usr/bin/gem.bak
ln -s /usr/bin/gem1.8 /usr/bin/gem
la unica web que encontre con informacion:
http://code.google.com/p/otwarchive/issues/detail?id=38
Jorge G.