6 ms·
Do any of these behave like Python's virtualenv? I really like how virtualenv works, and if I ever want to get semi-serious with Ruby, I'd like to have somethin
by RegEx 14y ago
Do any of these behave like Python's virtualenv? I really like how virtualenv works, and if I ever want to get semi-serious with Ruby, I'd like to have something similar.
- regularfry 14y agoNot for managing the Ruby version itself, but I wrote gemenv (http://github.com/regularfry/gemenv http://github.com/regularfry/gemenv) to be able to have the same style of contained package management that virtualenv offers. There's no reason you couldn't ./configure --prefix=gemenv and build a ruby binary into it as well.
- themckman 14y agoYou can use virtualenv to manage the python version, also. If you have multiple versions of python installed, say python27 and python3, using the --python option of virtualenv you can tell it which executable you want to create the virtualenv with. Honestly I always felt the various multi-ruby helpers were a bit too much for me. I just compiled my rubies my self setting --prefix during configure and then would just adjust a few env variables to set up things like PATH and GEM_HOME and had no issues.
- regularfry 14y agoThat's what I mean - I specifically wanted gemenv not to worry about installing rubies. It does one job, and one job only :-)
- mpapis 14y agothanks for mentioning - added to my list https://github.com/wayneeseguin/rvm/blob/master/help/alt.md https://github.com/wayneeseguin/rvm/blob/master/help/alt.md
- sandGorgon 14y agoBundle install --binstubs --shebang ruby-local-exec --path .bundle does pretty much the same thing. Assuming you're using rbenv and have all the correct paths.