# Error installing some gems (Ruby 1.9.2)

**URL:** <https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716>\
**Category:** Rails\
**Created:** [February 19, 2010, 12:22am UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716 "2010-02-19T00:22:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katherine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f9ae1b/32.png) [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Post date:** [February 19, 2010, 12:22am UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716/1 "2010-02-19T00:22:02Z")

</div>

Hi I am testing Ruby 1.9.2 and Rails 3.  
Has anybody encountered this error:

web katz$ gem install rspec-rails

* * *

Thank you for installing rspec-rails-1.3.2

If you are upgrading, do this in each of your rails apps  
that you want to upgrade:

```
$ ruby script/generate rspec

```

Please be sure to read History.rdoc and Upgrade.rdoc  
for useful information about this release.

* * *

Successfully installed rspec-rails-1.3.2  
1 gem installed  
Installing ri documentation for rspec-rails-1.3.2…  
ERROR: While executing gem … (NoMethodError)  
undefined method `empty?’ for nil:NilClass

The same error occured when I installed the mail gem.

> <https://github.com/mikel/mail/issues/34>
>
> gem install mail
> Successfully installed mail-2.1.2
> 1 gem installed
> Installing ri… documentation for mail-2.1.2...
> ERROR: While executing gem ... (NoMethodError)
> undefined method \`empty?' for nil:NilClass
> 
> Not sure what that nil class is, please check. Thanks.

Would help if someone knows or would enlighten us about the causes of  
this issue so users/developers can fix their gems.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Katherine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f9ae1b/32.png) [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Post date:** [February 19, 2010, 12:31am UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716/2 "2010-02-19T00:31:24Z")

</div>

I’d also like to add that this only occurs for 1.9.2.

Using Ruby 1.9.1 and Ruby 1.8.7, installing rspec-rails and mail gem  
is just fine.

---

<div class="post-metadata">

**Author:** ![Katherine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f9ae1b/32.png) [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Post date:** [February 19, 2010, 3:39am UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716/3 "2010-02-19T03:39:51Z")

</div>

On Thu, Feb 18, 2010 at 3:30 PM, Katherine [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’d also like to add that this only occurs for 1.9.2.
> 
> Using Ruby 1.9.1 and Ruby 1.8.7, installing rspec-rails and mail gem  
> is just fine.

Katherine, here are my results for installing rspec and rspec-rails:

$ ruby -v  
ruby 1.9.2dev (2010-02-18 trunk 26707) [powerpc-darwin9.8.0]  
$ gem install rspec rspec-rails

* * *

Thank you for installing rspec-1.3.0

Please be sure to read History.rdoc and Upgrade.rdoc  
for useful information about this release.

* * *

Successfully installed rspec-1.3.0

* * *

Thank you for installing rspec-rails-1.3.2

If you are upgrading, do this in each of your rails apps  
that you want to upgrade:

```
$ ruby script/generate rspec

```

Please be sure to read History.rdoc and Upgrade.rdoc  
for useful information about this release.

* * *

Successfully installed rspec-rails-1.3.2  
2 gems installed  
Installing ri documentation for rspec-1.3.0…  
Installing ri documentation for rspec-rails-1.3.2…  
Installing RDoc documentation for rspec-1.3.0…  
Could not find main page README.rdoc  
Installing RDoc documentation for rspec-rails-1.3.2…  
Could not find main page README.rdoc

If you’re using RVM to manage your Ruby VMs, then I would recommend  
doing  
the following:

rvm install ruby-head

Note: If it is installed already installed, then the above command  
would  
perform an ‘svn update’ and rebuild things as normal.

Ruby 1.9.2 development branch is very active. Thus, if you want to stay  
current, then you’ll need to upgrade every so often. Lastly, I also  
tend to  
use Ruby 1.9.1 (i.e. rvm install 1.9.1-head) in conjunction with Ruby  
1.9.2  
because it’s a bit more stable and it’s a good fallback in the event  
Ruby  
1.9.2 source update goes bad. However, I can wait until Ruby 1.9.2 is  
released because it appears noticeably faster than 1.9.1.

Good luck,

-Conrad

---

<div class="post-metadata">

**Author:** ![Katherine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f9ae1b/32.png) [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Post date:** [March 15, 2010, 2:03pm UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716/4 "2010-03-15T14:03:06Z")

</div>

Thanks… I guess it’s fine now. They also fixed bundler gem issues.

---

<div class="post-metadata">

**Author:** ![Katherine](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f9ae1b/32.png) [@Katherine](https://www.ruby-forum.com/u/Katherine)\
**Post date:** [February 19, 2010, 3:43am UTC](https://www.ruby-forum.com/t/error-installing-some-gems-ruby-1-9-2/183716/5 "2010-02-19T03:43:21Z")

</div>

On Thu, Feb 18, 2010 at 6:38 PM, Conrad T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> $ ruby -v  
> Successfully installed rspec-1.3.0  
> for useful information about this release.
> 
> use Ruby 1.9.1 (i.e. rvm install 1.9.1-head) in conjunction with Ruby 1.9.2  
> because it’s a bit more stable and it’s a good fallback in the event Ruby  
> 1.9.2 source update goes bad. However, I can wait until Ruby 1.9.2 is  
> released because it appears noticeably faster than 1.9.1.
> 
> Good luck,
> 
> -Conrad

Katherine, the installation of the documentation tends to error out or  
hang  
in some cases. Thus, I wouldn’t worry too much about it. However, I  
would  
recommend filing a ticket against the gem so that they are aware of the  
issue.

-Conrad
