未找到乘客耙!乌班图 (10.04)

发布于 2024-09-19 21:18:07 字数 1654 浏览 5 评论 0原文

好的,所以我以 root 身份安装了 rvm 和所有内容。 然后我用rvm安装了Ruby企业版。

到目前为止,我在 rake 和 rvm 方面遇到了很多问题,但我不太确定为什么。

我必须在 /usr/local/bin 中手动创建 rake 链接才能使 rake 工作。

但是当我 Passenger-install-nginx-module

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.

但 rake 在我的路径中

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)

有想法吗?这妨碍了我的客户项目=\

Okay, so I installed rvm and everything as root.
Then I installed Ruby Enterprise Edition with rvm.

Now I've been having a TON of issues with rake and rvm so far and I'm not too sure as to why.

I had to manually create links in my /usr/local/bin to rake to get rake working.

But when I passenger-install-nginx-module

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.

But rake is in my path

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)

Ideas anyone? This is getting in the way of my clients project =\

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

是你 2024-09-26 21:18:07

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

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

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

例如。

Ruby Binary = /usr/local/bin/ruby

Rake Binary = /usr/local/lib/ruby/gems/1.8/bin/rake

ln -s /usr/local/lib/ruby/gems/1.8/bin/rake /usr/local/bin/

这似乎可以解决问题就我而言。

I ran into the same thing and the following comment on the googlecode thread was insightful.

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

Short version - it looks for rake in the same directory that your ruby binary is installed (and not in your $PATH). The quick and dirty fix was to drop a symlink in place for rake into the ruby bin directory.

Eg.

Ruby Binary = /usr/local/bin/ruby

Rake Binary = /usr/local/lib/ruby/gems/1.8/bin/rake

ln -s /usr/local/lib/ruby/gems/1.8/bin/rake /usr/local/bin/

That seemed to do the trick in my case.

少女的英雄梦 2024-09-26 21:18:07

尝试 Passenger 3。它大大改进了 RVM 支持。

Try Passenger 3. It has much improved RVM support.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文