未找到乘客耙!乌班图 (10.04)
好的,所以我以 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我遇到了同样的事情,下面对 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
这似乎可以解决问题就我而言。
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
That seemed to do the trick in my case.
尝试 Passenger 3。它大大改进了 RVM 支持。
Try Passenger 3. It has much improved RVM support.