Difference between revisions of "Rbenv"

From ArchWiki
Jump to: navigation, search
m (Ruby 2.x.x: added 2.0.0 to the list of versions which need the patch)
m (This error can also occur on version 2.2.2)
Line 22: Line 22:
 
=== Ruby 2.x.x ===
 
=== Ruby 2.x.x ===
  
Installation of Ruby 2.0.0, 2.1.4, 2.1.6, 2.1.7, and 2.2.3 may show this error
+
Installation of Ruby 2.0.0, 2.1.4, 2.1.6, 2.1.7, 2.2.2 and 2.2.3 may show this error
  
 
   ossl_ssl.c:141:27: error: ‘SSLv3_method’ undeclared here (not in a function)
 
   ossl_ssl.c:141:27: error: ‘SSLv3_method’ undeclared here (not in a function)

Revision as of 12:47, 22 August 2016

rbenv (Simple Ruby Version Management) lets you easily switch between multiple versions of Ruby. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.

Another tool to be used for the same purpose is RVM.

Installation

You can install rbenvAUR from the AUR.

Plugins

rbenv can be extended via a plugin system, and the rbenv wiki includes a list of useful plugins. The ruby-build plugin is especially useful, as it allows you to install Ruby versions with the rbenv install command. You can install ruby-buildAUR from the AUR.

Troubleshooting

Ruby 2.x.x

Installation of Ruby 2.0.0, 2.1.4, 2.1.6, 2.1.7, 2.2.2 and 2.2.3 may show this error

 ossl_ssl.c:141:27: error: ‘SSLv3_method’ undeclared here (not in a function)

This can be solved using the patch as described here

 curl -fsSL https://gist.github.com/mislav/055441129184a1512bb5.txt | rbenv install --patch 2.2.3

External links