Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
Ubuntu 9.04 install failure on rake db:migrate RAILS_ENV=production, help please
 
duran.goodyear
Posted: 11 May 2009 03:33 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  5
Joined  2009-05-11

When I run “rake db:migrate RAILS_ENV=production” I get the following error messages.
This is on Ubuntu Server 9.04
This is from a recent “GIT CLONE” download of tracks 1.7.

Thoughts?
(should I download the zip file from the home page instead?)
Thanks!

duran@voltron:/var/www/railsapps/tracks$ sudo rake db:migrate RAILS_ENV=production --trace
[sudo] password 
for duran: 
(
in /var/www/railsapps/tracks)
rake aborted!
no such file to load -- spec/rake/spectask
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in 
`require'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in 
`require'
/var/www/railsapps/tracks/lib/tasks/rspec.rake:9
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in 
`new_constants_in'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
/var/www/railsapps/tracks/vendor/rails/railties/lib/tasks/rails.rb:8
/var/www/railsapps/tracks/vendor/rails/railties/lib/tasks/rails.rb:8:in `each'
/var/www/railsapps/tracks/vendor/rails/railties/lib/tasks/rails.rb:8
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in 
`gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/var/www/railsapps/tracks/Rakefile:10
/usr/lib/ruby/1.8/rake.rb:2149:in `load'
/usr/lib/ruby/1.8/rake.rb:2149:in 
`raw_load_rakefile'
/usr/lib/ruby/1.8/rake.rb:1897:in `load_rakefile'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1896:in 
`load_rakefile'
/usr/lib/ruby/1.8/rake.rb:1880:in `run'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1878:in 
`run
/usr/bin/rake:28 

also…
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

Profile
 
brianm
Posted: 11 May 2009 05:45 PM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-10

What version of gem are you running?

gem -v 

It may be out of date - this caused a number of problems for me until I updated it (see http://www.getontracks.org/forums/viewthread/402/).

Profile
 
duran.goodyear
Posted: 11 May 2009 05:55 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-05-11

duran@voltron:~$ sudo gem -v
[sudo] password for duran:
1.3.1
duran@voltron:~$

Profile
 
brianm
Posted: 11 May 2009 06:17 PM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-10

I would try updating gem.

$ sudo gem install rubygems-update
$ sudo gem update --system 

If you get this error follow guide at http://www.videc.at/2009/04/30/rubygems-undefined-method-manage_gems-for-gemmodule-nomethoderror/ to correct it:

/usr/bin/gem:10: undefined method `manage_gems’ for Gem:Module (NoMethodError)

Profile
 
duran.goodyear
Posted: 11 May 2009 06:17 PM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-05-11

I installed rubygems 1.3.3
But I’m getting the same error.
Thoughts?

duran@voltron:~/rubygems-1.3.3$ sudo gem -v
1.3.3
duran
@voltron:~/rubygems-1.3.3$ cd /var/www/railsapps/tracks/
duran@voltron:/var/www/railsapps/tracks$ sudo rake db:migrate RAILS_ENV=production --trace
(in /var/www/railsapps/tracks)
rake aborted!
no such file to load -- spec/rake/spectask
/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'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in 
`require'
/var/www/railsapps/tracks/lib/tasks/rspec.rake:9
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load_without_new_constant_marking'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in 
`new_constants_in'
/var/www/railsapps/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:142:in `load'
/var/www/railsapps/tracks/vendor/rails/railties/lib/tasks/rails.rb:8
/var/www/railsapps/tracks/vendor/rails/railties/lib/tasks/rails.rb:8:in `each'
/var/www/railsapps/tracks/vendor/rails/railties/lib/tasks/rails.rb:8
/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'
/var/www/railsapps/tracks/Rakefile:10
/usr/lib/ruby/1.8/rake.rb:2149:in `load'
/usr/lib/ruby/1.8/rake.rb:2149:in 
`raw_load_rakefile'
/usr/lib/ruby/1.8/rake.rb:1897:in `load_rakefile'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1896:in 
`load_rakefile'
/usr/lib/ruby/1.8/rake.rb:1880:in `run'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1878:in 
`run
/usr/bin/rake:28 
Profile
 
brianm
Posted: 11 May 2009 06:21 PM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-10

Please list your installed gems.

$ gem list 
Profile
 
duran.goodyear
Posted: 11 May 2009 06:40 PM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-05-11

comedy….

duran@voltron:~$ sudo gem list

*** 
LOCAL GEMS ***


duran@voltron:~$ 

I’m guessing I’m missing something pretty important… eh?

*facepalm

Profile
 
brianm
Posted: 11 May 2009 06:54 PM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  9
Joined  2009-05-10

Yea, rails, rake, dependencies and the database package. I am wondering which set of installation instructions you are following?  You really need to read this page (if you have not already): http://www.getontracks.org/doc/chapter/2-installation.html

According to that, you don’t need rails (it is included in package) but I went ahead and installed it anyways. If you want to install rails and all dependencies (which will include everything but the database gem), issue the following command:

$ gem install rails --include-dependencies 
Profile
 
duran.goodyear
Posted: 11 May 2009 07:28 PM   [ Ignore ]   [ # 8 ]  
Newbie
Rank
Total Posts:  5
Joined  2009-05-11

I’m a little befuddled, I was almost certain I had everything set up right…  I will re-read the instructions to get the right gems…
Thanks.

Profile
 
Reinier Balt
Posted: 13 May 2009 08:29 PM   [ Ignore ]   [ # 9 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

You are missing the rspec gem (and probably the rspec-rails gem)

For 1.8 we will report missing gems when starting up tracks…

Profile
 
   
 
 
‹‹ undefined method `collect’      Apache & fcgid problems ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1354 seconds

Atom Feed
RSS 2.0