Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby installation (?) problem

Reply
Thread Tools

Ruby installation (?) problem

 
 
Johan Rönnblom
Guest
Posts: n/a
 
      05-22-2007
Hi all

I'm trying to install the Radiant CMS system for Ruby. However, it seems there is something not quite right with the Ruby installation. I'm running Debian/sarge so I need some backports Ruby version, and possibly there might be some glitches in the setup due to this.

I'm running the following from the Radiant installation:
% rake production db:bootstrap

And get this error:
rake aborted!
undefined method `namespace' for main:Object
/var/lib/gems/1.8/gems/radiant-0.6.1/Rakefile:7

Now, this line says:
require 'tasks/rails'


Any help or suggestions would be very appreciated,

--
/ Johan Rönnblom, Software Developer

 
Reply With Quote
 
 
 
 
Rick DeNatale
Guest
Posts: n/a
 
      05-22-2007
On 5/22/07, Johan R=F6nnblom <(E-Mail Removed)> wrote:
> Hi all
>
> I'm trying to install the Radiant CMS system for Ruby. However, it seems =

there is something not quite right with the Ruby installation. I'm running =
Debian/sarge so I need some backports Ruby version, and possibly there migh=
t be some glitches in the setup due to this.
>
> I'm running the following from the Radiant installation:
> % rake production db:bootstrap
>
> And get this error:
> rake aborted!
> undefined method `namespace' for main:Object
> /var/lib/gems/1.8/gems/radiant-0.6.1/Rakefile:7
>
> Now, this line says:
> require 'tasks/rails'
>
>
> Any help or suggestions would be very appreciated,


Not a direct answer to your question, but I'd recommend that anyone
doing ruby in earnest on a debian system install ruby from source
rather than (or in addition to) the debian packages.

The debian ruby package maintainers partition ruby in their own way,
AND since they see some kind of conflict between the way they want to
do package management, and the way rubygems does it, they don't
support gems well if at all.

What I've done on my ubuntu system is to install ruby from source in
/usr/local and leave the debian packages installed for other packages
which depend on them. I just use svn/make and gem to keep things up
to date.

--=20
Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

 
Reply With Quote
 
 
 
 
John W. Long
Guest
Posts: n/a
 
      05-22-2007
Johan Rönnblom wrote:
> I'm trying to install the Radiant CMS system for Ruby. However, it seems
> there is something not quite right with the Ruby installation. I'm
> running Debian/sarge so I need some backports Ruby version, and possibly
> there might be some glitches in the setup due to this.
>
> I'm running the following from the Radiant installation:
> % rake production db:bootstrap
> And get this error:
> rake aborted!
> undefined method `namespace' for main:Object
> /var/lib/gems/1.8/gems/radiant-0.6.1/Rakefile:7


Rake 0.7 added the concept of namespaces, so you probably don't have the
latest version of rake.

$ rake --version

I have 0.7.3 on my box and it runs fine. You might try upgrading if you
have something less than 0.7.

--
John Long
http://wiseheartdesign.com
http://radiantcms.org

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AFTER INSTALLATION OF RUBY AND RUBY GEMS WHEN I GO 4 INTALL RAILS-THAT TIME ERROR YAG Ruby 2 04-04-2008 10:14 AM
[ANN] Debian ruby-full package - a full installation of Ruby vince.hetk@gmail.com Ruby 1 05-28-2007 05:08 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
Ruby installation problem on UNIX Ihab Mentiady Ruby 2 08-07-2003 09:27 PM



Advertisments