SlideShare a Scribd company logo
1 of 17
RVM
Ruby Version Manager

       Brian Turnbull
  NH Ruby — 16 November 2009
Cut Rubies With Ease




 http://rvm.beginrescueend.com
    #rvm on irc.freenode.net
Getting Started

‣ Install as a Gem
‣ Clone Git repository
‣ Source tarball




                         Flickr: “Egg with directional shadow and background” by Tsja
                           http://www.flickr.com/photos/10451396@N00/337315801
Make it Work
## End of ~/.bash_profile
if [[ -s $HOME/.rvm/scripts/rvm ]] ; then
   source $HOME/.rvm/scripts/rvm
fi

## /etc/rvmrc
## ~/.rvmrc
export rvm_archflags="-arch x86_64"
export rvm_make_flags="-j 3"
export rvm_install_on_use_flag=1


                                                Flickr: “Martillo / Hammer” by Kaworu Koneru
                                      http://www.flickr.com/photos/kaworukoneru/2230794481
What Now?

Learn It   ➡   $ rvm list --all
 Live It   ➡   $ rvm install 1.8.7
Love It    ➡   $ rvm 1.8.7
What Just Happened?
$ rvm 1.8.7

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) ...

$ which ruby
/Users/brian/.rvm/ruby-1.8.7-p174/bin/ruby

$ rvm system

$ which ruby
/usr/bin/ruby
Be Specific
$ rvm list
   ruby-1.8.6-p383: ruby 1.8.6 (2009-08-04 patchlevel 383) ...
   ruby-1.8.7-p173: ruby 1.8.7 (2009-06-08 patchlevel 173) ...
=> ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) ...
=> (default) ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) ...
   system: ruby 1.8.7 (2008-08-11 patchlevel 72) ...

$ rvm 1.8.7-p173

$ ruby -v
ruby 1.8.7 (2009-06-08 patchlevel 173) ...

$ rvm 1.8.7

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) ...
Playing Favorites
$ rvm 1.8.7-p174 --default

$ rvm 1.8.6-p383

$ ruby -v
ruby 1.8.6 (2009-08-04 patchlevel 383) ...

$ rvm default

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) ...
Make It Shiny
$ rvm 1.8.7-p174

$ gem install net-ssh
Successfully installed net-ssh-2.0.15
1 gem installed

$ rvm 1.8.6-p383

$ irb
ruby-1.8.6-p383 > require 'net/ssh'
LoadError: no such file to load -- net/ssh
1.8.7
Gems

           Gems


         1.8.6
1.8.7
Gems   gem
             sync
                      Gems


                    1.8.6
1.8.7
Gems dg
      uem
        mps
          /yoa
            l ncd
                    Gems


                1.8.6
Named Gem Sets
                              1.8.7
    Compartmentalize a    Default     Gem
‣   set of gems under a
    Ruby interpreter
                           Gems       Set

                                Gem
                                Set
Named Gem Sets
                                1.8.7



                              t
                            Se
    Compartmentalize a     Default      Gem
‣
                           em
    set of gems under a     Gems        Set
    Ruby interpreter      G
                                  Gem
                                  Set
Tricks
$ rvm 1.8.6,1.8.7,1.9.1 rake spec
... lotsa passing tests ...

$ rvm 1.8.6,1.8.7,1.9.1 --json rake spec
... lotsa passing tests ...
... and a nice JSON summary ...

$ PS1="$PS1$(~/.rvm/bin/rvm-prompt) "

$ rvm update [--head]

$ bundle_dir = ENV["GEM_PATH"] || 
    %x{source ~/.rvm/scripts/rvm && rvm gemdir}
Demo!




                  Flickr: “Crash & Burn” by Handforged
    http://www.flickr.com/photos/handforged/292093553
RVM
Ruby Version Manager

       Brian Turnbull
  NH Ruby — 16 November 2009

More Related Content

What's hot

Kettunen, miaubiz fuzzing at scale and in style
Kettunen, miaubiz   fuzzing at scale and in styleKettunen, miaubiz   fuzzing at scale and in style
Kettunen, miaubiz fuzzing at scale and in styleDefconRussia
 
Vagrant are you still develop in a non-virtual environment-
Vagrant  are you still develop in a non-virtual environment-Vagrant  are you still develop in a non-virtual environment-
Vagrant are you still develop in a non-virtual environment-Anatoly Bubenkov
 
Torquebox - O melhor dos dois mundos
Torquebox - O melhor dos dois mundosTorquebox - O melhor dos dois mundos
Torquebox - O melhor dos dois mundosBruno Oliveira
 
Tech Talks - Fundamentos JavaScript
Tech Talks - Fundamentos JavaScriptTech Talks - Fundamentos JavaScript
Tech Talks - Fundamentos JavaScriptBVision
 
AMD SVMってなあに
AMD SVMってなあにAMD SVMってなあに
AMD SVMってなあにTakuya ASADA
 
Node.js for Rubists
Node.js for RubistsNode.js for Rubists
Node.js for RubistsSagiv Ofek
 
vert.x 3.1 - be reactive on the JVM but not only in Java
vert.x 3.1 - be reactive on the JVM but not only in Javavert.x 3.1 - be reactive on the JVM but not only in Java
vert.x 3.1 - be reactive on the JVM but not only in JavaClément Escoffier
 
Salt Stack - Subhankar Sengupta
Salt Stack - Subhankar SenguptaSalt Stack - Subhankar Sengupta
Salt Stack - Subhankar SenguptaDevOpsBangalore
 
Ravada VDI Eslibre
Ravada VDI EslibreRavada VDI Eslibre
Ravada VDI Eslibrefrankiejol
 
PHP Matsuri JIREI NIGHT お知らせメール
PHP Matsuri JIREI NIGHT お知らせメールPHP Matsuri JIREI NIGHT お知らせメール
PHP Matsuri JIREI NIGHT お知らせメールTakahiro Fujiwara
 
Intro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance TestingIntro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance TestingJean-Michel Garnier
 
Vagrant step-by-step guide for Beginners
Vagrant step-by-step guide for BeginnersVagrant step-by-step guide for Beginners
Vagrant step-by-step guide for BeginnersSagar Acharya
 
Eduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereEduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereStarTech Conference
 
Django district pip, virtualenv, virtualenv wrapper & more
Django district  pip, virtualenv, virtualenv wrapper & moreDjango district  pip, virtualenv, virtualenv wrapper & more
Django district pip, virtualenv, virtualenv wrapper & moreJacqueline Kazil
 
Free servlet hosting tutorial
Free servlet hosting tutorialFree servlet hosting tutorial
Free servlet hosting tutorialincensome
 

What's hot (20)

RabbitMQ for Perl mongers
RabbitMQ for Perl mongersRabbitMQ for Perl mongers
RabbitMQ for Perl mongers
 
Kettunen, miaubiz fuzzing at scale and in style
Kettunen, miaubiz   fuzzing at scale and in styleKettunen, miaubiz   fuzzing at scale and in style
Kettunen, miaubiz fuzzing at scale and in style
 
Ruby version manager
Ruby version managerRuby version manager
Ruby version manager
 
Vagrant are you still develop in a non-virtual environment-
Vagrant  are you still develop in a non-virtual environment-Vagrant  are you still develop in a non-virtual environment-
Vagrant are you still develop in a non-virtual environment-
 
Torquebox - O melhor dos dois mundos
Torquebox - O melhor dos dois mundosTorquebox - O melhor dos dois mundos
Torquebox - O melhor dos dois mundos
 
Tech Talks - Fundamentos JavaScript
Tech Talks - Fundamentos JavaScriptTech Talks - Fundamentos JavaScript
Tech Talks - Fundamentos JavaScript
 
AMD SVMってなあに
AMD SVMってなあにAMD SVMってなあに
AMD SVMってなあに
 
Node.js for Rubists
Node.js for RubistsNode.js for Rubists
Node.js for Rubists
 
vert.x 3.1 - be reactive on the JVM but not only in Java
vert.x 3.1 - be reactive on the JVM but not only in Javavert.x 3.1 - be reactive on the JVM but not only in Java
vert.x 3.1 - be reactive on the JVM but not only in Java
 
T.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - PreyT.Pollak y C.Yaconi - Prey
T.Pollak y C.Yaconi - Prey
 
Intro to introducing rust to ruby
Intro to introducing rust to rubyIntro to introducing rust to ruby
Intro to introducing rust to ruby
 
Salt Stack - Subhankar Sengupta
Salt Stack - Subhankar SenguptaSalt Stack - Subhankar Sengupta
Salt Stack - Subhankar Sengupta
 
Ravada VDI Eslibre
Ravada VDI EslibreRavada VDI Eslibre
Ravada VDI Eslibre
 
PHP Matsuri JIREI NIGHT お知らせメール
PHP Matsuri JIREI NIGHT お知らせメールPHP Matsuri JIREI NIGHT お知らせメール
PHP Matsuri JIREI NIGHT お知らせメール
 
Intro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance TestingIntro a RSpec, BDD, webapps User Acceptance Testing
Intro a RSpec, BDD, webapps User Acceptance Testing
 
Vagrant step-by-step guide for Beginners
Vagrant step-by-step guide for BeginnersVagrant step-by-step guide for Beginners
Vagrant step-by-step guide for Beginners
 
Eduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhereEduardo Silva - monkey http-server everywhere
Eduardo Silva - monkey http-server everywhere
 
Django district pip, virtualenv, virtualenv wrapper & more
Django district  pip, virtualenv, virtualenv wrapper & moreDjango district  pip, virtualenv, virtualenv wrapper & more
Django district pip, virtualenv, virtualenv wrapper & more
 
Free servlet hosting tutorial
Free servlet hosting tutorialFree servlet hosting tutorial
Free servlet hosting tutorial
 
TsWorkflow
TsWorkflowTsWorkflow
TsWorkflow
 

Viewers also liked

Best baby cribs
Best baby cribsBest baby cribs
Best baby cribsSeo Expert
 
Companies financial result updated on 25 february 2016
Companies financial result updated on 25 february 2016Companies financial result updated on 25 february 2016
Companies financial result updated on 25 february 2016RAFI SECURITIES (PVT.)LTD.
 
Teacher lecture lesson 1
Teacher lecture lesson 1Teacher lecture lesson 1
Teacher lecture lesson 1msmurphydance
 
Merchandising voor 2020
Merchandising voor 2020Merchandising voor 2020
Merchandising voor 2020Jerry J. Stam
 
Social Media Governance with Brandle
Social Media Governance with BrandleSocial Media Governance with Brandle
Social Media Governance with BrandleJanet Church
 
Companies financial result updated on 17 september 2015
Companies financial result updated on 17 september 2015Companies financial result updated on 17 september 2015
Companies financial result updated on 17 september 2015RAFI SECURITIES (PVT.)LTD.
 
Power of prizes to drive innovation
Power of prizes to drive innovationPower of prizes to drive innovation
Power of prizes to drive innovationcraigslist_fndn
 
Bahasan 2 klasifikasi dan pemilihan media pembelajaran
Bahasan 2 klasifikasi dan pemilihan media pembelajaranBahasan 2 klasifikasi dan pemilihan media pembelajaran
Bahasan 2 klasifikasi dan pemilihan media pembelajaranjamilbrou
 
Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...
Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...
Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...MEYS, MŠMT in Czech
 
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeksBeginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeksJinTaek Seo
 
Temas de investigación 6° 1er periodo 2017
Temas de investigación 6°  1er periodo 2017Temas de investigación 6°  1er periodo 2017
Temas de investigación 6° 1er periodo 2017jhonathanmaradey
 
Honors throwing ball in air
Honors   throwing ball in airHonors   throwing ball in air
Honors throwing ball in airstephm32
 

Viewers also liked (19)

35 k+ñre gyldenl+©ve_fuglsangudgravningen
35 k+ñre gyldenl+©ve_fuglsangudgravningen35 k+ñre gyldenl+©ve_fuglsangudgravningen
35 k+ñre gyldenl+©ve_fuglsangudgravningen
 
Best baby cribs
Best baby cribsBest baby cribs
Best baby cribs
 
Companies financial result updated on 25 february 2016
Companies financial result updated on 25 february 2016Companies financial result updated on 25 february 2016
Companies financial result updated on 25 february 2016
 
Teacher lecture lesson 1
Teacher lecture lesson 1Teacher lecture lesson 1
Teacher lecture lesson 1
 
Merchandising voor 2020
Merchandising voor 2020Merchandising voor 2020
Merchandising voor 2020
 
Social Media Governance with Brandle
Social Media Governance with BrandleSocial Media Governance with Brandle
Social Media Governance with Brandle
 
Companies financial result updated on 17 september 2015
Companies financial result updated on 17 september 2015Companies financial result updated on 17 september 2015
Companies financial result updated on 17 september 2015
 
26 michael borrelund+©_tietgenbyen
26 michael borrelund+©_tietgenbyen26 michael borrelund+©_tietgenbyen
26 michael borrelund+©_tietgenbyen
 
Příklad bibliometrické zprávy
Příklad bibliometrické zprávyPříklad bibliometrické zprávy
Příklad bibliometrické zprávy
 
Power of prizes to drive innovation
Power of prizes to drive innovationPower of prizes to drive innovation
Power of prizes to drive innovation
 
Bahasan 2 klasifikasi dan pemilihan media pembelajaran
Bahasan 2 klasifikasi dan pemilihan media pembelajaranBahasan 2 klasifikasi dan pemilihan media pembelajaran
Bahasan 2 klasifikasi dan pemilihan media pembelajaran
 
Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...
Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...
Studie proveditelnosti institucionálního zajištění navrhovaného systému hodno...
 
Distribution Planning
Distribution PlanningDistribution Planning
Distribution Planning
 
Financial Ratios
Financial RatiosFinancial Ratios
Financial Ratios
 
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeksBeginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
Beginning direct3d gameprogramming06_firststepstoanimation_20161115_jintaeks
 
Green solvents
Green solventsGreen solvents
Green solvents
 
By two project ict
By two project ictBy two project ict
By two project ict
 
Temas de investigación 6° 1er periodo 2017
Temas de investigación 6°  1er periodo 2017Temas de investigación 6°  1er periodo 2017
Temas de investigación 6° 1er periodo 2017
 
Honors throwing ball in air
Honors   throwing ball in airHonors   throwing ball in air
Honors throwing ball in air
 

Similar to RVM - NHRuby Nov 2009

Merb The Super Bike Of Frameworks
Merb The Super Bike Of FrameworksMerb The Super Bike Of Frameworks
Merb The Super Bike Of FrameworksRowan Hick
 
Let's Make a Gem
Let's Make a GemLet's Make a Gem
Let's Make a GemBen Morris
 
The Future of Dependency Management for Ruby
The Future of Dependency Management for RubyThe Future of Dependency Management for Ruby
The Future of Dependency Management for RubyHiroshi SHIBATA
 
Security testing with gauntlt
Security testing with gauntltSecurity testing with gauntlt
Security testing with gauntltJames Wickett
 
Ruby gemsパッケージの作り方
Ruby gemsパッケージの作り方Ruby gemsパッケージの作り方
Ruby gemsパッケージの作り方Yamamoto Kazuhisa
 
Your first sinatra app
Your first sinatra appYour first sinatra app
Your first sinatra appRubyc Slides
 
FPM at the Ruby Drink-up of Sophia, September 2011
FPM at the Ruby Drink-up of Sophia, September 2011FPM at the Ruby Drink-up of Sophia, September 2011
FPM at the Ruby Drink-up of Sophia, September 2011rivierarb
 
The Future of JRuby - Baruco 2013
The Future of JRuby - Baruco 2013The Future of JRuby - Baruco 2013
The Future of JRuby - Baruco 2013Charles Nutter
 
Crate Packaging Standalone Ruby Applications
Crate  Packaging Standalone Ruby ApplicationsCrate  Packaging Standalone Ruby Applications
Crate Packaging Standalone Ruby Applicationsrailsconf
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTJoshua Thijssen
 
Automated Java Deployments With Rpm
Automated Java Deployments With RpmAutomated Java Deployments With Rpm
Automated Java Deployments With RpmMartin Jackson
 
Automated Releases to RubyGems.org using Travis-CI.org
Automated Releases to RubyGems.org using Travis-CI.orgAutomated Releases to RubyGems.org using Travis-CI.org
Automated Releases to RubyGems.org using Travis-CI.orgFrancis Luong
 
Redmine on amazon ec2
Redmine on amazon ec2Redmine on amazon ec2
Redmine on amazon ec2Ikuru Kanuma
 
RVM and Ruby Interpreters @ RSC Roma 03/2011
RVM and Ruby Interpreters @ RSC Roma 03/2011RVM and Ruby Interpreters @ RSC Roma 03/2011
RVM and Ruby Interpreters @ RSC Roma 03/2011Marcello Barnaba
 
Deploying JRuby Web Applications
Deploying JRuby Web ApplicationsDeploying JRuby Web Applications
Deploying JRuby Web ApplicationsJoe Kutner
 

Similar to RVM - NHRuby Nov 2009 (20)

Merb The Super Bike Of Frameworks
Merb The Super Bike Of FrameworksMerb The Super Bike Of Frameworks
Merb The Super Bike Of Frameworks
 
Let's Make a Gem
Let's Make a GemLet's Make a Gem
Let's Make a Gem
 
The Future of Dependency Management for Ruby
The Future of Dependency Management for RubyThe Future of Dependency Management for Ruby
The Future of Dependency Management for Ruby
 
EC2
EC2EC2
EC2
 
Security testing with gauntlt
Security testing with gauntltSecurity testing with gauntlt
Security testing with gauntlt
 
Ruby gemsパッケージの作り方
Ruby gemsパッケージの作り方Ruby gemsパッケージの作り方
Ruby gemsパッケージの作り方
 
Your first sinatra app
Your first sinatra appYour first sinatra app
Your first sinatra app
 
FPM at the Ruby Drink-up of Sophia, September 2011
FPM at the Ruby Drink-up of Sophia, September 2011FPM at the Ruby Drink-up of Sophia, September 2011
FPM at the Ruby Drink-up of Sophia, September 2011
 
The Future of JRuby - Baruco 2013
The Future of JRuby - Baruco 2013The Future of JRuby - Baruco 2013
The Future of JRuby - Baruco 2013
 
Crate Packaging Standalone Ruby Applications
Crate  Packaging Standalone Ruby ApplicationsCrate  Packaging Standalone Ruby Applications
Crate Packaging Standalone Ruby Applications
 
Deploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APTDeploying and maintaining your software with RPM/APT
Deploying and maintaining your software with RPM/APT
 
Automated Java Deployments With Rpm
Automated Java Deployments With RpmAutomated Java Deployments With Rpm
Automated Java Deployments With Rpm
 
Automated Releases to RubyGems.org using Travis-CI.org
Automated Releases to RubyGems.org using Travis-CI.orgAutomated Releases to RubyGems.org using Travis-CI.org
Automated Releases to RubyGems.org using Travis-CI.org
 
Redmine on amazon ec2
Redmine on amazon ec2Redmine on amazon ec2
Redmine on amazon ec2
 
grate techniques
grate techniquesgrate techniques
grate techniques
 
Chennai.rb feb 2016
Chennai.rb   feb 2016Chennai.rb   feb 2016
Chennai.rb feb 2016
 
RVM and Ruby Interpreters @ RSC Roma 03/2011
RVM and Ruby Interpreters @ RSC Roma 03/2011RVM and Ruby Interpreters @ RSC Roma 03/2011
RVM and Ruby Interpreters @ RSC Roma 03/2011
 
Deploying JRuby Web Applications
Deploying JRuby Web ApplicationsDeploying JRuby Web Applications
Deploying JRuby Web Applications
 
Setup ruby
Setup rubySetup ruby
Setup ruby
 
Capistrano
CapistranoCapistrano
Capistrano
 

Recently uploaded

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 

Recently uploaded (20)

Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 

RVM - NHRuby Nov 2009

  • 1. RVM Ruby Version Manager Brian Turnbull NH Ruby — 16 November 2009
  • 2. Cut Rubies With Ease http://rvm.beginrescueend.com #rvm on irc.freenode.net
  • 3. Getting Started ‣ Install as a Gem ‣ Clone Git repository ‣ Source tarball Flickr: “Egg with directional shadow and background” by Tsja http://www.flickr.com/photos/10451396@N00/337315801
  • 4. Make it Work ## End of ~/.bash_profile if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm fi ## /etc/rvmrc ## ~/.rvmrc export rvm_archflags="-arch x86_64" export rvm_make_flags="-j 3" export rvm_install_on_use_flag=1 Flickr: “Martillo / Hammer” by Kaworu Koneru http://www.flickr.com/photos/kaworukoneru/2230794481
  • 5. What Now? Learn It ➡ $ rvm list --all Live It ➡ $ rvm install 1.8.7 Love It ➡ $ rvm 1.8.7
  • 6. What Just Happened? $ rvm 1.8.7 $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) ... $ which ruby /Users/brian/.rvm/ruby-1.8.7-p174/bin/ruby $ rvm system $ which ruby /usr/bin/ruby
  • 7. Be Specific $ rvm list ruby-1.8.6-p383: ruby 1.8.6 (2009-08-04 patchlevel 383) ... ruby-1.8.7-p173: ruby 1.8.7 (2009-06-08 patchlevel 173) ... => ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) ... => (default) ruby-1.8.7-p174: ruby 1.8.7 (2009-06-12 patchlevel 174) ... system: ruby 1.8.7 (2008-08-11 patchlevel 72) ... $ rvm 1.8.7-p173 $ ruby -v ruby 1.8.7 (2009-06-08 patchlevel 173) ... $ rvm 1.8.7 $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) ...
  • 8. Playing Favorites $ rvm 1.8.7-p174 --default $ rvm 1.8.6-p383 $ ruby -v ruby 1.8.6 (2009-08-04 patchlevel 383) ... $ rvm default $ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) ...
  • 9. Make It Shiny $ rvm 1.8.7-p174 $ gem install net-ssh Successfully installed net-ssh-2.0.15 1 gem installed $ rvm 1.8.6-p383 $ irb ruby-1.8.6-p383 > require 'net/ssh' LoadError: no such file to load -- net/ssh
  • 10. 1.8.7 Gems Gems 1.8.6
  • 11. 1.8.7 Gems gem sync Gems 1.8.6
  • 12. 1.8.7 Gems dg uem mps /yoa l ncd Gems 1.8.6
  • 13. Named Gem Sets 1.8.7 Compartmentalize a Default Gem ‣ set of gems under a Ruby interpreter Gems Set Gem Set
  • 14. Named Gem Sets 1.8.7 t Se Compartmentalize a Default Gem ‣ em set of gems under a Gems Set Ruby interpreter G Gem Set
  • 15. Tricks $ rvm 1.8.6,1.8.7,1.9.1 rake spec ... lotsa passing tests ... $ rvm 1.8.6,1.8.7,1.9.1 --json rake spec ... lotsa passing tests ... ... and a nice JSON summary ... $ PS1="$PS1$(~/.rvm/bin/rvm-prompt) " $ rvm update [--head] $ bundle_dir = ENV["GEM_PATH"] || %x{source ~/.rvm/scripts/rvm && rvm gemdir}
  • 16. Demo! Flickr: “Crash & Burn” by Handforged http://www.flickr.com/photos/handforged/292093553
  • 17. RVM Ruby Version Manager Brian Turnbull NH Ruby — 16 November 2009