Ruby on Rails Sunday, October 30, 2011

Hello, I'm new to Ruby and unix/linux development (although been
building .net apps for years).

I've almost completed my trek to install Rails ... looks like I have one
final hurdle. After installing rails I try the 'rails -v' command and
it fails. Any help here would be deeply appreciated.

Here's the output from my bash session:

bash-3.2$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]
bash-3.2$ which gem
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/gem
bash-3.2$ sudo gem update --system
Password:
Updating rubygems-update
Fetching: rubygems-update-1.8.11.gem (100%)
Successfully installed rubygems-update-1.8.11
Installing RubyGems 1.8.11
RubyGems 1.8.11 installed

== 1.8.11 / 2011-10-03

* Bug fix:
* Deprecate was moved to Gem::Deprecate to stop polluting the
top-level
namespace.


------------------------------------------------------------------------------

RubyGems installed the following executables:
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/gem

RubyGems system software updated
bash-3.2$ sudo gem install rails --version 3.0.1
Fetching: activesupport-3.0.1.gem (100%)
Fetching: builder-2.1.2.gem (100%)
WARNING: builder-2.1.2 has an invalid nil value for @cert_chain
Fetching: i18n-0.4.2.gem (100%)
Fetching: activemodel-3.0.1.gem (100%)
Fetching: rack-1.2.4.gem (100%)
Fetching: rack-test-0.5.7.gem (100%)
Fetching: rack-mount-0.6.14.gem (100%)
Fetching: tzinfo-0.3.30.gem (100%)
Fetching: abstract-1.0.0.gem (100%)
WARNING: abstract-1.0.0 has an invalid nil value for @cert_chain
Fetching: erubis-2.6.6.gem (100%)
Fetching: actionpack-3.0.1.gem (100%)
Fetching: arel-1.0.1.gem (100%)
Fetching: activerecord-3.0.1.gem (100%)
Fetching: activeresource-3.0.1.gem (100%)
Fetching: mime-types-1.17.2.gem (100%)
Fetching: polyglot-0.3.2.gem (100%)
Fetching: treetop-1.4.10.gem (100%)
Fetching: mail-2.2.19.gem (100%)
Fetching: actionmailer-3.0.1.gem (100%)
Fetching: thor-0.14.6.gem (100%)
Fetching: railties-3.0.1.gem (100%)
Fetching: bundler-1.0.21.gem (100%)
Fetching: rails-3.0.1.gem (100%)
Successfully installed activesupport-3.0.1
Successfully installed builder-2.1.2
Successfully installed i18n-0.4.2
Successfully installed activemodel-3.0.1
Successfully installed rack-1.2.4
Successfully installed rack-test-0.5.7
Successfully installed rack-mount-0.6.14
Successfully installed tzinfo-0.3.30
Successfully installed abstract-1.0.0
Successfully installed erubis-2.6.6
Successfully installed actionpack-3.0.1
Successfully installed arel-1.0.1
Successfully installed activerecord-3.0.1
Successfully installed activeresource-3.0.1
Successfully installed mime-types-1.17.2
Successfully installed polyglot-0.3.2
Successfully installed treetop-1.4.10
Successfully installed mail-2.2.19
Successfully installed actionmailer-3.0.1
Successfully installed thor-0.14.6
Successfully installed railties-3.0.1
Successfully installed bundler-1.0.21
Successfully installed rails-3.0.1
23 gems installed
Installing ri documentation for activesupport-3.0.1...
Installing ri documentation for builder-2.1.2...
Installing ri documentation for i18n-0.4.2...
Installing ri documentation for activemodel-3.0.1...
Installing ri documentation for rack-1.2.4...
Installing ri documentation for rack-test-0.5.7...
Installing ri documentation for rack-mount-0.6.14...
Installing ri documentation for tzinfo-0.3.30...
Installing ri documentation for abstract-1.0.0...
Installing ri documentation for erubis-2.6.6...
Installing ri documentation for actionpack-3.0.1...
Installing ri documentation for arel-1.0.1...
Installing ri documentation for activerecord-3.0.1...
Installing ri documentation for activeresource-3.0.1...
Installing ri documentation for mime-types-1.17.2...
Installing ri documentation for polyglot-0.3.2...
Installing ri documentation for treetop-1.4.10...
Installing ri documentation for mail-2.2.19...
Installing ri documentation for actionmailer-3.0.1...
Installing ri documentation for thor-0.14.6...
Installing ri documentation for railties-3.0.1...
Installing ri documentation for bundler-1.0.21...
Installing ri documentation for rails-3.0.1...
Installing RDoc documentation for activesupport-3.0.1...
Installing RDoc documentation for builder-2.1.2...
Installing RDoc documentation for i18n-0.4.2...
Installing RDoc documentation for activemodel-3.0.1...
Installing RDoc documentation for rack-1.2.4...
Installing RDoc documentation for rack-test-0.5.7...
Installing RDoc documentation for rack-mount-0.6.14...
Installing RDoc documentation for tzinfo-0.3.30...
Installing RDoc documentation for abstract-1.0.0...
Installing RDoc documentation for erubis-2.6.6...
Installing RDoc documentation for actionpack-3.0.1...
Installing RDoc documentation for arel-1.0.1...
Installing RDoc documentation for activerecord-3.0.1...
Installing RDoc documentation for activeresource-3.0.1...
Installing RDoc documentation for mime-types-1.17.2...
Installing RDoc documentation for polyglot-0.3.2...
Installing RDoc documentation for treetop-1.4.10...
Installing RDoc documentation for mail-2.2.19...
Installing RDoc documentation for actionmailer-3.0.1...
Installing RDoc documentation for thor-0.14.6...
Installing RDoc documentation for railties-3.0.1...
Installing RDoc documentation for bundler-1.0.21...
Installing RDoc documentation for rails-3.0.1...
bash-3.2$ rails -v
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in
`to_specs': Could not find rails (>= 0) amongst [bundler-1.0.21]
(Gem::LoadError)
from
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in
`to_spec'
from
/Users/doug/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems.rb:1210:in
`gem'
from /Users/doug/.rvm/rubies/ruby-1.9.2-p290/bin/rails:18:in `<main>'

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

On Sun, Oct 30, 2011 at 5:07 PM, Leonardo Mateo <leonardomateo@gmail.com> wrote:
> On Sun, Oct 30, 2011 at 2:59 PM, David Chelimsky <dchelimsky@gmail.com> wrote:
>> On Oct 30, 12:09 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
>>> Hi guys,
>>> I'm having a problem that's driving me nuts.
>>> I have a rails 3.1.1 project in which bundler is ignoring RSpec, no
>>> matter what I set rspec or rspec-rails it never gets installed.
>>
>> What is the specific behavior you're not seeing? i.e. do you really
>> mean it never gets installed (as in you can type "gem list rspec" and
>> nothing shows up) or do you mean that you don't see it's rake tasks or
>> something else?
> It doesn't get installed at all.
> I don't know why, since in another project with the same ruby version
> (1.9.3-rc1 until today) it is working.
> "gem list rspec" does not show any gem listed, and "bundle | grep
> rspec" gives nothing.
>
>>
>> As a starting point, I just created a new rvm gemset, installed rails
>> 3.1.1, ran "rails new example", copied the Gemfile you list below, and
>> ran bundle install. It installed rspec-rails and the other rspec gems
>> as expected.
>>
>> I then ran "rails generate rspec:install" and got an error on ffi
>> having to do with the rb-inotify gem, so I removed that and libnotify
>> (gem) and tried again and it worked. I was able to generate a model
>> with a spec, and run it using the 'rspec' or 'rake spec' commands.
> I tried it too, I removed the gemset, then created a new empty one and
> ran "bundle install". I've even installed ruby 1.9.3-p0 today, started
> a new gemset from scratch and I had the same behavior.
>
>>
>> Other relevant info: mac os 10.7.2 (lion), rvm 1.9.1, ruby 1.9.2.
> I'm using Arch Linux. rvm 1.9.1, ruby 1.9.3-p0
>
> It looks like something is wrong with this specific project, but I
> can't tell what it is.
> I really don't know either what I can do to fix it. I can't just re
> create it, since I already have a lot of work done.
>
It looks like the problem is with the groups.
Nothing listed within the "group :test, :development {}" gets
installed. Still don't know why.

--
Leonardo Mateo.
There's no place like ~

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

On Sun, Oct 30, 2011 at 2:59 PM, David Chelimsky <dchelimsky@gmail.com> wrote:
> On Oct 30, 12:09 pm, Leonardo Mateo <leonardoma...@gmail.com> wrote:
>> Hi guys,
>> I'm having a problem that's driving me nuts.
>> I have a rails 3.1.1 project in which bundler is ignoring RSpec, no
>> matter what I set rspec or rspec-rails it never gets installed.
>
> What is the specific behavior you're not seeing? i.e. do you really
> mean it never gets installed (as in you can type "gem list rspec" and
> nothing shows up) or do you mean that you don't see it's rake tasks or
> something else?
It doesn't get installed at all.
I don't know why, since in another project with the same ruby version
(1.9.3-rc1 until today) it is working.
"gem list rspec" does not show any gem listed, and "bundle | grep
rspec" gives nothing.

>
> As a starting point, I just created a new rvm gemset, installed rails
> 3.1.1, ran "rails new example", copied the Gemfile you list below, and
> ran bundle install. It installed rspec-rails and the other rspec gems
> as expected.
>
> I then ran "rails generate rspec:install" and got an error on ffi
> having to do with the rb-inotify gem, so I removed that and libnotify
> (gem) and tried again and it worked. I was able to generate a model
> with a spec, and run it using the 'rspec' or 'rake spec' commands.
I tried it too, I removed the gemset, then created a new empty one and
ran "bundle install". I've even installed ruby 1.9.3-p0 today, started
a new gemset from scratch and I had the same behavior.

>
> Other relevant info: mac os 10.7.2 (lion), rvm 1.9.1, ruby 1.9.2.
I'm using Arch Linux. rvm 1.9.1, ruby 1.9.3-p0

It looks like something is wrong with this specific project, but I
can't tell what it is.
I really don't know either what I can do to fix it. I can't just re
create it, since I already have a lot of work done.

Cheers!
--
Leonardo Mateo.
There's no place like ~

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.