no such file to load — bundler/setup in Rails 3.2 with Passenger

妖精的绣舞 提交于 2019-12-02 06:24:31

问题


I'm running a vserver on apache2 with passenger. Using RVM for ruby. Ruby Version -> 1.9.3p194 Rails Version -> 3.2.3 Set up by Apache Virtual Host Configuration ...

Now, when I'm entering the url into my browser, a passenger error page shows up:

no such file to load -- bundler/setup

I have no idea what to do now. Can someone help me?


回答1:


Create a .htaccess in your root dir and use it to specify the GEM_PATH.

For example:

SetEnv GEM_PATH /home/dinduks/.rvm/gems/ruby-1.9.3-p0



回答2:


looks like the bundler gem isn't in your path or isn't installed



来源:https://stackoverflow.com/questions/10499364/no-such-file-to-load-bundler-setup-in-rails-3-2-with-passenger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!