Project

General

Profile

cannot load such file -- rubygems.rb

Added by Anton Soya over 9 years ago

Download redmine-3.0.4.tar.gz Installation do by "http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_on_Debian_8_with_Apache2-Passenger", all as described.
"bundle exec ruby bin / rails server -b $MY-IP webrick -e production" - WORKS!

But apache2 get the error:

"Raw process output:
<internal: gem_prelude>: 1: in `require ': can not load such file - rubygems.rb (LoadError)
from <internal: gem_prelude>: 1: in `<compiled> '"

bundler -v
Bundler version 1.10.5
gem -v
1.8.23.2
ruby -v
ruby 1.9.3p547 (2014-05-14 revision 45962) [x86_64-linux]

Application root
/var/www/redmine
Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV)
production
Ruby interpreter command
/usr/bin/ruby
User and groups
uid=33(www-data) gid=33(www-data) groups=33(www-data)
Environment variables
APACHE_RUN_DIR=/var/run/apache2
APACHE_PID_FILE=/var/run/apache2/apache2.pid
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
APACHE_LOCK_DIR=/var/lock/apache2
LANG=C
APACHE_RUN_USER=www-data
APACHE_RUN_GROUP=www-data
APACHE_LOG_DIR=/var/log/apache2
PWD=/var/www/redmine
PASSENGER_DEBUG_DIR=/tmp/passenger.spawn-debug.XXXXQ3HPbh
USER=www-data
LOGNAME=www-data
SHELL=/usr/sbin/nologin
HOME=/var/www
IN_PASSENGER=1
PYTHONUNBUFFERED=1
NODE_PATH=/usr/share/passenger/node
RAILS_ENV=production
RACK_ENV=production
WSGI_ENV=production
NODE_ENV=production
PASSENGER_APP_ENV=production
UNIQUE_ID=VazJ6H8AAQEAAAe8u4YAAAAA
SERVER_PROTOCOL=HTTP/1.1
SERVER_SOFTWARE=Apache
DOCUMENT_ROOT=/var/www/redmine/public
QUERY_STRING=
REQUEST_URI=/
Ulimits
Unknown
System metrics
------------- General -------------
Kernel version : 3.2.0-4-amd64
Debian jessie 3.2.0-4-amd64