gpt4 book ai didi

ruby-on-rails - 未找到乘客 rake ! Ubuntu (10.04)

转载 作者:行者123 更新时间:2023-12-04 06:46:15 26 4
gpt4 key购买 nike

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

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

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

但是当我乘客安装nginx模块时

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)

任何人的想法?这妨碍了我的客户项目 =\

最佳答案

我遇到了同样的事情,以下关于 googlecode 线程的评论很有见地。

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

短版本 - 它在安装 ruby​​ 二进制文件的同一目录中查找 rake(而不是在 $PATH 中)。快速而肮脏的解决方法是将 rake 的符号链接(symbolic link)放置到 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/

在我的情况下,这似乎起到了作用。

关于ruby-on-rails - 未找到乘客 rake ! Ubuntu (10.04),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3736213/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com