On Wed, Jul 7, 2010 at 7:21 AM, Sam Kong <[email protected]> wrote:
> Hi,
>
> I installed rvm on my OS X Snow Leopard.
> And I installed ruby 1.8.7 and gemset rails3.
> I also installed passenger.
>
> My rails app runs find with 'rails server'.
> However it doesn't run on passenger.
>
> Error message is:
> Could not find gem 'rails (= 3.0.0.beta4, runtime)' in the gems
> available on this machine. (Bundler::GemNotFound)
>
> I added the following line to config.ru:
> ENV["GEM_PATH"] = "/Users/ssk/.rvm/gems/ruby-1.8.7-p...@rails3"
>
> /etc/apache2/other/passenger.conf has the following:
> LoadModule passenger_module
> /Users/ssk/.rvm/gems/ruby-1.8.7-p...@rails3/gems/passenger-2.2.15/ext/apache2/mod_passenger.so
> PassengerRoot
> /Users/ssk/.rvm/gems/ruby-1.8.7-p...@rails3/gems/passenger-2.2.15
> PassengerRuby /Users/ssk/.rvm/rubies/ruby-1.8.7-p299/bin/ruby
>
>
> Why can't passenger find rails?

How did you installed passenger? I think you must install it using
rvmsudo if you're using RVM:
rvmsudo passenger-install-apache2-module

Take a look at this:
http://rvm.beginrescueend.com/integration/passenger/




>
> Thanks.
>
> Sam
>
> ------ADDITIONAL INFO-------
>
> gem env is
> RubyGems Environment:
>  - RUBYGEMS VERSION: 1.3.7
>  - RUBY VERSION: 1.8.7 (2010-06-23 patchlevel 299) [i686-darwin10.0.0]
>  - INSTALLATION DIRECTORY: /Users/ssk/.rvm/gems/ruby-1.8.7-p...@rails3
>  - RUBY EXECUTABLE: /Users/ssk/.rvm/rubies/ruby-1.8.7-p299/bin/ruby
>  - EXECUTABLE DIRECTORY:
> /Users/ssk/.rvm/gems/ruby-1.8.7-p...@rails3/bin
>  - RUBYGEMS PLATFORMS:
>    - ruby
>    - x86-darwin-10
>  - GEM PATHS:
>     - /Users/ssk/.rvm/gems/ruby-1.8.7-p...@rails3
>     - /Users/ssk/.rvm/gems/ruby-1.8.7-p...@global
>  - GEM CONFIGURATION:
>     - :update_sources => true
>     - :verbose => true
>     - :benchmark => false
>     - :backtrace => false
>     - :bulk_threshold => 1000
>  - REMOTE SOURCES:
>     - http://rubygems.org/
>
>
> *** LOCAL GEMS ***
>
> abstract (1.0.0)
> actionmailer (3.0.0.beta4)
> actionpack (3.0.0.beta4)
> activemodel (3.0.0.beta4)
> activerecord (3.0.0.beta4)
> activeresource (3.0.0.beta4)
> activesupport (3.0.0.beta4)
> arel (0.4.0)
> builder (2.1.2)
> bundler (0.9.26)
> erubis (2.6.6)
> fastthread (1.0.7)
> i18n (0.4.1)
> mail (2.2.5)
> memcache-client (1.8.5)
> mime-types (1.16)
> mysql (2.8.1)
> passenger (2.2.15)
> polyglot (0.3.1)
> rack (1.2.1, 1.1.0)
> rack-mount (0.6.6)
> rack-test (0.5.4)
> rails (3.0.0.beta4)
> railties (3.0.0.beta4)
> rake (0.8.7)
> rdoc (2.5.8)
> text-format (1.0.0)
> text-hyphen (1.0.0)
> thor (0.13.7)
> treetop (1.4.8)
> tzinfo (0.3.22)
> --


-- 
Leonardo Mateo.
There's no place like ~

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to