Coder Social home page Coder Social logo

rvm/zsh trouble about pow HOT 14 CLOSED

basecamp avatar basecamp commented on June 3, 2024
rvm/zsh trouble

from pow.

Comments (14)

josh avatar josh commented on June 3, 2024

Are you using rvm gemsets? Sounds like the one pow is loaded with doesn't have those gems.

from pow.

jalada avatar jalada commented on June 3, 2024

No but I'm using RVM to replace my system Ruby:

jalada@mc15812 ~ » which ruby
/Users/jalada/.rvm/rubies/ruby-1.8.7-p334/bin/ruby

jalada@mc15812 ~ » rvm gemdir
/Users/jalada/.rvm/gems/ruby-1.8.7-p334

Does that help?

Looking at the source very briefly, it feels like it should source rvm whether or not there is an .rvmrc file present in the project.

from pow.

josh avatar josh commented on June 3, 2024

What shell are you using? (assuming bash)

Is rvm setup in .bash_profile or .bashrc or something else?

from pow.

jalada avatar jalada commented on June 3, 2024

zsh, it's at the bottom of .profile

from pow.

josh avatar josh commented on June 3, 2024

I think zsh uses .zshenv and .zshrc instead of .profile. Not an zsh expert. Sam uses zsh, he might know better.

from pow.

jalada avatar jalada commented on June 3, 2024

I am sourcing .profile at the end of .zshrc; would that be a problem?

from pow.

josh avatar josh commented on June 3, 2024

Debug idea: add a echo "Loading RVM" right before you source rvm.

Open Console.app, restart pow and hit an app. You should see that log line happen in Console.app if its being sourced by pow.

from pow.

jalada avatar jalada commented on June 3, 2024

With or without a .rvmrc file in my app's directory, I never see Loading RVM after adding it to my .profile before sourcing RVM.

from pow.

josh avatar josh commented on June 3, 2024

Kind of what I expected.

With that debug still in place: zsh --login -c "echo test"

Does that product any output? Thinking zsh's --login environment just isn't evaling rvm.

from pow.

jalada avatar jalada commented on June 3, 2024

You're right, no 'Loading RVM'

from pow.

josh avatar josh commented on June 3, 2024

Try moving rvm directly into .zshenv

from pow.

jalada avatar jalada commented on June 3, 2024

Bingo. Now it's working fine and I'm getting Loading RVM in my console.

I'm a bit of a ZSH noob; I'll have to look up .zshenv etc.

Weirdly I'm getting 'Loading RVM' twice in a new shell even though it's just in .zshenv, but never mind about that! Think it's just the way it's rendering it in iTerm or something.

Thanks for the help! Sorry it wasn't a real bug :P love pow!

from pow.

dukz avatar dukz commented on June 3, 2024

I'm having problems with this. Seems like the .zshenv isn't loading RVM properly, and it doesn't include the RVM gemdir into the PATH env variable. So commands like bundle doesn't work anymore.

If I have the Load RVM scripts in .zshrc, I get the following for the PATH variable:

/Users/andrew/.rvm/gems/ruby-1.9.2-p290/bin:/Users/andrew/.rvm/gems/ruby-1.9.2-p290@global/bin:/Users/andrew/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/andrew/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

But when I load it in .zshenv, it doesn't load RVM until i run an RVM command, and it doesn't even load properly:

➜  ~  echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
➜  ~  ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
➜  ~  rvm list

rvm rubies

=> ruby-1.9.2-p290 [ x86_64 ]
   ruby-1.9.3-p0 [ x86_64 ]

➜  ~  echo $PATH
/Users/andrew/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
➜  ~  

Help would be appreciated.

from pow.

rylanb avatar rylanb commented on June 3, 2024

See this section if you are having issues: http://pow.cx/manual#section_2.3.2

I believe it helped me.

from pow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.