[Radiant] Ruby Gems Installation Issue

Sean Cribbs seancribbs at gmail.com
Fri Apr 18 08:13:57 CDT 2008


>
> |radiant --database [mysql|postresql|sqlite3] path/to/project
> |
>
> Didn't work for me. More likely I simply don't know what I'm doing.
>
> My initial problem is the IDEA of the "radiant" command. What is that? 
> The command, as given on the page, doesn't seem to work on the command 
> line. Thinking that I'm having problems with starting in the right 
> working directory, I tried "radiant help" (just guessing that that's 
> possible) in:
> /var/lib/gems/1.8/gems/radiant-0.6.4
> /var/lib/gems/1.8/gems
> and in both cases got just "bash: radiant: command not found"
>
> I also got that to this: "radiant --database sqlite3 "/home/tom/Ruby 
> projects - Toms/radiant-test-CMS"" (no surprise)
>
> Something is apparently obvious to everyone but me, so I'm blowing it. 
> Can someone tell me what it is?
>
It's not necessarily that obvious.  Because Ruby and RubyGems seem to be 
installed in a strange place (/usr or /usr/local is typical),  it's 
likely that the "radiant" command is not in your PATH environment 
variable.  First, try this command:

$ which radiant

If it returns nothing, then it's not in the path.  Because RubyGems 
seems to be installed under /var/lib/gems, try looking for the command 
under /var/bin.  If it and any other gem scripts are there ('rails' or 
'spec' for instance), add that to your path.  You'll probably need to do 
this in ~/.bash_profile or ~/.bash_login or ~/.bashrc, whichever your 
system uses.  Add this line:

export PATH=$PATH:/var/bin

Then you should be able to run the 'radiant' command.  As today is 
"Radiant Day", I'll be in the IRC room most of the day.  Feel free to 
bring your question to me there!

Sean


More information about the Radiant mailing list