Forum: Ruby on Rails Rails Project only with root rights

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6c3d4bf51d0b16c990f15d09d9707750?d=identicon&s=25 Jan Josefowicz (Guest)
on 2006-05-06 11:48
I try to create a rails project as usual user. It does not work.

If I do that as root it works fine.
Also commands rails -v and gem -v does work only with root rights.

On the command:

developer@linux:~/data> rails test

I get following output:

/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:95:in
`const_missing': undefined method `demodulize' for
"ActiveRecordError":String (NoMethodError)
        from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/validations.rb:9
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:147:in
`require'
        from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record.rb:39
        from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:182:in
`activate'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:181:in
`activate'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:167:in
`activate'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:166:in
`activate'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
`require_gem_with_options'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:31:in
`require_gem'
        from /usr/local/bin/rails:17

Thanks
Jan
2b404bb55d9b5dc78841795c4b731771?d=identicon&s=25 Damien Timewell (idlefingers)
on 2006-05-06 12:48
Almost the exact thing happened to me.

I can't really give any useful advice other than saying that I got it to
work again by re-installing rails. Only thing is that now, lighttpd and
the ruby console don't work for me anymore.

In hindsight, I think my installation was all fine until I tried to use
Locomotive to run apps, so I'm going to blame that for my broken
install.

Sorry Im not much help, I just thought i'd share my experience,
Damien
This topic is locked and can not be replied to.