Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with Pow and rbenv - "cannot load such file -- bundler/setup"

I know there is an entry on the Troubleshooting wiki page for Pow, but I made that change and it still gives the same error.

If you notice from the error message below, it seems to be at least trying to use the correct version of ruby from rbenv, but still has the same error

LoadError: cannot load such file -- bundler/setup
~/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
~/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

I also looked through all the comments in the issue mentioned on the troubleshooting page as well and none of those solutions work for me.

like image 712
camdub Avatar asked Oct 08 '12 16:10

camdub


3 Answers

Generally, you need a ~/.powconfig file with:

export PATH=$(rbenv root)/shims:$(rbenv root)/bin:$PATH

See the issue discussion and the pow guide.

like image 168
New Alexandria Avatar answered Nov 14 '22 22:11

New Alexandria


1) cat ~/.powconfig

export PATH=/Users/alvin/.rbenv/shims:$PATH

2) restart

touch ~/.pow/restart.txt

like image 22
alvin2ye Avatar answered Nov 14 '22 22:11

alvin2ye


I had this error using rbenv and simply uninstalling and re-installing pow fixed it:

curl get.pow.cx/uninstall.sh | sh

and

curl get.pow.cx | sh

like image 32
David DeGraw Avatar answered Nov 14 '22 20:11

David DeGraw