简体   繁体   English

没有要加载的此类文件-Redmine 2.2.2和ubuntu 10.04的捆绑程序/设置

[英]no such file to load — bundler/setup with redmine 2.2.2 and ubuntu 10.04

I get the error: 我收到错误:

no such file to load -- bundler/setup

You can see the next image atachment: 您可以看到下一个图片附件:

在此处输入图片说明

However my bundle is installed fine. 但是我的捆绑包安装得很好。 If I run from redmine/config/ the command 如果我从redmine/config/命令运行

bundle install --without development test postgresql sqlite

I get: 我得到:

Using rake (10.0.3) 
Using i18n (0.6.1) 
Using multi_json (1.5.0) 
Using activesupport (3.2.11) 
Using builder (3.0.0) 
Using activemodel (3.2.11) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.4) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.2.2) 
Using actionpack (3.2.11) 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.4.4) 
Using actionmailer (3.2.11) 
Using arel (3.0.2) 
Using tzinfo (0.3.35) 
Using activerecord (3.2.11) 
Using activeresource (3.2.11) 
Using coderay (1.0.8) 
Using rack-ssl (1.3.3) 
Using json (1.7.6) 
Using rdoc (3.12) 
Using thor (0.17.0) 
Using railties (3.2.11) 
Using jquery-rails (2.0.3) 
Using mysql2 (0.3.11) 
Using net-ldap (0.3.1) 
Using ruby-openid (2.1.8) 
Using rack-openid (1.3.1) 
Using bundler (1.2.3) 
Using rails (3.2.11) 
Using rmagick (2.13.1) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

This is my ruby -v: 这是我的红宝石-v:

ruby 1.9.3p374 (2013-01-15 revision 38858) [i686-linux]

This is my rails -v: 这是我的-v:

Rails 3.2.11

I have installed redmine with ubuntu 12 last version and is working fine, but with ubuntu 10.04 I get this error 我已经安装了Redmine的ubuntu 12最新版本,并且工作正常,但是使用ubuntu 10.04时出现此错误

This is my apache default conf: 这是我的Apache默认配置:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/redmine/public
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/redmine>
                RailsBaseURI /redmine
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>
        ErrorLog /var/log/apache2/error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn
        CustomLog /var/log/apache2/access.log combined
    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>
</VirtualHost>

My gem env : 我的gem env

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.22
  - RUBY VERSION: 1.9.3 (2012-02-16 patchlevel 125) [i686-linux]
  - INSTALLATION DIRECTORY: /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@rails32
  - RUBY EXECUTABLE: /home/ubuntu/.rvm/rubies/ruby-1.9.3-p125/bin/ruby
  - EXECUTABLE DIRECTORY: /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@rails32/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@rails32
     - /home/ubuntu/.rvm/gems/ruby-1.9.3-p125@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

This is my passenger.conf 这是我的passenger.conf

<IfModule mod_passenger.c>
  PassengerRoot /usr
  PassengerRuby /usr/bin/ruby
  PassengerDefaultUser www-database
</IfModule>

when I run ps -fe i get: 当我运行ps -fe我得到:

root     28771     1  0 06:00 ?        00:00:00 /usr/sbin/apache2 -k start
root     28783 28771  0 06:00 ?        00:00:00 /usr/lib/phusion_passenger/ApplicationPoolServerExecutable 0 /usr/lib/phusion_passenger/passenger-spawn-server  /usr/bin
root     28784 28783  0 06:00 ?        00:00:35 Passenger spawn server                                                                                                  
www-data 28789 28771  0 06:00 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 28790 28771  0 06:00 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 28791 28771  0 06:00 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 28792 28771  0 06:00 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 28793 28771  0 06:00 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 28800 28771  0 06:00 ?        00:00:00 /usr/sbin/apache2 -k start

Where is the problem? 问题出在哪儿?

Thank you! 谢谢!

Your Passenger is trying to start Redmine using another Ruby than your 1.9.3-p374. 您的乘客正在尝试使用1.9.3-p374以外的其他Ruby启动Redmine。 As you can see from the stacktrace, it tries to use some Ruby 1.8 (which is probably installed by system packages). 从stacktrace中可以看到,它尝试使用某些Ruby 1.8(可能由系统软件包安装)。

To change that, you have to configure your Passenger to use your custom Ruby. 要更改此设置,您必须将“ 乘客”配置为使用自定义Ruby。

Vhost example 虚拟主机示例

ServerName bug.domain.com DocumentRoot /srv/redmine/public ServerName bug.domain.com DocumentRoot / srv / redmine / public

    PassengerRuby /path/to/ruby-x.y.z/bin/ruby
    <Directory /srv/redmine/public>
            AllowOverride all
            Options -MultiViews
    </Directory>

Locate the ruby executable 找到ruby可执行文件

First, go to your redmine directory: 首先,转到您的redmine目录:

cd /srv/redmine
gem env | grep -i exec

For instance I got 例如我

RUBY EXECUTABLE: /home/me/.rvm/rubies/ruby-2.0.0-p195/bin/ruby
EXECUTABLE DIRECTORY: /home/me/.rvm/gems/ruby-2.0.0-p195/bin

Apache 阿帕奇

Finally add the directive PassengerRuby /path/to/ruby to your vhost and reload your apache config. 最后, 将指令 PassengerRuby /path/to/ruby到您的虚拟主机中,并重新加载 apache配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 没有要加载的文件 - bundler/setup - no such file to load — bundler/setup 没有要加载的文件 - Ubuntu 上的乘客捆绑器 - No such file to load - bundler on Passenger on Ubuntu 在独立乘客启动redmine时出现“没有此类文件要加载—捆绑程序”错误 - “no such file to load — bundler” error when booting redmine with passenger standalone 无法加载此类文件 - bundler / setup(LoadError)|| 部署在Ubuntu 12.04 x32上 - cannot load such file — bundler/setup (LoadError) || deploy on Ubuntu 12.04 x32 `require&#39;:无法加载此类文件-捆绑程序/安装程序(LoadError) - `require': cannot load such file — bundler/setup (LoadError) LoadError:无法加载此类文件—捆绑程序/设置capistrano - LoadError: cannot load such file — bundler/setup capistrano 加载错误:无法加载此类文件 -- 捆绑程序/设置 - LoadError: cannot load such file -- bundler/setup 没有要加载的此类文件-Capistrano部署时的捆绑程序/设置 - no such file to load — bundler/setup when capistrano deploy rbenv passenger无法加载此类文件-捆绑器/设置 - rbenv passenger cannot load such file — bundler/setup 无法加载此类文件—捆绑器/设置-Capistrano - cannot load such file — bundler/setup - Capistrano
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM