环境相关: ruby 2.3.0 所有安装按照https://ruby-china.org/wiki/install_ruby_guide里的方式进行。
然后安装 passenger: gem install passenger
passenger -v Phusion Passenger 5.0.26
但 git clone 项目,bundle install 后,在项目的目录下 passenger 居然找不到:
alex@alex-VirtualBox:~/chen/work/ttt$ cd obms
alex@alex-VirtualBox:~/chen/work/ttt/obms$ passenger -v
/home/alex/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:2158:in `method_missing': undefined method `this' for #<Gem::Specification:0x48499e2 passenger-5.0.26> (NoMethodError)
from /home/alex/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/specification.rb:1057:in `find_active_stub_by_path'
from /home/alex/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:64:in `require'
from /home/alex/.rvm/gems/ruby-2.3.0/gems/passenger-5.0.26/bin/passenger:33:in `<top (required)>'
from /home/alex/.rvm/gems/ruby-2.3.0/bin/passenger:23:in `load'
from /home/alex/.rvm/gems/ruby-2.3.0/bin/passenger:23:in `<main>'
from /home/alex/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
from /home/alex/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
但在上层路径居然可以:
alex@alex-VirtualBox:~/chen/work/ttt/obms$ cd ..
alex@alex-VirtualBox:~/chen/work/ttt$ passenger -v
Phusion Passenger 5.0.26
请问各位有遇到过类似问题吗?