Questions tagged [rbenv]

a simple version manager for Ruby, with a plugin system to modify its behaviour.

rbenv (downcased) is a tool to allow you to switch between multiple versions of Ruby. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.

Download

Useful plugins

Documentation

See Also

1170 questions
15
votes
7 answers

OpenSSL error installing ruby 2.0.0-p195 on Mac with rbenv

I'm trying to install Ruby 2.0.0-p195 using rbenv on a Mac (Mountain Lion) and got this error. BUILD FAILED Inspect or clean up the working tree at /var/folders/vt/27n8h2yj27v7rzq58075f3_m0000gn/T/ruby-build.20130618163859.1669 Results logged to…
BrainLikeADullPencil
  • 11,313
  • 24
  • 78
  • 134
14
votes
2 answers

How to fix error: failed to download on rbenv install

On fresh, new CentOS 7.0 VM Rbenv installation will not install rubies for me [vagrant@ad-proxy ~]$ rbenv install 2.2.4 Downloading ruby-2.2.4.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.bz2 error: failed to download…
onknows
  • 6,151
  • 12
  • 65
  • 109
14
votes
2 answers

How can I make rbenv recognise '1.9.3-p***' Ruby versions?

I'm trying to get some Ruby project running and the project is using .ruby-version file. That file contains only: 1.9.3 I installed the latest Ruby 1.9.3: $ rbenv install 1.9.3-p448 However when I ran ruby --version I got rbenv: version '1.9.3' is…
Nikita
  • 1,053
  • 1
  • 10
  • 19
14
votes
2 answers

Setting up env, OSX rbenv and bundle battle

So i have just swapped over to mac from ubuntu and setting up the env has not been as easy as promised. this is the process i followed. installed xcode - then went into the prefrences and downloaded the command line tools then verified that the…
legendary_rob
  • 12,792
  • 11
  • 56
  • 102
13
votes
2 answers

brew cannot find ANY packages

I just got my Mac Pro from the shop after hard drive failure. I am trying to install my environment again. I installed homebrew from the current link on the homebrew website: /bin/bash -c "$(curl -fsSL…
13
votes
1 answer

Configure rubymine with vagrant and rbenv

I have a rails project with the following development environment: Host machine: MacOS 10.8 Vagrant with precise 64 Rubymine Rbenv Everything works fine: rbenv is installed in the guest machine, and my rails server is started on port 3000 in the…
Benjamin Crouzier
  • 40,265
  • 44
  • 171
  • 236
12
votes
2 answers

What does this mean >> ~/.zshrc?

Can someone clarify me the difference between these two lines? export PATH=./bin:~/.rbenv/bin:$PATH and export PATH=./bin:~/.rbenv/bin:$PATH >> ~/.zshrc What is this doing? >> ~/.zshrc This is written in a .zshrc file. Which language is used…
AlbertMunichMar
  • 1,680
  • 5
  • 25
  • 49
12
votes
2 answers

Installing Ruby 2.3 on WSL (Windows Subsystem for Linux)

First off, sorry for my bad English. I'm trying to install Ruby 2.3.0 on my system with rbenv via Windows Subsystem for Linux aka Ubuntu on Windows 10. I followed this instruction (but not 100% exactly). but every time I try, It fails to build Ruby…
Yoon-Jae Jeong
  • 127
  • 1
  • 1
  • 8
11
votes
7 answers

How to use correct ruby in vim ? How to modify $PATH in VIM?

I use plain Vim with ruby support on Lion (installed by gist). I am using ruby with rbenv so my path looks like /users/me/.rbenv/shims:..... From within vim the path is :!echo $PATH >…
fbehrens
  • 6,115
  • 2
  • 19
  • 22
11
votes
2 answers

Failed to install ruby 2.5.0 thru rbenv macOS High Sierra

I am using macOS High Sierra and have been trying to install ruby 2.5.0 thru rbenv but keep getting error as following Apple LLVM version 9.0.0 (clang-900.0.39.2) Target: x86_64-apple-darwin17.4.0 Thread model: posix InstalledDir:…
Jaz Pin
  • 117
  • 1
  • 7
11
votes
1 answer

Why do I need to add ~/.rbenv/bin to my path?

I read in rbenv can't change global ruby version that I need to add ~/.rbenv/bin to my PATH for rbenv to work. That's also mentioned in the rbenv documentation but that directory doesn't exist as shown below: $ ls -a ~/.rbenv/ . .. plugins shims …
mbigras
  • 7,664
  • 11
  • 50
  • 111
11
votes
2 answers

rbenv: gem commands are not found on Linux Mint

I'm on Linux Mint 17.2. I recently removed ruby with apt-get purge ruby. I then installed rbenv and then did rbenv install 2.3.0 so now, ~/.rbenv/versions/2.3.0/bin/ruby exists. But now, I can't do gem install rubocop. I get this: $ gem install…
Housni
  • 963
  • 1
  • 10
  • 23
11
votes
4 answers

rbenv installation permission denied

Hi all I'm trying to set up a dev environment and I've been following a tutorial via; Link to tutorial I'm not doing very well and have no real experience of terminal commands other than the most basic version control stuff. I followed the first…
Meeps
  • 387
  • 2
  • 3
  • 15
11
votes
2 answers

rbenv install ruby BUILD FAILED

I'm quite new to rbenv let alone ruby and having some difficulty diagnosing the following installation failure: rbenv install 2.0.0-p0 Downloading yaml-0.1.6.tar.gz... ->…
kaizenCoder
  • 2,211
  • 6
  • 33
  • 64
11
votes
2 answers

ruby: aliased to bundled_ruby

When I type in which ruby it always returns ruby: aliased to bundled_ruby When I try which bundled_ruby it returns: bundled_ruby () { _run-with-bundler ruby $@ } Then I try which _run-with-bundler and it returns: _run-with-bundler () { if…
Coderama
  • 11,050
  • 12
  • 44
  • 58