Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Installation  >  Linux  >  Thread
   
 
Installation problems on Ubuntu Hardy: “undefined method `collect’”
 
jason0x21
Posted: 27 January 2009 08:39 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  3
Joined  2009-01-27

I’m trying to get tracks installed on a 8.04 system, and have run into some trouble.  Now, granted, I tried to replace some of the instructions with deb packages, so I’ll explain my setup and hope for the best.

I’ve got the ruby, and ruby1.8 packages installed.  The rails version is (2.0.2-1ubuntu1).  Rubygems is package version (0.9.4-4), and I’m using mysql.  I think my problem happens much sooner than that, though.  Since I’m upgrading a database.  I’m running the command:

rake db:migrate RAILS_ENV=production 

I get the following result…

config.gem: Unpacked gem highline-1.5.0 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
rake aborted!
undefined method `collect' for #<Gem::Version::Requirement:0xb6fc1d70>

(See full trace by running task with --trace) 

I get the impression I shouldn’t worry about the “no specification file” thing, but the undefined method is the real problem. Running with—trace yields…

** Invoke db:migrate (first_time)
** 
Invoke environment (first_time)
** 
Execute environment
config
.gem: Unpacked gem highline-1.5.0 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
rake aborted!
undefined method `collect' for #<Gem::Version::Requirement:0xb6f33ee4>
/usr/lib/ruby/1.8/rubygems/version.rb:237:in 
`initialize'
/usr/lib/ruby/1.8/rubygems/version.rb:29:in `new'
/usr/lib/ruby/1.8/rubygems/version.rb:29:in `initialize'
/home/tracks/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:55:in 
`new'
/home/tracks/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:55:in `initialize'
/home/tracks/config/../vendor/rails/railties/lib/initializer.rb:732:in `new'
/home/tracks/config/../vendor/rails/railties/lib/initializer.rb:732:in 
`gem'
/home/tracks/vendor/plugins/open_id_authentication/init.rb:2:in `evaluate_init_rb'
/home/tracks/config/../vendor/rails/railties/lib/rails/plugin.rb:103:in `evaluate_init_rb'
/home/tracks/vendor/rails/activesupport/lib/active_support/core_ext/kernel/reporting.rb:11:in 
`silence_warnings'
/home/tracks/config/../vendor/rails/railties/lib/rails/plugin.rb:99:in `evaluate_init_rb'
/home/tracks/config/../vendor/rails/railties/lib/rails/plugin.rb:44:in `load'
/home/tracks/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:33:in 
`load_plugins'
/home/tracks/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `each'
/home/tracks/config/../vendor/rails/railties/lib/rails/plugin/loader.rb:32:in `load_plugins'
/home/tracks/config/../vendor/rails/railties/lib/initializer.rb:323:in 
`load_plugins'
/home/tracks/config/../vendor/rails/railties/lib/initializer.rb:160:in `process'
/home/tracks/config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
/home/tracks/config/../vendor/rails/railties/lib/initializer.rb:112:in 
`run'
/home/tracks/config/environment.rb:22
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
/home/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in 
`require'
/home/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/tracks/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/home/tracks/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/1.8/rake.rb:546:in 
`call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in `each'
/usr/lib/ruby/1.8/rake.rb:541:in 
`execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in 
`invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:518:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:1183:in 
`send'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:515:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:507:in 
`invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in 
`invoke'
/usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1909:in 
`each'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1948:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in 
`top_level'
/usr/lib/ruby/1.8/rake.rb:1881: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 

So, any clues out there?  Should I uninstall gems and just do it from source?

Profile
 
Reinier Balt
Posted: 28 January 2009 08:01 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I see you are trying to install 1.7rc. There are several bugs fixed in the current tree. Perhaps you can try it and see if the install goes better.

Btw, your rubygem is out of date. For rails2.2 (rails2.2.2 is included in Tracks) you need 1.3.1. I think this is the problem.

you probably need to google around to get the update. I had to

gem install rubygems-update

in order to get 1.3.1 to install. This is a known problem with upgrading from rails2.0.x to rails2.2.x

Profile
 
jason0x21
Posted: 29 January 2009 03:04 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  3
Joined  2009-01-27
Reinier Balt - 28 January 2009 08:01 PM

I see you are trying to install 1.7rc. There are several bugs fixed in the current tree. Perhaps you can try it and see if the install goes better.

Btw, your rubygem is out of date. For rails2.2 (rails2.2.2 is included in Tracks) you need 1.3.1. I think this is the problem.

you probably need to google around to get the update. I had to

gem install rubygems-update

in order to get 1.3.1 to install. This is a known problem with upgrading from rails2.0.x to rails2.2.x

Ok, I’ll give the newer version a whirl.  Does this mean I should remove the older rubygems package first?

Profile
 
jason0x21
Posted: 30 January 2009 02:05 PM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  3
Joined  2009-01-27

Well, I got farther.  I got the 1.3.1 gems installed (I think) by following the instructions here…

http://intertwingly.net/blog/2008/11/23/RubyGems-1-3-1-on-Ubuntu-8-10 

And now I get the following…

$ rake db:migrate RAILS_ENV=production --trace
(in /home/tracks.2009.01.30)
** 
Invoke db:migrate (first_time)
** 
Invoke environment (first_time)
** 
Execute environment
rake aborted
!
no such file to load -- activerecord_base_tag_extensions
/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'
/home/tracks.2009.01.30/vendor/rails/activesupport/lib/active_support/dependencies.rb:155:in `require'
/home/tracks.2009.01.30/config/environment.rb:83
/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'
/home/tracks.2009.01.30/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
/home/tracks.2009.01.30/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/tracks.2009.01.30/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in 
`require'
/home/tracks.2009.01.30/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/1.8/rake.rb:546:in `call'
/usr/lib/ruby/1.8/rake.rb:546:in `execute'
/usr/lib/ruby/1.8/rake.rb:541:in 
`each'
/usr/lib/ruby/1.8/rake.rb:541:in `execute'
/usr/lib/ruby/1.8/rake.rb:508:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in 
`synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:518:in `invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:1183:in 
`each'
/usr/lib/ruby/1.8/rake.rb:1183:in `send'
/usr/lib/ruby/1.8/rake.rb:1183:in `each'
/usr/lib/ruby/1.8/rake.rb:515:in 
`invoke_prerequisites'
/usr/lib/ruby/1.8/rake.rb:507:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:501:in 
`invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in `invoke'
/usr/lib/ruby/1.8/rake.rb:1931:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in 
`top_level'
/usr/lib/ruby/1.8/rake.rb:1909:in `each'
/usr/lib/ruby/1.8/rake.rb:1909:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1948:in 
`standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in `top_level'
/usr/lib/ruby/1.8/rake.rb:1881: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 

What next? activerecord_base_tag_extensions doesn’t really return any results in the forums.

Profile
 
Reinier Balt
Posted: 02 February 2009 08:10 AM   [ Ignore ]   [ # 4 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

this means you forgot to recreate your environment.rb from the updated template

Profile
 
   
 
 
‹‹ Ubuntu 8.10 + Tracks 1.7 = Cannot import yaml file      NoMethodError after installing 1.7rc2 ››

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

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

Atom Feed
RSS 2.0