本文介绍了乘客:不能加载此类文件的RubyGems /建设者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用的Apache2安装乘客和Ruby 2.0,我有这行的错误,当我做的:

 乘客安装-Apache2的模块

错误:

  -------------------------------------- ------
编译和安装Apache 2模块...
CD /usr/local/lib/ruby/gems/2.0.0/gems/passenger-3.0.19
在/ usr / local / bin目录/红宝石在/ usr / local / bin目录/耙的Apache2:干净的Apache2 RELEASE = YES
#在/ usr / local / bin目录/红宝石在/ usr / local / bin目录/耙的Apache2:干净的Apache2 RELEASE = YES
耙中止!
无法加载这样的文件 - RubyGems的/建设者(通过运行带有--trace任务查看完整的跟踪)--------------------------------------------它看起来像出事了

我试过:

 创业板安装建设者

但仍然出现此错误。我该如何解决呢?


修改

红宝石版本:

  2.0 P2

宝石列表:

 的BigDecimal(1.2.0)
建设者(3.2.0)
打捆(1.3.1)
daemon_controller(1.1.1)
fastthread(1.0.7)
IO-控制台(0.4.2)
JSON(1.7.7)
MINITEST(4.3.2)
乘客(3.0.19)
迷幻(2.0.0)
机架(1.5.2)
机架保护(1.4.0)
耙(0.9.6)
的RDoc(4.0.0)
西纳特拉(1.3.5)
测试单元(2.0.0.0)
倾斜(1.3.4)


解决方案

更​​新说明:

  $创业板安装乘客--version 4.0.0.rc6
$客车安装-Apache2的模块

I was trying to install passenger with Apache2 and ruby 2.0, and I had this line of error when I am doing:

passenger-install-apache2-module

Error:

--------------------------------------------
Compiling and installing Apache 2 module...
cd /usr/local/lib/ruby/gems/2.0.0/gems/passenger-3.0.19
/usr/local/bin/ruby /usr/local/bin/rake apache2:clean apache2 RELEASE=yes
# /usr/local/bin/ruby /usr/local/bin/rake apache2:clean apache2 RELEASE=yes
rake aborted!
cannot load such file -- rubygems/builder

(See full trace by running task with --trace)

--------------------------------------------

It looks like something went wrong

I tried:

gem install builder

But this error still occurs. How can I solve it?


Edit

Ruby Version:

2.0 p2

Gem List:

bigdecimal (1.2.0)
builder (3.2.0)
bundler (1.3.1)
daemon_controller (1.1.1)
fastthread (1.0.7)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
passenger (3.0.19)
psych (2.0.0)
rack (1.5.2)
rack-protection (1.4.0)
rake (0.9.6)
rdoc (4.0.0)
sinatra (1.3.5)
test-unit (2.0.0.0)
tilt (1.3.4)
解决方案

Updated instructions:

$ gem install passenger --version 4.0.0.rc6
$ passenger-install-apache2-module

这篇关于乘客:不能加载此类文件的RubyGems /建设者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 21:37