对标记为(Broandon's)的回答仅仅是第3步的补充说明,因为我没有使用我的Passenger3并使用这些代码运行。
错误消息是如下:
*** Phusion Passenger: no passenger_native_support.bundle found for the current Ruby interpreter. Compiling one...
# mkdir -p /Users/jerry/.rvm/gems/[email protected]/gems/passenger-3.0.18/ext/ruby/ruby-1.9.3-x86_64-macosx
# cd /Users/jerry/.rvm/gems/[email protected]/gems/passenger-3.0.18/ext/ruby/ruby-1.9.3-x86_64-macosx
Unable to locate the RVM path. Your RVM installation is probably too old. Please update it with 'rvm get head && rvm reload && rvm repair all'.
参考消息“无法找到RVM路径”,我检查RVM文档 https://rvm.io/integration/passenger/
编辑配置/ setup_load_paths.rb此:
if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
begin
gems_path = ENV['MY_RUBY_HOME'].split(/@/)[0].sub(/rubies/,'gems')
ENV['GEM_PATH'] = "#{gems_path}:#{gems_path}@global"
require 'rvm'
RVM.use_from_path! File.dirname(File.dirname(__FILE__))
rescue LoadError
raise "RVM gem is currently unavailable."
end
end
# If you're not using Bundler at all, remove lines bellow
ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile', File.dirname(__FILE__))
require 'bundler/setup'
问题解决!
这不是在您的默认系统目录中。它正在寻找捆绑商寻找的来源中的宝石。再看看你的Gemfile。另外,你是如何安装你的kaminari宝石?宝石列表说什么? – corroded 2011-03-15 04:19:49
什么是您的乘客版本?如何安装它? (独立或与另一个Web服务器在它之前,如果是这样的?apache或nginx) – Brandon 2011-03-15 04:21:05