SlideShare uma empresa Scribd logo
1 de 8
Ruby Environment: An Excellent
          RVM Alternative
There are two commonly used tools for
managing multiple versions of Ruby installed
on one computer:
●   Ruby Version Manager (RVM)
●   Ruby Environment (rbenv)
RVM: More Features
●   RVM is by far the most popular and is
    somewhat easier to get started with, since
    nearly all the tutorials are written for it.
●   It has many powerful, advanced features.
       –   Gemsets
       –   Install/uninstall Rubies
RVM Does Many Things
●   RVM has many features, some of which
    makes some significant changes to your
    shell.
●   Some of those changes alarmed a few
    members of the Ruby community,
    particularly the overriding of the 'cd'
    command. This was one of the reasons
    why rbenv was created.
Ruby Version Management in Rbenv
Rbenv: Do One Thing; Do it Well
●   Rbenv only manages multiple rubies
    installed on your machine.
●   You may either install rubies manually or
    use a separate tool called ruby-build.
Which Should I Use?
●   As long as RVM is maintained and you
    need Gemsets, RVM is probably the better
    choice.
●   If you prefer the Unix philosophy that each
    tool should do one thing and do it well, you
    will probably prefer rbenv.
●   Rbenv may outlive RVM in the long run.
       –   It's easier to maintain single-purpose
              projects
Additional Considerations
●   A quirk of rbenv is that if you install a gem
    that includes 'binaries' (or any generally
    available command line scripts), you need
    to run `rbenv rehash`, or your newly
    installed gems/command line scripts won't
    work.
        –   This can be annoying.
●   Rbenv does not support Gemsets
    (although you can use rbenv-gemset to get
    some basic gemset-like features).
        –   If you need Gemsets, RVM is best.
Tell Me More
●   Github rbenv home:
    https://github.com/sstephenson/rbenv
●   RVM: https://rvm.io/
●   A nice intro to rbenv:
    http://www.rubyinside.com/rbenv-a-simple-new

Mais conteúdo relacionado

Mais procurados

SFPHP - Vagrant Lightning Talk
SFPHP - Vagrant Lightning TalkSFPHP - Vagrant Lightning Talk
SFPHP - Vagrant Lightning Talk
odandia
 
Useful Vim Plugins
Useful Vim PluginsUseful Vim Plugins
Useful Vim Plugins
anveo
 
appborg, coffeesurgeon, moof, logging-system
appborg, coffeesurgeon, moof, logging-systemappborg, coffeesurgeon, moof, logging-system
appborg, coffeesurgeon, moof, logging-system
endian7000
 
Scale like a pro with Gearman
Scale like a pro with GearmanScale like a pro with Gearman
Scale like a pro with Gearman
Amal Raghav
 
Load2010 Kvm Tutorial
Load2010 Kvm TutorialLoad2010 Kvm Tutorial
Load2010 Kvm Tutorial
loadays
 

Mais procurados (20)

SFPHP - Vagrant Lightning Talk
SFPHP - Vagrant Lightning TalkSFPHP - Vagrant Lightning Talk
SFPHP - Vagrant Lightning Talk
 
Frontend Build Tools - CC FE & UX
Frontend Build Tools - CC FE & UXFrontend Build Tools - CC FE & UX
Frontend Build Tools - CC FE & UX
 
First Step towards WebAssembly with Rust
First Step towards WebAssembly with RustFirst Step towards WebAssembly with Rust
First Step towards WebAssembly with Rust
 
Neosnippet.vim + Deoppet.nvim in Vim conf 2017
Neosnippet.vim + Deoppet.nvim in Vim conf 2017Neosnippet.vim + Deoppet.nvim in Vim conf 2017
Neosnippet.vim + Deoppet.nvim in Vim conf 2017
 
Useful Vim Plugins
Useful Vim PluginsUseful Vim Plugins
Useful Vim Plugins
 
#2 Hanoi Magento Meetup - Part 2: Knockout JS
#2 Hanoi Magento Meetup - Part 2: Knockout JS#2 Hanoi Magento Meetup - Part 2: Knockout JS
#2 Hanoi Magento Meetup - Part 2: Knockout JS
 
Minitest
MinitestMinitest
Minitest
 
Gearman, Supervisor and PHP - Job Management with Sanity!
Gearman, Supervisor and PHP - Job Management with Sanity!Gearman, Supervisor and PHP - Job Management with Sanity!
Gearman, Supervisor and PHP - Job Management with Sanity!
 
Lightning talk: vagrant-php
Lightning talk: vagrant-phpLightning talk: vagrant-php
Lightning talk: vagrant-php
 
Nuxeo and JavaScript
Nuxeo and JavaScriptNuxeo and JavaScript
Nuxeo and JavaScript
 
High Fidelity Games: Real Examples, Best Practices ... | Oleksii Vasylenko
High Fidelity Games: Real Examples, Best Practices ... | Oleksii VasylenkoHigh Fidelity Games: Real Examples, Best Practices ... | Oleksii Vasylenko
High Fidelity Games: Real Examples, Best Practices ... | Oleksii Vasylenko
 
appborg, coffeesurgeon, moof, logging-system
appborg, coffeesurgeon, moof, logging-systemappborg, coffeesurgeon, moof, logging-system
appborg, coffeesurgeon, moof, logging-system
 
Laravel mix
Laravel mixLaravel mix
Laravel mix
 
Scale like a pro with Gearman
Scale like a pro with GearmanScale like a pro with Gearman
Scale like a pro with Gearman
 
An Overview of the Open Source Vulkan Driver for Raspberry Pi 4
An Overview of the Open Source Vulkan Driver for Raspberry Pi 4An Overview of the Open Source Vulkan Driver for Raspberry Pi 4
An Overview of the Open Source Vulkan Driver for Raspberry Pi 4
 
Introducción a Nginx y PHP FPM
Introducción a Nginx y PHP FPMIntroducción a Nginx y PHP FPM
Introducción a Nginx y PHP FPM
 
React - поглянемо по іншому на V в MVC
React - поглянемо по іншому на V в MVCReact - поглянемо по іншому на V в MVC
React - поглянемо по іншому на V в MVC
 
AS7
AS7AS7
AS7
 
Web assembly: a brief overview
Web assembly: a brief overviewWeb assembly: a brief overview
Web assembly: a brief overview
 
Load2010 Kvm Tutorial
Load2010 Kvm TutorialLoad2010 Kvm Tutorial
Load2010 Kvm Tutorial
 

Destaque

Destaque (7)

Ruby on Rails for beginners
Ruby on Rails for beginnersRuby on Rails for beginners
Ruby on Rails for beginners
 
RSpec 讓你愛上寫測試
RSpec 讓你愛上寫測試RSpec 讓你愛上寫測試
RSpec 讓你愛上寫測試
 
Learn BEM: CSS Naming Convention
Learn BEM: CSS Naming ConventionLearn BEM: CSS Naming Convention
Learn BEM: CSS Naming Convention
 
How to Build a Dynamic Social Media Plan
How to Build a Dynamic Social Media PlanHow to Build a Dynamic Social Media Plan
How to Build a Dynamic Social Media Plan
 
SEO: Getting Personal
SEO: Getting PersonalSEO: Getting Personal
SEO: Getting Personal
 
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika AldabaLightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
 
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job? Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
 

Semelhante a Rbenv

Developing Rails Apps in Technical Isolation
Developing Rails Apps in Technical IsolationDeveloping Rails Apps in Technical Isolation
Developing Rails Apps in Technical Isolation
Jesus Jackson
 

Semelhante a Rbenv (20)

03 ruby environment
03 ruby environment03 ruby environment
03 ruby environment
 
An introduction to the ruby ecosystem
An introduction to the ruby ecosystemAn introduction to the ruby ecosystem
An introduction to the ruby ecosystem
 
2 Basics
2 Basics2 Basics
2 Basics
 
L R U G - JRuby
L R U G - JRubyL R U G - JRuby
L R U G - JRuby
 
Merb For The Enterprise
Merb For The EnterpriseMerb For The Enterprise
Merb For The Enterprise
 
How To Install Rails & Nginx with Passenger on Ubuntu
How To Install Rails & Nginx with Passenger on UbuntuHow To Install Rails & Nginx with Passenger on Ubuntu
How To Install Rails & Nginx with Passenger on Ubuntu
 
Ruby Setup
Ruby SetupRuby Setup
Ruby Setup
 
RoR app screencast
RoR app screencastRoR app screencast
RoR app screencast
 
Developing Rails Apps in Technical Isolation
Developing Rails Apps in Technical IsolationDeveloping Rails Apps in Technical Isolation
Developing Rails Apps in Technical Isolation
 
How fast can you onboard a new team member with VAGRANT ?
How fast can you onboard a new team member with VAGRANT ?How fast can you onboard a new team member with VAGRANT ?
How fast can you onboard a new team member with VAGRANT ?
 
rubyonrails
rubyonrailsrubyonrails
rubyonrails
 
rubyonrails
rubyonrailsrubyonrails
rubyonrails
 
RoR (Ruby on Rails)
RoR (Ruby on Rails)RoR (Ruby on Rails)
RoR (Ruby on Rails)
 
Merb presentation at ORUG
Merb presentation at ORUGMerb presentation at ORUG
Merb presentation at ORUG
 
Rails onCpanel
Rails onCpanelRails onCpanel
Rails onCpanel
 
The Future of library dependency manageement of Ruby
The Future of library dependency manageement of RubyThe Future of library dependency manageement of Ruby
The Future of library dependency manageement of Ruby
 
The future of the php development environment
The future of the php development environmentThe future of the php development environment
The future of the php development environment
 
Using rbenv in Production
Using rbenv in ProductionUsing rbenv in Production
Using rbenv in Production
 
Ruby on Rails
Ruby on RailsRuby on Rails
Ruby on Rails
 
Drupal 8 - Improving your development workflow
Drupal 8 - Improving your development workflowDrupal 8 - Improving your development workflow
Drupal 8 - Improving your development workflow
 

Rbenv

  • 1. Ruby Environment: An Excellent RVM Alternative There are two commonly used tools for managing multiple versions of Ruby installed on one computer: ● Ruby Version Manager (RVM) ● Ruby Environment (rbenv)
  • 2. RVM: More Features ● RVM is by far the most popular and is somewhat easier to get started with, since nearly all the tutorials are written for it. ● It has many powerful, advanced features. – Gemsets – Install/uninstall Rubies
  • 3. RVM Does Many Things ● RVM has many features, some of which makes some significant changes to your shell. ● Some of those changes alarmed a few members of the Ruby community, particularly the overriding of the 'cd' command. This was one of the reasons why rbenv was created.
  • 5. Rbenv: Do One Thing; Do it Well ● Rbenv only manages multiple rubies installed on your machine. ● You may either install rubies manually or use a separate tool called ruby-build.
  • 6. Which Should I Use? ● As long as RVM is maintained and you need Gemsets, RVM is probably the better choice. ● If you prefer the Unix philosophy that each tool should do one thing and do it well, you will probably prefer rbenv. ● Rbenv may outlive RVM in the long run. – It's easier to maintain single-purpose projects
  • 7. Additional Considerations ● A quirk of rbenv is that if you install a gem that includes 'binaries' (or any generally available command line scripts), you need to run `rbenv rehash`, or your newly installed gems/command line scripts won't work. – This can be annoying. ● Rbenv does not support Gemsets (although you can use rbenv-gemset to get some basic gemset-like features). – If you need Gemsets, RVM is best.
  • 8. Tell Me More ● Github rbenv home: https://github.com/sstephenson/rbenv ● RVM: https://rvm.io/ ● A nice intro to rbenv: http://www.rubyinside.com/rbenv-a-simple-new