Installing Rails Help!

I think I have MySQL working now… I reinstalled the MYSQL dmg and made
a few
other changes to the database configuration file and now ‘bundle
install’
works

However when i try to do the following

rake db:create

I get the error message

Bens-MacBook-Pro:sharebox bengibson$ rake db:create
rake aborted!
undefined method `groups’ for Rails:Module

(See full trace by running task with --trace)
Bens-MacBook-Pro:sharebox bengibson$ rake db:create
rake aborted!
undefined method `groups’ for Rails:Module

(See full trace by running task with --trace)
Bens-MacBook-Pro:sharebox bengibson$

Does anyone know what the problem is now??

ben_hawk wrote:

I then went and added the following to the gem folder for the project as
However when I try the command rails server i get the following error:
hike-1.2.1, i18n-0.6.0, jquery-rails-1.0.14, mail-2.3.0, mail-2.2.19,
from
`block in activate_dependencies’

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:764:in

from
I get a similar error
undefined method groups' for Rails:Module load_rakefile’

/Users/bengibson/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/application.rb:129:in

[actionmailer-3.1.0, actionmailer-3.0.3, actionpack-3.1.0,
rails-3.0.3, railties-3.1.0, railties-3.0.3, rake-0.9.2, rdoc-3.9.4,

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:758:in

from
`each’

Could anybody help me out (i’m new to terminal so need simple
explanations), or help me completely uninstall rails and rubygems and
start from scratch.


View this message in context:
http://old.nabble.com/Installing-Rails-Help!-tp32494138p32494721.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.

I think I have MySQL working now… I reinstalled the MYSQL dmg and made
a few
other changes to the database configuration file and now ‘bundle
install’
works

However when i try to do the following

rake db:create

I get the error message

Bens-MacBook-Pro:sharebox bengibson$ rake db:create
rake aborted!
undefined method `groups’ for Rails:Module

(See full trace by running task with --trace)
Bens-MacBook-Pro:sharebox bengibson$ rake db:create
rake aborted!
undefined method `groups’ for Rails:Module

(See full trace by running task with --trace)
Bens-MacBook-Pro:sharebox bengibson$

Does anyone know what the problem is now??

Jim ruther Nill wrote:

dropbox

suggested by the netuts tutorial

hike-1.2.1, i18n-0.6.0, jquery-rails-1.0.14, mail-2.3.0, mail-2.2.19,
`block in activate_dependencies’

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:742:in

  from

`activate’

-bash: db:create: command not found
`require’

block in run' /Users/bengibson/.rvm/gems/ruby-1.9.2-p290/bin/rake:19:in
coffee-script-source-1.1.2, erubis-2.7.0, erubis-2.6.6, execjs-1.2.6,

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:761:in

  from

`block in activate_dependencies’

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:742:in

start from scratch.
You received this message because you are subscribed to the Google G.

http://groups.google.com/group/rubyonrails-talk?hl=en.


View this message in context:
http://old.nabble.com/Installing-Rails-Help!-tp32494138p32494808.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.

Dear ben, trust google and do the related search like installing mysql
libraries to your environment.
Do it first. Thats the problem, your system is missing mysql libraries
for sure. If it is windows i could have definitely helped you!

I think I have MySQL working now… I reinstalled the MYSQL dmg and made
a few
other changes to the database configuration file and now ‘bundle
install’
works

However when i try to do the following

rake db:create

I get the error message

Bens-MacBook-Pro:sharebox bengibson$ rake db:create
rake aborted!
undefined method `groups’ for Rails:Module

(See full trace by running task with --trace)
Bens-MacBook-Pro:sharebox bengibson$ rake db:create
rake aborted!
undefined method `groups’ for Rails:Module

(See full trace by running task with --trace)
Bens-MacBook-Pro:sharebox bengibson$

Does anyone know what the problem is now??

venkata reddy wrote:

Hi,
This worked and created the folder structure.
I then did the bundle install but this kept causing errors, eventually
activerecord-3.1.0, activerecord-3.0.3, activeresource-3.1.0,
sprockets-2.0.0, thor-0.14.6, tilt-1.3.3, treetop-1.4.10, turn-0.8.2,
`each’
from

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubyg
ems/specification.rb:758:in

`gem’
Bens-MacBook-Pro:sharebox bengibson$ rake db:create
(required)>’
/Users/bengibson/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/rake_mo

load_rakefile' tion.rb:59:in to_specs’: Could not find abstract (>= 1.0.0) amongst
rack-mount-0.6.14, rack-ssl-1.3.2, rack-test-0.6.1, rack-test-0.5.7,

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubyg
ems/specification.rb:758:in

`activate’
from


For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


View this message in context:
http://old.nabble.com/Installing-Rails-Help!-tp32494138p32494820.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.

I tried removing rails using the gem unistall rails ‘3.0.3’

and then reinstall it and I get the following error with the rails
installation

Bens-MacBook-Pro:sharebox bengibson$ gem install rails ‘3.0.3’
Fetching: rails-3.1.0.gem (100%)
Successfully installed rails-3.1.0
ERROR: Could not find a valid gem ‘3.0.3’ (>= 0) in any repository
1 gem installed
Installing ri documentation for rails-3.1.0…
file ‘lib’ not found
Installing RDoc documentation for rails-3.1.0…
file ‘lib’ not found

What is going on?!?!

Thanks

ben_hawk wrote:

I then did the bundle install but this kept causing errors, eventually
ansi-1.3.0, arel-2.2.1, arel-2.0.10, bcrypt-ruby-3.0.1, builder-3.0.0,
from
`activate’

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:742:in

from

-bash: db:create: command not found

/Users/bengibson/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2/lib/rake/rake_module.rb:25:in

`load_rakefile’
Bens-MacBook-Pro:sharebox bengibson$ Rails server
mime-types-1.16, multi_json-1.0.3, mysql2-0.3.7, polyglot-0.3.2,

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:758:in

from
`block in activate_dependencies’

/Users/bengibson/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1211:in

gem' from /Users/bengibson/.rvm/gems/ruby-1.9.2-p290/bin/Rails:18:in

Could anybody help me out (i’m new to terminal so need simple
explanations), or help me completely uninstall rails and rubygems and
start from scratch.


View this message in context:
http://old.nabble.com/Installing-Rails-Help!-tp32494138p32494897.html
Sent from the RubyOnRails Users mailing list archive at Nabble.com.

Hi there. I too am having the same issues. I’ve done everything that I
know of to make sure things are all up to date. Using RVM, Rails 3.1 on
Snow Leopard.

Upon this command, I still get the following error:

$ bundle exec rake db:migrate
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/dependency.rb:52:in
initialize': Valid types are [:development, :runtime], not nil (ArgumentError) from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:352:innew’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:352:in
search' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:346:ingems_size’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:179:in
resolve' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/source_index.rb:95:insort_by’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:175:in
each' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:175:insort_by’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:175:in
resolve' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:160:instart’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:128:in
resolve' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:127:incatch’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/resolver.rb:127:in
resolve' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/definition.rb:151:inresolve’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/definition.rb:90:in
specs' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/definition.rb:135:inspecs_for’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/definition.rb:124:in
requested_specs' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/environment.rb:23:inrequested_specs’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/runtime.rb:11:in
setup' from /Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler.rb:107:insetup’
from
/Users/rich/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.0.18/lib/bundler/setup.rb:7

Cheers


Rich in Toronto

Hi Ben. I get something similar, line 52 in dependency.rb. If you find
a solution, let me know.

Cheers


Rich in Toronto

Isn’t the mysql2 gem used with Rails 3?

Cheers


Rich in Toronto