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

6

5

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.

Corrinecorrinne answered 8/10, 2012 at 16:15 Comment(0)
C
5

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

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

See the issue discussion and the pow guide.

Cleistogamy answered 17/4, 2013 at 16:4 Comment(2)
A like to use a slight variation on this in order to avoid hardcoding the .rbenv path: export PATH=$(rbenv root)/shims:$(rbenv root)/bin:$PATHWarlike
Thanks, this is definitely a more robust pattern that I have seen since the time I wrote this answer. updatedCleistogamy
A
2

1) cat ~/.powconfig

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

2) restart

touch ~/.pow/restart.txt

Achaean answered 22/10, 2013 at 13:28 Comment(0)
K
1

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

Krefeld answered 27/7, 2017 at 17:48 Comment(0)
C
0

I figured it out. For some reason I have two .rbenv shims directories. One in ~/.rbenv/shims and one in ~/Developer/.rbenv/shims.

By changing my ~/.powconfig to add the Developer directories to my path, pow ran the app fine.

Corrinecorrinne answered 8/10, 2012 at 19:19 Comment(0)
T
0

Just for completeness.

I was having a similar issue and the answer over here fixed it for me.

I had to remove ~/.ruby-version in order for it to work for me.

Termination answered 11/3, 2014 at 13:48 Comment(0)
S
0

I'm using rbenv, and had this problem, when as suggested by this answer, the version of Ruby was different in the app's ENV than it was for Pow.

I had set the Ruby version using the RBENV_VERSION environment variable, which for some reason was not picked up by Pow. This was fixed by creating a .ruby-version file in the directory of my project.

Samanthasamanthia answered 24/10, 2014 at 8:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.