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
7
votes
3 answers

How do I know if I'm using rbenv

After reading about Ruby gems and having no idea what rbenv or RVM was, I figured I should probably have one of the two. I tried installing rbenv using Homebrew however it told me I had already installed rbenv. I always seem to have problems adding…
user3765580
7
votes
3 answers

Inspect or clean up the working tree error when installing Ruby 2.1.3 on Mac OS X 10.9.5

I'm trying to install Ruby 2.1.3 on Mac OS X 10.9.5 using the rbenv install 2.1.3 command. However I get the error message below. I tried every suggestion on stack overflow and elsewhere. Nothing seems to be working. I currently have the…
WT0805
  • 71
  • 1
  • 1
  • 3
7
votes
3 answers

rbenv continually generating vagrant shim

I am using the latest vagrant with rbenv and various rubies. I am using the latest vagrant, which no longer uses a gem. When I execute a vagrant command I see the following error: rbenv: vagrant: command not found I have removed the old vagrant…
Toby Hede
  • 36,755
  • 28
  • 133
  • 162
7
votes
1 answer

How do I get rbenv to keep debugging symbols?

I installed the development version of Ruby 2 via rbenv on Mac OS X v10.8.3, and am using it to compile a gem I'm working on. I have a memory problem I want to debug. Unfortunately, whenever I run valgrind, gdb, or cgdb in the context of a rake…
Translunar
  • 3,739
  • 33
  • 55
7
votes
1 answer

rbenv and passenger - cannot install from not root user account(sudo group)

I'm just trying to setup my first rails server - on Ubuntu 12.04. I installed rbenv (as user: deployer with groups sudo and admin). Now trying to install passenger according to their docs. I run passenger-install-nginx-module it starts but then I…
Marcin Doliwa
  • 3,639
  • 3
  • 37
  • 62
6
votes
0 answers

VSCode uses wrong ruby version

I'm having an issue with VSCode on Ubuntu. I have the ruby extension and the ruby-rubocop extensions installed but when I run the rubocop extension on save, I get 2 errors rbenv: version '2.5.1' is not installed (set by RBENV_VERSION environment…
6
votes
3 answers

Why do I get the error 'The Ruby openssl extension was not compiled ERROR: Ruby install aborted due to missing extensions'?

When I run RUBY_CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl@3/3.0.1 rbenv install 3.1.0 I get this output: Downloading ruby-3.1.0.tar.gz... -> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.0.tar.gz Installing…
6
votes
1 answer

Homebrew: Ignoring bigdecimal-1.3.2 because its extensions are not built

Always when I run brew update the Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem pristine bigdecimal --version 1.3.2 warning shows up: > brew update Ignoring bigdecimal-1.3.2 because its extensions are not built. Try: gem…
ricardopereira
  • 11,118
  • 5
  • 63
  • 81
6
votes
0 answers

Debian 9, rbenv & ruby 1.9.3: openssl not available

I installed rbenv and tried to install ruby 1.9.3 on Debian 9 as instructed here https://github.com/rbenv/ruby-build/wiki OpenSSL bindings on Debian Because of OpenSSL incompatibility in Debian (7.5 and above), Ruby might fail to compile without…
tujuni
  • 96
  • 8
6
votes
2 answers

rbenv working but ruby version not changing

❯ rbenv version system (set by /Users/eric.nguyen/.rbenv/version) ❯ rbenv local 2.4.2 …
ericn
  • 12,476
  • 16
  • 84
  • 127
6
votes
1 answer

maintaining gems over time with rbenv & multiple projects

I've just switched from years of development with RVM to rbenv and there is one aspect of rbenv that I can't seem to wrap my head around: When I am working on multiple projects (each with their own dependencies) under the same version of Ruby and…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
6
votes
1 answer

Installing rails on Ubuntu Bash Windows 10

I am using Windows 10 Insider built with Bash enabled. lsb_release shows its Ubuntu 14.04 LTS. So, I was wondering finally I can install RoR on Windows 10 and not use other installers. Because they say its Ubuntu on Windows. I am following GoRails…
abhimanyuaryan
  • 3,882
  • 5
  • 41
  • 83
6
votes
3 answers

Installing Rails on Mac OS fails with several errors

I am trying to install Rails on my Mac OS v10.10.4 system, and it fails when I run brew install rbenv ruby-build. The error is: Error: Permission denied - /usr/local/etc/openssl Warning: Bottle installation failed: building from source. At the end…
rptwsthi
  • 10,094
  • 10
  • 68
  • 109
6
votes
2 answers

Rails 'parse_query' error on server in brand new app

I have installed on OS X 10.10.3: homebrew, command line tools, then installed ruby using rbenv: ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14] Rails 4.2.2 when I create a new app (with default sqlite database) and try to run it, it…
Neon_10
  • 711
  • 2
  • 7
  • 19
6
votes
1 answer

How to install a gem globally without sudo using rbenv?

I am using rbenv and I am trying to install sass without success. So, I installed rbenv via Homebrew, then Ruby 2.2 (rbenv install 2.2) and finally gem install sass, but I was unable to make sass available on my $PATH. Short on time, I sudo gem…
Jorge Bucaran
  • 5,588
  • 2
  • 30
  • 48