Project

General

Profile

Ruby on Rails application could not be started (CentOs 5.8) Missing rails?

Added by vernes vardarac almost 12 years ago

Installed following this howto: http://www.redmine.org/projects/redmine/wiki/How_to_Install_Redmine_on_CentOS_(Detailed)

ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
rails --version
/usr/local/lib/ruby/site_ruby/1.8/rubygems.rb:317:in `bin_path': can't find gem rails (>= 0) with executable rails (Gem::GemNotFoundException)
from /usr/local/bin/rails:19
CentOS release 5.8 (Final)
mysqld Ver 5.0.91-community for unknown-linux-gnu on x86_64 (MySQL Community Edition (GPL))
I don't remember having anything to do with Webbrick, perhaps the "How to request help" guide means "Passenger"?

RAILS_ENV=YOUR_ENVIRONMENT script/about
results in:
script/about: No such file or directory

I installed redmine in: /var/www/redmine/
The webserver shows documents located in /home/admin/domains/mydomain.nl/public_html/
so I made a symbolic link in /home/admin/domains/mydomain.nl/public_html/redmine
which leads to /var/www/redmine/public

For this, I followed the instructions found at: http://www.modrails.com/documentation/Users%20guide%20Apache.html#deploying_rails_to_sub_uri

When I go to http://mydomain.nl/redmine/ I get this: http://i.imgur.com/8WQ61.png

Something I noticed is that "locate rails/commands" results in two different versions of: "/usr/local/lib/ruby/gems/"
1.8 and 1.9.1
I did try to install redmine before with another version.

Any advice would be welcome.