Forum: Ruby on Rails problem with running rake db:migrate on a Rails app

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F0fb7fb81c0604bf4c6747df54930b3f?d=identicon&s=25 Tobias Weisserth (polarapfel)
on 2009-02-21 23:13
(Received via mailing list)
Hi everybody,

I am trying to get the Typo blog engine up and running in development
mode but I hit the wall as early as running rake db:migrate:

(in /home/tweisser/workspace/typo/typo)
rake aborted!
no such file to load -- spec/rake/spectask
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/
activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/
activesupport-2.2.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/
activesupport-2.2.2/lib/active_support/dependencies.rb:153:in
`require'
/home/tweisser/workspace/typo/typo/lib/tasks/rspec.rake:9
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/
activesupport-2.2.2/lib/active_support/dependencies.rb:142:in
`load_without_new_constant_marking'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/
activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/
activesupport-2.2.2/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/
activesupport-2.2.2/lib/active_support/dependencies.rb:142:in `load'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rails-2.2.2/
lib/tasks/rails.rb:8
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rails-2.2.2/
lib/tasks/rails.rb:8:in `each'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rails-2.2.2/
lib/tasks/rails.rb:8
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
/home/tweisser/workspace/typo/typo/Rakefile:10
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:2349:in `load'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:2349:in `raw_load_rakefile'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:1985:in `load_rakefile'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:2036:in `standard_exception_handling'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:1984:in `load_rakefile'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:1969:in `run'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:2036:in `standard_exception_handling'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
lib/rake.rb:1967:in `run'
/opt/ruby-enterprise-1.8.6-20090201/lib/ruby/gems/1.8/gems/rake-0.8.3/
bin/rake:31
/opt/ruby-enterprise/bin/rake:19:in `load'
/opt/ruby-enterprise/bin/rake:19

You can see which version of Ruby I'm running. It's symlinked by /opt/
ruby-enterprise with /opt/ruby-enterprise/bin in my $PATH.

I have the latest version of gem and these gems installed:

*** LOCAL GEMS ***

actionmailer (2.2.2)
actionpack (2.2.2)
actionwebservice (1.2.6)
activerecord (2.2.2)
activeresource (2.2.2)
activesupport (2.2.2)
capistrano (2.5.4)
highline (1.5.0)
mysql (2.7)
net-scp (1.0.2)
net-sftp (2.0.2)
net-ssh (2.0.10)
net-ssh-gateway (1.0.1)
rails (2.2.2)
rake (0.8.3)
rspec (1.1.12)
will_paginate (2.2.2)

I don't know what's wrong here.

Did anybody encounter this problem elsewhere? I have little to no
Rails debugging experience with current Rails versions. Where to
start?

Thanks for your help.

Tobias
A91bd6cef23eb3516245a092e196c4da?d=identicon&s=25 Maurício Linhares (mauricio)
on 2009-02-22 04:47
(Received via mailing list)
Rake is trying to find rspec and isn`t being able to do it. Do you
have any other rails version available? Are you sure that the rspec
gem is installed at your current Ruby interpreter?

You could also try to unpack the rspec gem into vendor/gems in your app.

-
Maurício Linhares
http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/
(en)
F0fb7fb81c0604bf4c6747df54930b3f?d=identicon&s=25 Tobias Weisserth (polarapfel)
on 2009-02-22 13:39
(Received via mailing list)
It's a weird problem.

rspec is installed for sure. I can use it in other Rails apps locally
from within the same Ruby/Rails setup.

I tried adding a git submodule for rspec to vendor/gems/rspec from the
rspec github page. Still, the same errors.

I switched back to Ubuntu's Ruby installation to try if this made a
difference, but the problem remains the same. It just affects Typo.
Other Rails apps work fine...

Thanks for your help,

Tobias

On Feb 22, 4:46 am, Maurício Linhares <mauricio.linha...@gmail.com>
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2009-02-23 01:00
(Received via mailing list)
I'd recommend that you take a look at this:

http://wiki.github.com/dchelimsky/rspec/rails-with...

It should help you get rspec working.

--Matt Jones
6856d20b5d6cbdb827cdccca7f557979?d=identicon&s=25 William Yeung (goodwill)
on 2009-04-18 05:00
(Received via mailing list)
Your local gem is REE's gem repository or MRI's? Thats easy to be
confused indeed... and seems when I tried something like rake
gems:install in rails project it would always install the gem inside
MRI unless you have replace the static link of rake/gem/ruby. (Yep, I
am explicitly calling the rake inside REE.)
This topic is locked and can not be replied to.