乘客错误:无法加载这样的文件 - RubyGems的/ path_support [英] Passenger Error: cannot load such file -- rubygems/path_support

查看:549
本文介绍了乘客错误:无法加载这样的文件 - RubyGems的/ path_support的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多的麻烦得到一个VPS - Ubuntu的10.10 /的Apache2 /乘客的环境中工作。

I am having a lot of trouble getting a VPS - Ubuntu 10.10 / Apache2 / Passenger environment working.

我已经安装一个虚拟主机rails.mydomain.com具有下列文件:

I have setup a virtual host "rails.mydomain.com" with the following file:

<VirtualHost *:80>
    ServerName rails.mydomain.com
    DocumentRoot /var/www/vhosts/rails.mydomain.com/appname/public
    <Directory /var/www/vhosts/rails.mydomain.com/appname/public>
            Allow from all
            Options -MultiViews -Indexes
    </Directory>

    Include /etc/apache2/production-expires.conf
    CustomLog /var/log/apache2/rails.mydomain.com-access_log common
    ErrorLog /var/log/apache2/rails.mydomain.com-error_log
</VirtualHost>

当我尝试和加载应用程序在服务器上,我得到:

When i try and load up the app on the server, i get:

Error message:
    cannot load such file -- rubygems/path_support

Exception class:
    LoadError

Application root:
    /var/www/vhosts/rails.mydomain.com/appname 

另外,如果我尝试去任何路径内,我得到完全相同的错误...所以像rails.mydomain.com/testpath,rails.mydomain.com/blog,等等等等。

Also, if i try and go to any path inside, i get the same exact error... so like rails.mydomain.com/testpath, rails.mydomain.com/blog, etc etc

我看了一下在Ruby文件夹的权限有些事情,我怎么检查这些权限(我想成为一个服务器管理员的开发者,所以任何的建议是AP preciated!)

I have read some things about permissions on the ruby folder, how do i check these permissions (I am a developer trying to be a server admin, so any advice is appreciated!)

推荐答案

我的问题是各地我的Ruby安装是不是系统范围。它在安装了根,和apache无法访问红宝石。

My problems were all around my ruby installation being NOT system-wide. It was installed for root, and apache couldn't access Ruby.

我使用Ruby sudo的,下面RVM对全系统的安装指南和所有好重新安装。

I reinstalled Ruby using sudo, following RVM's install guide for system-wide and all is good.

这篇关于乘客错误:无法加载这样的文件 - RubyGems的/ path_support的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆