好了,我以root身份安装了rvm和所有东西。然后我安装了带有rvm的Ruby Enterprise Edition。
到目前为止,我在rake和rvm上遇到了一大堆问题,我不太确定原因。
我必须在/usr/local/bin中手动创建指向rake的链接,才能使rake正常工作。
但是当我安装-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.但是瑞克挡在我的道路上
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 =\
发布于 2010-09-18 17:31:30
试试Passenger 3,它对RVM的支持有很大改进。
发布于 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
ln -s /usr/local/lib/ruby/gems/1.8/bin/rake /usr/local/bin/这似乎在我的案例中起到了作用。
https://stackoverflow.com/questions/3736213
复制相似问题