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
10
votes
8 answers

Error Installing Atomic

I'm trying to install gems to my new Ruby project using bundle install. I've set the version of Ruby using rbenv on my OS X 10.8.4 box. I get the following error: An error occurred while installing atomic (1.1.13), and Bundler cannot continue. Make…
curt
  • 4,422
  • 3
  • 42
  • 61
9
votes
3 answers

"bundle exec spring" not working with rbenv?

Why doesn't bundle exec spring work? I am already calling bundle exec and that returns an error. I am okay calling bundle exec all the time. (This is the solution to the possible duplicate question). I will not update my Gemfile via bundle update…
s12chung
  • 1,718
  • 1
  • 14
  • 29
9
votes
3 answers

Rails is not using my global Ruby version

I want to use Rails with Ruby 2.1.0, but it's using Ruby 1.9.3 (the system's version). I'm using rbenv to manage my Ruby versions. My steps were something along the lines of: $ rbenv install 2.1.0 $ rbenv global 2.1.0 $ sudo gem install rails -v…
Dennis
  • 56,821
  • 26
  • 143
  • 139
9
votes
2 answers

Running pod install from Xcode cocoapods plugin

I am trying to run a pod install command from the Xcode cocoapods plugin. When I run the update/install cocoapods command I get an error: /usr/bin/gem install cocoapods ERROR: While executing gem ... (Gem::FilePermissionError) You don't have…
StuartM
  • 6,743
  • 18
  • 84
  • 160
9
votes
3 answers

Rbenv not working

I installed ruby 2.0 into ~/.rbenv/versions last and now nothing but that is available $ rbenv versions system *ruby-1.9.3-p392 (set by /apps/test_app/.ruby-version) ruby-2.0.0-p0 $ ruby -v ruby 2.0.0.p0 $ env | grep…
cbron
  • 4,036
  • 3
  • 33
  • 40
9
votes
2 answers

LoadError: dlopen(digest/sha1.bundle): Symbol not found: _rb_Digest_SHA1_Finish

Ruby stopped working on my brother's machine recently. gem commands rails server rails console All failed with the following error: $ irb irb(main):001:0> require 'digest/sha1' LoadError:…
Erik Peterson
  • 4,281
  • 1
  • 22
  • 32
9
votes
2 answers

How to stop making tmux auto setting RBENV_VERSION

tmux is auto setting RBENV_VERSION when I start tmux... Anyone know how to stop it? Because it auto sets it, I need to do $ export RBENV_VERSION to unset it and make .ruby-version work. Thx.
Takehiro Adachi
  • 954
  • 1
  • 9
  • 22
9
votes
3 answers

Why is no Ruby script found in input (LoadError)?

Ruby is installed by rbenv. $ ruby -v ruby 1.9.3p327 (2012-11-10 revision 37606) [i686-linux] $ which ruby /home/user/.rbenv/shims/ruby $ which sass /home/user/.rbenv/shims/sass $ gem list *** LOCAL GEMS *** bigdecimal (1.1.0) bundler…
R.Atim
  • 367
  • 1
  • 7
  • 16
8
votes
2 answers

Moving to rbenv breaks passenger (nginx)

I moved from RVM to rbenv on my production server. I uninstalled rvm using "rvm implode" and installed rbenv, ruby 1.9.2 , rails, passenger and nginx-module. I have not modified my originlal nginx.conf apart from changing the passenger_root as…
Ved
  • 3,380
  • 6
  • 40
  • 51
8
votes
2 answers

rbenv ruby 2.7.2 installation fails: "BUILD FAILED"

I am getting this strange error while trying to install ruby 2.7.2 using rbenv. Does anybody know what the issue is? $ rbenv install 2.7.2 Installing ruby-2.7.2... BUILD FAILED (Ubuntu 20.04 using ruby-build 20201005-4-g4761049) Inspect or clean…
TomDogg
  • 3,803
  • 5
  • 33
  • 60
8
votes
1 answer

How to use Ruby 2.6.6 when rbenv can't find it?

I created a new Rails app (v5.2.4.3) using Ruby 2.7.1 and discovered the blizzard of "keyword parameter" warnings endemic in this release. rbenv install --list, for some reason, doesn't list Ruby versions beyond 2.4.0. I've manually installed 2.6.6…
Brian Piercy
  • 631
  • 1
  • 7
  • 22
8
votes
1 answer

Ruby 2.4 on Mac OS Mojave : image not found ... related to openssl.bundle

So i upgraded my Ruby to 2.4.9 on Mac OS Mojave. I'm having trouble gem-installing... proj$ gem install google-cloud-vision ERROR: Loading command: install (LoadError) …
Matthew
  • 2,035
  • 4
  • 25
  • 48
8
votes
3 answers

Rails 4.2 database.yml not reading rbenv-vars variables

My VPS has rbenv-vars installed, I've located .rbenv-vars file within config directory inside rails app. I pretend to load database password inside of it, but I'm doing something wrong, because rake db:create gives me a no-password error. Rake works…
Ricardo Castañeda
  • 5,746
  • 6
  • 28
  • 41
8
votes
3 answers

How to switch cocoapods (or other gem) version on command line?

There are some answers saying using gem 'cocoapods', '0.33.1' or gem 'pod', '0.33.1 but this does not work. ERROR: While executing gem ... (Gem::CommandLineError) Unknown command cocoapods, In one project I need to use 0.33.1, but 0.34.4 in…
fangmobile
  • 839
  • 8
  • 23
8
votes
4 answers

Trying to install ruby 2.1.2 with rbenv on OSX BUILD FAILED

So, as the title suggests, I'm trying to install ruby 2.1.2, altough I've tried to install other versions as well, and I'm getting the same errors. I'm running OSX 10.9.2. I've tried: Installing a fresh gcc compiler, via brew install…
wvm2008
  • 2,864
  • 4
  • 21
  • 25