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
11
votes
1 answer

How can I default to a login shell for Jenkins shell execution

I want to use rvm (or rbenv/chruby for that matter) to select different ruby versions from within my Jenkins jobs. By default, Jenkins will use /bin/sh, which on Ubuntu, is dash. For this to change, I can add #!/bin/bash -l To the top of every…
Marc Seeger
  • 2,717
  • 4
  • 28
  • 32
11
votes
2 answers

-bash: ruby: command not found

hyperrjas@serv1:~$ rbenv global 1.9.3-p392 hyperrjas@serv1:~$ rbenv local 1.9.3-p392 hyperrjas@serv1:~$ which ruby-build /usr/local/bin/ruby-build hyperrjas@serv1:~$ rbenv versions * 1.9.3-p392 (set by…
hyperrjas
  • 10,666
  • 25
  • 99
  • 198
10
votes
1 answer

Can't install RMagick with rbenv

I'm using rbenv on my Ubuntu 10.04 server and I already installed ImageMagick, but I can't get RMagick to install successfully. I get the following error message Can't install RMagick 2.13.1. Can't find MagickWand.h Any ideas?
Adam Albrecht
  • 6,680
  • 4
  • 31
  • 35
10
votes
3 answers

where is ruby 3.0.0 on rbenv

rbenv install --list-all shows me, among many other things of course, 3.0.0-dev 3.0.0-preview1 3.0.0-preview2 But where is 3.0.0 itself, the actual final release? I'd like to try it out. Not all announced features made it into the previews so I…
matt
  • 515,959
  • 87
  • 875
  • 1,141
10
votes
5 answers

Big Sur - Ruby - Cannot load such file — Interrupted system call

After upgrading to Big Sur I am getting errors running my Ruby server rotating through different files either with cannot load such file -- or Interrupted system call -- These errors rotate various files each time I run bundle exec rackup. I…
ct014330
  • 101
  • 1
  • 4
10
votes
3 answers

Ruby install aborted due to missing extensions: openssl, readline, zlib compilation error

I'm using macOs Catalina. I'm trying to install older version of Ruby (1.9.3, 2.1.2) via rbenv. However, I keep getting the errors below, when trying installing older version. *It was fine when installing 2.4 or newer. I already try brew install…
hans1125
  • 357
  • 8
  • 15
10
votes
2 answers

rbenv install --list not showing all versions on ubuntu 18.04 LTS (ruby 2.7.1)

In the attempt to install ruby 2.7.1 using rbenv I noticed the version was not listed on my ubuntu 18.04 $ rbenv install -l | grep 2.7. 2.7.0-dev 2.7.0-preview1 jruby-9.2.7.0 rbx-2.71828182
Bogdan
  • 453
  • 4
  • 16
10
votes
3 answers

.zshenv:2: command not found: rbenv

When switching from bash to zsh, I looked up how to resolve an issue with my rbenv folder not being used correctly by zsh and found this: $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv $ echo 'eval "$(rbenv init -)"' >> ~/.zshenv $ echo…
ahrampy
  • 173
  • 2
  • 2
  • 9
10
votes
2 answers

rbenv, bundler, unicorn issue

I use rbenv and bundler for my ruby application environment. My 'bundle show': bundle show Gems included by the bundle: * activemodel (3.2.13) * activerecord (3.2.13) * activesupport (3.2.13) * addressable (2.3.4) * arel (3.0.2) *…
Danila Ladner
  • 863
  • 1
  • 7
  • 16
10
votes
1 answer

Error to bundle install "yajl-ruby"

noob here, I'm trying to install octopress but when i run rbenv exec bundle install i got this error. Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current…
Imam Digmi
  • 452
  • 4
  • 14
10
votes
2 answers

Bundle install not using rbenv local Ruby version

I am trying to install gems for a new Rails project using bundler: $ bundle install --path I've set my local Ruby version to 2.3.1 using rbenv, but bundler is still using my system Ruby (2.0.0). $ rbenv local 2.3.1 $ echo…
Jen Pierce
  • 103
  • 1
  • 4
10
votes
2 answers

rvm and rbenv on the same machine

I traditionally have used rbenv for all my personal projects on my personal laptop without issue and like it. However I need to start working with a codebase (rails) at work and we use rvm on all our work laptops. Is there any way to get rvm and…
nulltek
  • 3,247
  • 9
  • 44
  • 94
10
votes
1 answer

OpenSSL can't load library with gem rubygems or brew or bundle

I use brew 0.9.5, which with I installed rbenv 0.4.0 and ruby-build for a ruby 2.1.2. Haven't touched anything since a while, and after few osx updates : bundle Gives…
gdurelle
  • 2,079
  • 22
  • 38
10
votes
2 answers

Head usage unknown option -1 / -n error. Possibly ruby related

I have a recurring problem when starting the terminal in OSX 10.9.1. Every time I start the terminal I get the following repeated at least 30 times Unknown option: 1 Usage: head [-options] ... -m use method for the request (default…
Steve
  • 988
  • 1
  • 12
  • 25
10
votes
2 answers

How can I stop homebrew from complaining about *-config files in $PATH?

I get the following error message with brew doctor $ brew doctor Warning: "config" scripts exist outside your system or Homebrew directories. `./configure` scripts often look for *-config scripts to determine if software packages are installed, and…
ayckoster
  • 6,707
  • 6
  • 32
  • 45