-
Notifications
You must be signed in to change notification settings - Fork 256
rbenv does not work well with pow #202
Comments
I can't get pow to hit anything but the system Ruby.
And still I get: LoadError: no such file to load -- bundler/setup |
Yep, i inspected the pow sources, and totay push the fix. Sent from my iPhone On Aug 18, 2011, at 1:14 AM, [email protected] wrote:
|
Where can the code for this be found? |
No new commits on any branch at nzt or 37signals? |
Thomas Fuchs tweeted a workaround until this gets fixed. Add this to your ~/.powconfig (changing the username of course):
Worked for me. Source: https://twitter.com/#!/thomasfuchs/status/102116945360465921 |
Unfortunately, that fix didn't seem to work for me. I tried re-install pow as well after the config change and that didn't help either. UPDATE: It working for me now, just needed to reboot! Thanks for posting the tweet. |
Worked for me. Created file, restarted via powify, all good. -J Typos courtesy of iPhone On Aug 19, 2011, at 2:38 PM, mstarkman
|
Updated: this might not be optimal after all. See my comment below. I've done this with my # cat ~/.powconfig
export PATH=$(rbenv prefix)/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin No usernames to change, no internal structure of rbenv exposed, works even when you move rbenv to another location (as long as |
Neither of the two solutions involving |
Not sure why it doesn't work for you, but I've noticed a bug with my solution above: it skips the rbenv shims, going straight to the original binaries of the current ruby version. This skips rbenv plugins completely. |
@asymmetric I installed
Restart your shell and pow and enjoy! :) |
If you installed rbenv via Homebrew make sure you modify that second path accordingly or you'll spend an hour wondering why this works for everyone else but you |
Turns out it doesn't work if you use |
@ctshryock Which 'second path' are you referring to? |
# ~/.powconfig
export PATH=/Users/clint/.rbenv/shims:/Users/clint/Developer/bin:$PATH |
If anyone here is using zsh, you need to put the |
You may need to restart POW by killing it in the Activity Monitor or in Terminal after your doing the config changes |
Gurpartap: thank you so much for that comment regarding zsh. That saved me a lot of time. It would be great to get the rbenv and pow docs regarding the use of zsh updated so that it is clear that you need to add the PATH config and the eval lines to .zshenv rather than .zshrc in order to use pow with rbenv export PATH="$HOME/.rbenv/bin:$PATH" And then of course killing POW so that it gets restarted by launchctl is necessary so that POW gets loaded in that env. |
@edsinclair I'm not sure the docs are wrong; I don't have anything in my |
Interesting. I tested this a bit restarting pow each time and can confirm that on my system POW does not find rbenv unless I put the shell configuration lines in .zshenv rather than .zshrc. Not sure if this issue with how .zsh is installed or which version of zsh one runs. I guess the docs may be correct for some, but if you have an issue it is worth a try to put the rbenv shell config lines in .zshenv. |
@edsinclair what about your ~/.powconfig? |
@ctshryock ah that works as well. Thanks for that. Though I tried it using the $HOME shell variable and that did not work as @asymmetric pointed out above regarding the ~ home dir alias. Not sure I feel entirely comfortable with a solution that requires hardcoding the path as @mislav pointed out in his imperfect solution... So I may stick with the .zshenv solution as it seems like there may be other processes besides POW that I'd want using rbenv. For example in the past I've written/used ruby scripts that run via launchctl. It does seem like a mention of using .zshenv instead of .zshrc would be worth mentioning in the rbenv docs. So I should have made that comment over there, instead of here :) Thanks again. |
Afaik, |
Thanks @Gurpartap, you made me realize I was setting it in both |
Just a quick update: using |
Just had this issue. With fresh install of Lion/rbenv. Resolved as per comments above by adding the following to
|
I'm running ZSH on Lion. The only change I had to do was edit the path in
|
Note: Zsh users won't need to make any changes to |
@sstephenson I just installed the latest (the install script said |
@Insside here is the output:
|
Fixed my own problem. For some reason, I had two shims directories--one in |
Git installed rbenv and rbenv-build. getting the Here's my path:
And here's the error:
Any help? Running OS X 10.8.2 |
@jmccartie Verify the contents of you rbenv shims |
Issue resolved. Someone had placed stuff into |
This worked for me, in export PATH="$HOME/.rbenv/shims:$HOME/.rbenv/bin:$PATH" |
@sj26 Thanks |
I fixed this by installing the gem powify:
I then add the following script to
Replacing I then ran the install script for pow again:
And last command I ran was:
Replace I another thing you must make sure when using rbenv is to run |
Just to confirm, we recently had this problem and we were getting the following error:
The problem was that he was running zshell and it wasn't initializing rbenv before pow ran. We fixed it using Gurpartap and edsinclair's advice above. Killing pow using Activity Monitor was the important part. |
Thanks @esambo
Works great for Pow 0.4.0 via homebrew under 10.8.3 ❤️ |
I prefer moving the following from my
That's because it fixes the issue for each app that does not load the shell, but does load the environment. In that way you don't have any duplicated configurations as it will not be inside your By the way @sstephenson, this issue was still existent for me on v0.4.1.
|
I installed pow with Homebrew and edited the correct path in my .powconfig file. It wasn't working until I restarted pow using lunchy:
|
I just upgrade to OSX Mavericks and the issue is back.
Brew doctor says everything is OK. I reinstalled the gem and pow. Restarted the process and terminal. Nothing works. |
No issues with mavericks here. Make sure you've got those lines in your ~/.powconfig and have restarted pow? You can also check the logs in Console. |
Also have the issue with Mavericks -- update I think it may be because im using an rbenv gemset via the rbenv-gemset plugin. Ill try without it. |
Fixed this problem on Mavericks using both export RBENV_ROOT=/usr/local/var/rbenv # <-- this was what I needed
eval $(rbenv init -)
export PATH=$(rbenv root)/shims:$(rbenv root)/bin:$PATH |
This has been accounted for in #358. Only .zshrc would not properly be picked up. Now it is. Get the most recent version of pow and all the weird customisations should not be needed. If you don't want to install pow from GitHub, see my earlier comment for my setup that has not ever had issues, even on Mavericks. (#202 (comment)) |
For all who have added a |
@victorngkp 👍. Didn't do any of the above except for delete my accidental |
👍 @victorngkp. Forgot I had that |
@victorngkp 👍 Thanks! |
one more 👍 @victorngkp |
👍 @victorngkp |
No description provided.
The text was updated successfully, but these errors were encountered: