V
V
v0lume2013-11-20 17:07:25
ruby
v0lume, 2013-11-20 17:07:25

Redmine rake not found?

redmine ruby2.0 rake 10.1.0 apache mod_passenger
When running webrick, redmine displays normally (on port 3000)
When run normally (port 80), it gives an error

Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound)

[email protected]:/home/redmine# bundle show
Gems included by the bundle:
  * actionmailer (3.2.15)
  * actionpack (3.2.15)
  * activemodel (3.2.15)
  * activerecord (3.2.15)
  * activeresource (3.2.15)
  * activesupport (3.2.15)
  * arel (3.0.3)
  * builder (3.0.0)
  * bundler (1.3.5)
  * coderay (1.1.0)
  * erubis (2.7.0)
  * hike (1.2.3)
  * i18n (0.6.5)
  * journey (1.0.4)
  * jquery-rails (2.0.3)
  * json (1.8.1)
  * mail (2.5.4)
  * mime-types (1.25)
  * multi_json (1.8.2)
  * mysql2 (0.3.14)
  * net-ldap (0.3.1)
  * polyglot (0.3.3)
  * rack (1.4.5)
  * rack-cache (1.2)
  * rack-openid (1.4.1)
  * rack-ssl (1.3.3)
  * rack-test (0.6.2)
  * rails (3.2.15)
  * railties (3.2.15)
  * rake (10.1.0)
  * rdoc (3.12.2)
  * rmagick (2.13.2)
  * ruby-openid (2.3.0)
  * sprockets (2.2.2)
  * thor (0.18.1)
  * tilt (1.4.1)
  * treetop (1.4.15)
  * tzinfo (0.3.38)

[email protected]:/home/redmine# rvm list

rvm rubies

   jruby-1.7.8 [ i386 ]
   ruby-1.8.7-p374 [ i686 ]
   ruby-1.9.1-p431 [ i686 ]
   ruby-1.9.2-p320 [ i686 ]
=* ruby-2.0.0-p247 [ i686 ]

# => - current
# =* - current && default
#  * - default

I tried to enable ruby ​​1.9.2 (rvm use 1.9.2) - the error does not disappear,
can anyone know what's wrong?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jj_killer, 2013-11-20
@jj_killer

If putting the jams in a vendor/bundle doesn't help, read this: Using RVM rubies with Phusion Passenger

J
JuliaYa, 2013-11-20
@JuliaYa

Most likely, the problem is that the passenger from Apache uses a different gemset than the one where redmine stands.
Actually, everything you need to solve the problem is at the link in the previous answer.
More specifically, you have lines in your Apache config that look like

PassengerRoot /home/user/.rvm/gems/[email protected]<gemset>/gems/passenger-4.0.14;
PassengerRuby /home/user/.rvm/wrappers/[email protected]<gemset>/ruby;

Make sure they point to the correct version of ruby ​​and gemset.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question