# Radiant 0.6 Lapidary

**URL:** <https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796>\
**Category:** Radiant CMS\
**Created:** [April 24, 2007, 9:34am UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796 "2007-04-24T09:34:42Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 24, 2007, 9:34am UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/1 "2007-04-24T09:34:42Z")

</div>

The much anticipated release of Radiant 0.6 is now a reality. In a few  
moments you should be able use RubyGems to install Radiant from  
Rubyforge.

For the complete list of what’s new see Sean C. excellent blog post:

[What's New in Radiant 0.6 - Sean Cribbs](http://seancribbs.com/tech/2007/04/18/whats-new-in-radiant-0-6)

I plan to write up an official announcement on the blog in a few hours,  
but for now, I’m off to bed. 🙂

A huge thank you to all the contributors.

Enjoy!

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

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 24, 2007, 3:11pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/2 "2007-04-24T15:11:46Z")

</div>

On 4/24/07, John W. Long [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> The much anticipated release of Radiant 0.6 is now a reality. In a few  
> moments you should be able use RubyGems to install Radiant from Rubyforge.

It seems the svn repo has changed and the mental branch has been deleted  
☹

Trying to switch to [http://dev.radiantcms.org/svn/radiant/trunk/](http://dev.radiantcms.org/svn/radiant/trunk/)  
failed with this:

* * *

## 414 [15:07] roberto@sidhe:SVN/radiant-mental\> svn switch [http://dev.radiantcms.org/svn/radiant/trunk](http://dev.radiantcms.org/svn/radiant/trunk) D test D app D log D Rakefile D LICENSE D db D CHANGELOG D README D CONTRIBUTORS svn: Won’t delete locally modified directory ‘.’ svn: Left locally modified or unversioned files

I do not want to switch to the gem so what should I use now please?

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 24, 2007, 3:23pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/3 "2007-04-24T15:23:49Z")

</div>

Ollivier,

You should switch to trunk/radiant, not plain trunk.

Sean

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 24, 2007, 9:01pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/4 "2007-04-24T21:01:50Z")

</div>

John W. Long wrote:

> I plan to write up an official announcement on the blog in a few hours,  
> but for now, I’m off to bed. 🙂

Here we go:

[http://radiantcms.org/blog/2007/04/24/radiant-0-6-lapidary-release/](http://radiantcms.org/blog/2007/04/24/radiant-0-6-lapidary-release/)

And now, does anyone have time to help me update the wiki? We need to go  
through and update all of the pages that only apply to 0.5.x.

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

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 25, 2007, 1:41pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/5 "2007-04-25T13:41:42Z")

</div>

I had the same problem on my environment(apache2/fast-cgi, localhost  
and DreamHost) before. I don’t know the reason of this(why rails need  
to know HOME?), but I could stop the error. Try to add the following  
line to the head of config/environment.rb:

ENV[‘HOME’] = ‘/home/username’ # change username to yours

* * *

Keita Y.

2007/4/25, Andrea F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 25, 2007, 1:17pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/6 "2007-04-25T13:17:40Z")

</div>

Hi all… i’ve just tried to install radiant on site5 but I got this  
error:

…/config/…/vendor/rails/railties/lib/rails\_generator/lookup.rb:  
33:in `expand_path': couldn't find HOME environment -- expanding`~’ (ArgumentError)  
from …/config/…/vendor/rails/railties/lib/rails\_generator/  
lookup.rb:33:in `user_home' from ../config/../vendor/rails/railties/lib/rails_generator/ lookup.rb:105:in`use\_component\_sources!’  
from …/config/…/vendor/rails/railties/lib/rails\_generator/  
lookup.rb:53:in `included' from ../config/../vendor/rails/railties/lib/ rails_generator.rb:38 from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in`require’  
from …/config/…/vendor/rails/activerecord/lib/…/…/  
activesupport/lib/active\_support/dependencies.rb:495:in `require' from ../config/../vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:342:in`new\_constants\_in’  
from …/config/…/vendor/rails/activerecord/lib/…/…/  
activesupport/lib/active\_support/dependencies.rb:495:in `require' ... 12 levels... from ../config/../vendor/rails/railties/lib/initializer.rb: 43:in`run’  
from …/config/…/lib/radiant/initializer.rb:32:in `run’  
from ./…/config/environment.rb:11  
from dispatch.fcgi:21

Does anybody know what I can do?  
Thank you very much!

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 25, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/7 "2007-04-25T15:14:57Z")

</div>

Il giorno 25/apr/07, alle ore 13:40, keita ha scritto:

> I had the same problem on my environment(apache2/fast-cgi, localhost  
> and DreamHost) before. I don’t know the reason of this(why rails need  
> to know HOME?), but I could stop the error. Try to add the following  
> line to the head of config/environment.rb:
> 
> ENV[‘HOME’] = ‘/home/username’ # change username to yours
> 
> * * *
> 
> Keita Y.

Hey it now works!!! Thank you very much!!!

-Andrea

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 27, 2007, 7:38am UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/8 "2007-04-27T07:38:11Z")

</div>

What is the command to unpack the gem?

According to the wiki “radiant --database mysql target” should unpack  
the gem into target directory, but it’s not working.

Have I got something wrong?

-Adam

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 27, 2007, 10:47am UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/9 "2007-04-27T10:47:16Z")

</div>

Il giorno 27/apr/07, alle ore 07:37, Adam S. ha scritto:

> What is the command to unpack the gem?
> 
> According to the wiki “radiant --database mysql target” should  
> unpack the gem into target directory, but it’s not working.

Maybe you need “radiant --database mysql target” to use radiant in  
instance mode…if you want to unpack radiant you can use “gem unpack  
radiant”

* * *

Andrea F.

- 39 349 5180410  
removed\_email\_address@domain.invalid  
[http://bigchieflabs.com/blog/](http://bigchieflabs.com/blog/)  
[http://think.bigchief.it](http://think.bigchief.it)

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 27, 2007, 3:24pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/10 "2007-04-27T15:24:17Z")

</div>

The preferred way is to use the instance generator, as you did with  
`radiant --database mysql target` and then use the `rake radiant:freeze:gems` or `rake radiant:freeze:edge` to put the source in  
vendor/radiant. We’re not encouraging straight source checkouts anymore  
because instances are far easier to keep up to date.

Sean

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 27, 2007, 6:58pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/11 "2007-04-27T18:58:40Z")

</div>

It’s in John’s post about the 0.6 release on the weblog. Anyone who has  
time to copy it to the wiki, please do.

Sean

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 30, 2007, 8:53am UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/12 "2007-04-30T08:53:10Z")

</div>

Can someone please explain to me if there is any reason not to freeze  
your install to a particular version of rails?

Does rails run faster if it’s run from gem? or local vendor directory?

I also notice it has it’s own rails install… Wouldn’t it be better  
to just run from the latest rails gem on hand? or make the gem  
dependant on rails gem vx.x.x?

If it’s faster to use locally installed gems how do I force Radiant  
not to use it’s bundled version of Rails?

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 27, 2007, 5:05pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/13 "2007-04-27T17:05:29Z")

</div>

When you catch a breath, could you please add a page to the Wiki about  
this? You may recall that I wrote a number of times about my problems  
with the release candidates and adding extensions, and how I found that  
the easiest path for me was to svn mental, because otherwise none of  
the other examples on the net (which assumed a full source in place)  
were directly accessible within a gem install. In short, it was a  
failure on my part to understand how to interact with a gem instance  
Radiant from a development standpoint. As much as I want to use Gems  
for ease of updates, I also want to learn how to hack in the same type  
of environment.

Thanks again,

Walter

---

<div class="post-metadata">

**Author:** ![John\_WSLong](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/34f0e0/32.png) [@John\_WSLong](https://www.ruby-forum.com/u/John_WSLong)\
**Post date:** [April 30, 2007, 3:54pm UTC](https://www.ruby-forum.com/t/radiant-0-6-lapidary/92796/14 "2007-04-30T15:54:46Z")

</div>

Adam S. wrote:

> Can someone please explain to me if there is any reason not to freeze  
> your install to a particular version of rails?

It’s a matter of personal choice and disk space only. I assume you  
meant to freeze Radiant because it includes Rails in its package.

> Does rails run faster if it’s run from gem? or local vendor directory?

They’re both directories, so the speed is the same, essentially.

> I also notice it has it’s own rails install… Wouldn’t it be better  
> to just run from the latest rails gem on hand? or make the gem  
> dependant on rails gem vx.x.x?

No. We tossed this one around and decided that to reduce  
incompatibilities and issues with people lacking root access, etc, we  
would package Rails along with Radiant. It saves a lot of headaches,  
even though the gem size is larger.

> If it’s faster to use locally installed gems how do I force Radiant  
> not to use it’s bundled version of Rails?

See above. However, if a newer bug-fix release of Rails comes out (i.e.  
1.2.4, 1.2.5, etc) the trunk version will probably be updated to it soon  
after.

Sean
