# Bootstrap is telling me it cannot find the gem, gem list shows it though

**URL:** <https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322>\
**Category:** Radiant CMS\
**Created:** [April 30, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322 "2008-04-30T20:49:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [April 30, 2008, 8:49pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/1 "2008-04-30T20:49:35Z")

</div>

I’ve asked my shared host (asmallorange) to install the 0.6.6 gem and  
they have, I’ve confirmed with gem list

# gem list radiant

\*\*\* LOCAL GEMS \*\*\*  
radiant (0.6.6, 0.6.4)

I’ve created a new site via: radiant -d mysql myap, created the  
database/updated database.yml, uncommented ENV[‘RAILS\_ENV’] in  
environment.rb. When I run bootstrap I get the following

# rake production db:bootstrap

(in /home/myuser/railsapps/myradiantapp)  
Missing the Radiant gem. Please `gem install -v= radiant`, update  
your RADIANT\_GEM\_VERSION setting in config/environment.rb for the  
Radiant version you do have installed, or comment out  
RADIANT\_GEM\_VERSION to use the latest version installed.

I checked environment.rb and there isn’t a RADIANT\_GEM\_VERSION entry  
so I would assume it would try and use the 0.6.6 gem. Is there a way I  
can confirm it is in-fact not finding the gem? The rails version is  
the 2.0.2 gem.

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [April 30, 2008, 9:02pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/2 "2008-04-30T21:02:04Z")

</div>

Jared,

I ran into this the other day as well. Please file a ticket on Trac,  
assign it to the 0.6.7 release, to the effect of “does not load latest  
gem when no RADIANT\_GEM\_VERSION specified”. In the meantime, add a line  
to environment.rb that says RADIANT\_GEM\_VERSION = “0.6.6” – that should  
fix your problem.

Sean

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [April 30, 2008, 9:52pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/3 "2008-04-30T21:52:59Z")

</div>

Thanks, I’ve added a ticket to trac and the line right below my  
production env variable, but that doesn’t seem to fix the issue. I’m  
getting the same error. This is what my environment.rb looks like:

ENV[‘RAILS\_ENV’] ||= ‘production’  
RADIANT\_GEM\_VERSION = ‘0.6.6’

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [April 30, 2008, 10:16pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/4 "2008-04-30T22:16:59Z")

</div>

Jared,

Try putting it above the previous line. This shouldn’t make a  
difference in an ideal world, but let’s see if it does.

Sean

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [April 30, 2008, 10:34pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/5 "2008-04-30T22:34:01Z")

</div>

It didn’t seem to make a difference:  
RADIANT\_GEM\_VERSION = ‘0.6.6’  
ENV[‘RAILS\_ENV’] ||= ‘production’

I added it to the production.rb class too, just in case. That didn’t  
make a difference either.

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [April 30, 2008, 11:00pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/6 "2008-04-30T23:00:57Z")

</div>

It didn’t like either of those suggestions. Is it possible the gem  
didn’t get installed correctly? I can as my host to reinstall it.

[~/railsapps/myapp]# rake production db:bootstrap  
RADIANT\_GEM\_VERSION=0.6.6  
(in /home/jcblitz/railsapps/myapp)  
Missing the Radiant 0.6.6 gem. Please `gem install -v=0.6.6 radiant`,  
update your RADIANT\_GEM\_VERSION setting in config/environment.rb for  
the Radiant version you do have installed, or comment out  
RADIANT\_GEM\_VERSION to use the latest version installed.

[~/railsapps/myapp]# rake radiant:freeze:gem  
(in /home/jcblitz/railsapps/myapp)  
Missing the Radiant 0.6.6 gem. Please `gem install -v=0.6.6 radiant`,  
update your RADIANT\_GEM\_VERSION setting in config/environment.rb for  
the Radiant version you do have installed, or comment out  
RADIANT\_GEM\_VERSION to use the latest version installed.

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [April 30, 2008, 10:42pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/7 "2008-04-30T22:42:14Z")

</div>

Jared,

Try passing it on the command line then:

rake production db:bootstrap RADIANT\_GEM\_VERSION=0.6.6

Your other option is to freeze the gem (which might be a better option  
overall):

rake radiant:freeze:gem

Sean

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [May 12, 2008, 5:09pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/8 "2008-05-12T17:09:53Z")

</div>

I haven’t been following this thread, but according to my tasks gem  
should be plural

rake radiant:freeze:gems

Does that work?

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [May 12, 2008, 5:26pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/9 "2008-05-12T17:26:57Z")

</div>

Crap, I should have rake -T first. That fixed my local issue. Thanks.  
I’ll give this a try on my server later today.

---

<div class="post-metadata">

**Author:** ![Jared\_Blitzstein](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jared\_Blitzstein](https://www.ruby-forum.com/u/Jared_Blitzstein)\
**Post date:** [May 12, 2008, 4:42pm UTC](https://www.ruby-forum.com/t/bootstrap-is-telling-me-it-cannot-find-the-gem-gem-list-shows-it-though/136322/10 "2008-05-12T16:42:03Z")

</div>

I just got this issue again but locally this time when I’m trying to  
run mongrel (it’s the first time I’ve tried to run it on mongrel). I  
have the radiant 0.6.6 gem installed and created an instance of  
radiant using it, but for another project I’m running radiant from  
source. Both provide the error I’ve mentioned below when trying to run  
them on mongrel, but the db:bootstrap worked fine for both (previously  
I was trying this on a hosted server). I’ve tried all the suggestions  
below and all end with the same result. I’ve previously submitted a  
ticket for it ([http://dev.radiantcms.org/ticket/639](http://dev.radiantcms.org/ticket/639)) but wanted to see  
if anyone else hit this issue and has a work around?

As for freezing the gem, rake radiant:freeze:gem results in “Don’t  
know how to build task ‘radiant:freeze:gem’”
