# Problem running setup\_database

**URL:** <https://www.ruby-forum.com/t/problem-running-setup-database/76054>\
**Category:** Radiant CMS\
**Created:** [November 15, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/problem-running-setup-database/76054 "2006-11-15T16:28:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8dc957/32.png) [@Tom\_Clark](https://www.ruby-forum.com/u/Tom_Clark)\
**Post date:** [November 15, 2006, 4:28pm UTC](https://www.ruby-forum.com/t/problem-running-setup-database/76054/1 "2006-11-15T16:28:29Z")

</div>

Hi all,

This looks like a great project. I’m looking forward to working with it,  
if  
I can get the first bit to go right…

Here’s my problem - am trying to set up the database. Have set up my  
database and configured it in database.yml (tried MySQL and sqlite3).  
However, when I come to run script/setup\_database production, this  
happens:

Loading production environment…FAILED  
script/setup\_database:79:in `load_environment': uninitialized constant DatabaseSetupApplication::RADIANT_ROOT (NameError) from script/setup_database:258:in`announce’  
from script/setup\_database:77:in `load_environment' from script/setup_database:17:in`run’  
from script/setup\_database:9:in `run’  
from script/setup\_database:297

I’m using shared hosting, although when I tried this on my local machine  
the  
same error occurred.

Would anyone have a clue as to what’s going on here? Searched the  
archives  
but could not find anything relevant.

Many thanks

Tom

---

<div class="post-metadata">

**Author:** ![Tom\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8dc957/32.png) [@Tom\_Clark](https://www.ruby-forum.com/u/Tom_Clark)\
**Post date:** [November 21, 2006, 2:07am UTC](https://www.ruby-forum.com/t/problem-running-setup-database/76054/2 "2006-11-21T02:07:02Z")

</div>

Tom Clark wrote:

> ```
> from script/setup_database:258:in `announce'
> from script/setup_database:77:in `load_environment'
> from script/setup_database:17:in `run'
> from script/setup_database:9:in `run'
> from script/setup_database:297
> 
> ```
> 
> I’m using shared hosting, although when I tried this on my local machine the  
> same error occurred.

That’s really strange. What version of Radiant did this occur with?

Sorry for the late reply.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Tom\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8dc957/32.png) [@Tom\_Clark](https://www.ruby-forum.com/u/Tom_Clark)\
**Post date:** [November 21, 2006, 10:48am UTC](https://www.ruby-forum.com/t/problem-running-setup-database/76054/3 "2006-11-21T10:48:08Z")

</div>

Hi John,

This is with the download link, Radiant 0.5.2 (the latest stable  
release?).  
I’m on OS X 10.4.7.

Tom

---

<div class="post-metadata">

**Author:** ![Tom\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8dc957/32.png) [@Tom\_Clark](https://www.ruby-forum.com/u/Tom_Clark)\
**Post date:** [November 21, 2006, 9:50pm UTC](https://www.ruby-forum.com/t/problem-running-setup-database/76054/4 "2006-11-21T21:50:57Z")

</div>

Tom Clark wrote:

> This is with the download link, Radiant 0.5.2 (the latest stable release?).  
> I’m on OS X 10.4.7.

Mmmm. That is weird. You installed via gem?

> Loading production environment…FAILED  
> script/setup\_database:79:in `load_environment': uninitialized constant DatabaseSetupApplication::RADIANT_ROOT (NameError) from script/setup_database:258:in `announce’  
> from script/setup\_database:77:in `load_environment' from script/setup_database:17:in `run’  
> from script/setup\_database:9:in `run’  
> from script/setup\_database:297

The above error is what is so strange. RADIANT\_ROOT should be defined at  
that point. Can you do a little debugging? I can’t reproduce the problem  
on my end.

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)

---

<div class="post-metadata">

**Author:** ![Tom\_Clark](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/8dc957/32.png) [@Tom\_Clark](https://www.ruby-forum.com/u/Tom_Clark)\
**Post date:** [November 22, 2006, 10:40am UTC](https://www.ruby-forum.com/t/problem-running-setup-database/76054/5 "2006-11-22T10:40:14Z")

</div>

> Tom Clark wrote:
> 
> > This is with the download link, Radiant 0.5.2 (the latest stable release?).  
> > I’m on OS X 10.4.7.
> 
> Mmmm. That is weird. You installed via gem?

No, I actually installed from Tar - because we’re on shared hosting  
we’re  
not allowed to use gem.

> that point. Can you do a little debugging? I can’t reproduce the problem  
> on my end.

Sure, what would you need to know/how should I go about it briefly? I  
must  
admit to not being a unix expert.

Many thanks,

Tom
