Ok so i have a new amazon ubuntu 11.04 ec2 instance and all seems great other then passenger and ruby and rvm. OK so my apache2.conf has this
LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.11
PassengerRuby /home/ubuntu/.rvm/bin/ruby
# PassengerRuby /home/ubuntu/.rvm/gems/ruby-1.9.2-p290
#LoadModule passenger_module /home/ubuntu/.rvm/gems/ruby-1.9.2-p290@crm/gems/passenger-3.0.11/ext/apache2/mod_passenger.c
#PassengerRoot /home/ubuntu/.rvm/gems/ruby-1.9.2-p290@crm/gems/passenger-3.0.11
I have some commented out because I have tried all kinds of variations to get rvm and passenger to work together .
my vhost is this
<VirtualHost *:80>
ServerAdmin something@gmail.com
ServerName logicxl.com
# ServerAlias
DocumentRoot /srv/crm/current/public
ErrorLog /srv/crm/logs/error.log
<Directory "/srv/crm/current/public">
Options Indexes MultiViews FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
the url is logicxl.com but as you can see there is the rake error
Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)
but i did bundle install and got this
/srv/crm/current$ bundle install
Using rake (0.9.2.2)
....
....
....
Using thin (1.3.1)
Using uglifier (1.2.2)
Using unicorn (4.1.1)
Using will_paginate (3.0.2)
Using yajl-ruby (1.1.0)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
so the gems are installed but the error persists....I am assuming there is a problem with which ruby is being used and what gems are being used...but i have tried almost everything to get this to work...any help would be appreciated..
Have you tried performing a system-wide RVM install (it's just like a regular install, but logged in as root)?
Also, try to deploy your application using Capistrano ( with RVM support ) instead of manually copying files and running bundler
. There are plenty of tutorials about it. It will make sure you install your gem dependencies correctly.
查找/home/ubuntu/.rvm/bin/ruby路径中是否存在rake-0.9.2.2 gem,我认为问题是乘客红宝石无法在全球范围内找到rake gem,尝试使用gem install rake -v = 0.9.2.2
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.