首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到乘客叉子!Ubuntu (10.04)

找不到乘客叉子!Ubuntu (10.04)
EN

Stack Overflow用户
提问于 2010-09-17 22:29:42
回答 2查看 2K关注 0票数 2

好了,我以root身份安装了rvm和所有东西。然后我安装了带有rvm的Ruby Enterprise Edition。

到目前为止,我在rake和rvm上遇到了一大堆问题,我不太确定原因。

我必须在/usr/local/bin中手动创建指向rake的链接,才能使rake正常工作。

但是当我安装-nginx-module时

代码语言:javascript
复制
Welcome to the Phusion Passenger Nginx module installer, v2.2.15.

This installer will guide you through the entire installation process. It
shouldn't take more than 5 minutes in total.

Here's what you can expect from the installation process:

 1. This installer will compile and install Nginx with Passenger support.
 2. You'll learn how to configure Passenger in Nginx.
 3. You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

Press Enter to continue, or Ctrl-C to abort.


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

Checking for required software...

 * GNU C++ compiler... found at /usr/bin/g++
 * Ruby development headers... found
 * OpenSSL support for Ruby... found
 * RubyGems... found
 * Rake... not found
 * rack... found
 * OpenSSL development headers... found
 * Zlib development headers... found

Some required software is not installed.
But don't worry, this installer will tell you how to install them.

Press Enter to continue, or Ctrl-C to abort.

但是瑞克挡在我的道路上

代码语言:javascript
复制
root@li84-12:/usr/bin# rake
rake aborted!
No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)
/usr/local/rvm/rubies/ree-1.8.7-2010.02/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2377:in `raw_load_rakefile'
(See full trace by running task with --trace)

有谁有想法吗?这妨碍了我的客户project =\

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-09-18 17:31:30

试试Passenger 3,它对RVM的支持有很大改进。

票数 1
EN

Stack Overflow用户

发布于 2010-09-22 07:30:41

我遇到了同样的事情,下面关于googlecode线程的评论很有洞察力。

http://code.google.com/p/phusion-passenger/issues/detail?id=227#c8

简写版本-它在安装ruby二进制文件的同一目录中查找rake (而不是在$PATH中)。快速而肮脏的修复方法是将一个符号链接放到ruby bin目录中。

例如:

Ruby二进制= /usr/local/bin/ruby

Rake二进制= /usr/local/lib/ruby/gems/1.8/bin/rake

代码语言:javascript
复制
ln -s /usr/local/lib/ruby/gems/1.8/bin/rake /usr/local/bin/

这似乎在我的案例中起到了作用。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3736213

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档