Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
passenger for apache2+ubuntu installs in wrong version of ruby gems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Pat Ferrel  
View profile  
 More options Oct 2 2012, 7:24 pm
From: Pat Ferrel <p...@occamsmachete.com>
Date: Tue, 2 Oct 2012 16:24:03 -0700 (PDT)
Local: Tues, Oct 2 2012 7:24 pm
Subject: passenger for apache2+ubuntu installs in wrong version of ruby gems

On ubuntu I have

%ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux]

when I run "sudo gem install passenger" then "sudo
passenger-install-apache2-module" it compiles and eventually gives these
instructions:

Please edit your Apache configuration file, and add these lines:

   LoadModule passenger_module
/var/lib/gems/1.8/gems/passenger-3.0.17/ext/apache2/mod_passenger.so
   PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.17
   PassengerRuby /usr/bin/ruby1.8

These are all wrong.

%which ruby
/usr/bin/ruby

%ls -al /usr/bin/ruby
lrwxrwxrwx 1 root root 18 Oct  1 14:59 /usr/bin/ruby -> /usr/bin/ruby1.9.1

I have no idea where it got ruby 1.8 but more to the point, how do I fix
this and get it to install in the right place?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tinco Andringa  
View profile  
 More options Oct 2 2012, 8:21 pm
From: Tinco Andringa <ti...@phusion.nl>
Date: Wed, 3 Oct 2012 02:21:56 +0200
Local: Tues, Oct 2 2012 8:21 pm
Subject: Re: [phusion-passenger] passenger for apache2+ubuntu installs in wrong version of ruby gems
Hey Pat,

I'm not very familiar with Ubuntu, but does '
/var/lib/gems/1.8/gems/passenger-3.0.17/' exist? if so could it be
that your gem command is installing gems for 1.8 instead of 1.9.
There's some weird stuff going on between gem and Ubuntu/Debian,
perhaps this is a result of it.

If you're sure you have passenger installed for 1.9 then just changing
those paths to the corresponding ones in your 1.9 directories will fix
your trouble :)

Kind regards,
Tinco

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hongli Lai  
View profile  
 More options Oct 3 2012, 5:12 am
From: Hongli Lai <hon...@phusion.nl>
Date: Wed, 3 Oct 2012 11:11:54 +0200
Local: Wed, Oct 3 2012 5:11 am
Subject: Re: [phusion-passenger] passenger for apache2+ubuntu installs in wrong version of ruby gems

You have two Ruby installations on your system, 1.8 and 1.9. When you
invoke 'ruby' as a normal user you invoke Ruby 1.9, but 'sudo' nukes
your environment variables so it's entirely possible that you when you
do 'sudo gem install', sudo selects the 'gem' command that's
associated with Ruby 1.8. RubyGems 'pins' any executable it installs
to the specific Ruby interpreter that it ran in, so when you invoke
passenger-install-apache2-module it is automatically invoked in Ruby
1.8.

To solve this problem, tell sudo to use the Ruby 1.9-specific gem
command, e.g. 'sudo /usr/bin/gem1.9 install passenger && sudo
/absolute-path-to/passenger-install-apache2-module'
Here, '/absolute-path-to' is the directory that your Ruby 1.9 RubyGems
installs executables to, whereever that is.

--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: i...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »