Skip to content

Instantly share code, notes, and snippets.

@blacktm
Last active November 28, 2024 20:35
  • Select an option

Select an option

Revisions

  1. blacktm revised this gist Dec 26, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    # --------------------------------------------------------------------------------------------

    # Set the Ruby version you want to install
    RUBY_VERSION=3.1.3
    RUBY_VERSION=3.3.0

    # Welcome message
    echo -e "
  2. blacktm revised this gist Dec 8, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    # --------------------------------------------------------------------------------------------

    # Set the Ruby version you want to install
    RUBY_VERSION=3.1.2
    RUBY_VERSION=3.1.3

    # Welcome message
    echo -e "
  3. blacktm revised this gist Apr 18, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    # --------------------------------------------------------------------------------------------

    # Set the Ruby version you want to install
    RUBY_VERSION=3.1.1
    RUBY_VERSION=3.1.2

    # Welcome message
    echo -e "
  4. blacktm revised this gist Mar 22, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,7 +50,7 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    # Install dependencies
    # See: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm6 libgdbm-dev libdb-dev

    # Install Ruby, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install $RUBY_VERSION --verbose
  5. blacktm revised this gist Mar 22, 2022. No changes.
  6. blacktm revised this gist Mar 22, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    # --------------------------------------------------------------------------------------------

    # Set the Ruby version you want to install
    RUBY_VERSION=3.1.0
    RUBY_VERSION=3.1.1

    # Welcome message
    echo -e "
  7. blacktm revised this gist Dec 28, 2021. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,9 @@
    # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
    # --------------------------------------------------------------------------------------------

    # Set the Ruby version you want to install
    RUBY_VERSION=3.1.0

    # Welcome message
    echo -e "
    This will install Ruby using rbenv/ruby-build.
    @@ -50,10 +53,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 3.1.0 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install $RUBY_VERSION --verbose

    # Set Ruby as the global default
    rbenv global 3.1.0
    rbenv global $RUBY_VERSION

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  8. blacktm revised this gist Dec 28, 2021. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    #!/bin/bash

    # --------------------------------------------------------------------------------------------
    # Installs Ruby 3.0 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    # Installs Ruby using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    #
    # Run from the web:
    # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
    # --------------------------------------------------------------------------------------------

    # Welcome message
    echo -e "
    This will install Ruby 3.0 using rbenv/ruby-build.
    This will install Ruby using rbenv/ruby-build.
    It will take about 2 hours to compile on the original Raspberry Pi,
    35 minutes on the second generation, and 16 minutes on the third.\n"
    @@ -49,11 +49,11 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 3.0, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 3.0.3 --verbose
    # Install Ruby, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 3.1.0 --verbose

    # Set Ruby 3.0 as the global default
    rbenv global 3.0.3
    # Set Ruby as the global default
    rbenv global 3.1.0

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  9. blacktm revised this gist Dec 19, 2021. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 3.0, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 3.0.0 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 3.0.3 --verbose

    # Set Ruby 3.0 as the global default
    rbenv global 3.0.0
    rbenv global 3.0.3

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  10. blacktm revised this gist Dec 26, 2020. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    #!/bin/bash

    # --------------------------------------------------------------------------------------------
    # Installs Ruby 2.7 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    # Installs Ruby 3.0 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    #
    # Run from the web:
    # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
    # --------------------------------------------------------------------------------------------

    # Welcome message
    echo -e "
    This will install Ruby 2.7 using rbenv/ruby-build.
    This will install Ruby 3.0 using rbenv/ruby-build.
    It will take about 2 hours to compile on the original Raspberry Pi,
    35 minutes on the second generation, and 16 minutes on the third.\n"
    @@ -49,11 +49,11 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.7, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.7.2 --verbose
    # Install Ruby 3.0, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 3.0.0 --verbose

    # Set Ruby 2.7 as the global default
    rbenv global 2.7.2
    # Set Ruby 3.0 as the global default
    rbenv global 3.0.0

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  11. blacktm revised this gist Nov 16, 2020. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    #!/bin/bash

    # --------------------------------------------------------------------------------------------
    # Installs Ruby 2.6 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    # Installs Ruby 2.7 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    #
    # Run from the web:
    # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
    # --------------------------------------------------------------------------------------------

    # Welcome message
    echo -e "
    This will install Ruby 2.6 using rbenv/ruby-build.
    This will install Ruby 2.7 using rbenv/ruby-build.
    It will take about 2 hours to compile on the original Raspberry Pi,
    35 minutes on the second generation, and 16 minutes on the third.\n"
    @@ -49,11 +49,11 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.6, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.4 --verbose
    # Install Ruby 2.7, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.7.2 --verbose

    # Set Ruby 2.6 as the global default
    rbenv global 2.6.4
    # Set Ruby 2.7 as the global default
    rbenv global 2.7.2

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  12. blacktm revised this gist Aug 29, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.6, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.3 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.4 --verbose

    # Set Ruby 2.6 as the global default
    rbenv global 2.6.3
    rbenv global 2.6.4

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  13. blacktm revised this gist May 15, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.6, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.2 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.3 --verbose

    # Set Ruby 2.6 as the global default
    rbenv global 2.6.2
    rbenv global 2.6.3

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  14. blacktm revised this gist Mar 15, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.6, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.1 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.2 --verbose

    # Set Ruby 2.6 as the global default
    rbenv global 2.6.1
    rbenv global 2.6.2

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  15. blacktm revised this gist Feb 1, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.6, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.0 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.1 --verbose

    # Set Ruby 2.6 as the global default
    rbenv global 2.6.0
    rbenv global 2.6.1

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  16. blacktm revised this gist Dec 31, 2018. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    #!/bin/bash

    # --------------------------------------------------------------------------------------------
    # Installs Ruby 2.5 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    # Installs Ruby 2.6 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    #
    # Run from the web:
    # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
    # --------------------------------------------------------------------------------------------

    # Welcome message
    echo -e "
    This will install Ruby 2.5 using rbenv/ruby-build.
    This will install Ruby 2.6 using rbenv/ruby-build.
    It will take about 2 hours to compile on the original Raspberry Pi,
    35 minutes on the second generation, and 16 minutes on the third.\n"
    @@ -49,11 +49,11 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.5, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.5.3 --verbose
    # Install Ruby 2.6, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.6.0 --verbose

    # Set Ruby 2.5 as the global default
    rbenv global 2.5.3
    # Set Ruby 2.6 as the global default
    rbenv global 2.6.0

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  17. blacktm revised this gist Oct 23, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.5, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.5.1 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.5.3 --verbose

    # Set Ruby 2.5 as the global default
    rbenv global 2.5.1
    rbenv global 2.5.3

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  18. blacktm revised this gist Apr 3, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.5, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.5.0 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.5.1 --verbose

    # Set Ruby 2.5 as the global default
    rbenv global 2.5.0
    rbenv global 2.5.1

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  19. blacktm revised this gist Dec 28, 2017. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    #!/bin/bash

    # --------------------------------------------------------------------------------------------
    # Installs Ruby 2.4 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    # Installs Ruby 2.5 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    #
    # Run from the web:
    # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
    # --------------------------------------------------------------------------------------------

    # Welcome message
    echo -e "
    This will install Ruby 2.4 using rbenv/ruby-build.
    This will install Ruby 2.5 using rbenv/ruby-build.
    It will take about 2 hours to compile on the original Raspberry Pi,
    35 minutes on the second generation, and 16 minutes on the third.\n"
    @@ -49,11 +49,11 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.4, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.4.2 --verbose
    # Install Ruby 2.5, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.5.0 --verbose

    # Set Ruby 2.4 as the global default
    rbenv global 2.4.2
    # Set Ruby 2.5 as the global default
    rbenv global 2.5.0

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  20. blacktm revised this gist Sep 19, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.4, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.4.1 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.4.2 --verbose

    # Set Ruby 2.4 as the global default
    rbenv global 2.4.1
    rbenv global 2.4.2

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  21. blacktm revised this gist Apr 8, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.4, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.4.0 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.4.1 --verbose

    # Set Ruby 2.4 as the global default
    rbenv global 2.4.0
    rbenv global 2.4.1

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  22. blacktm revised this gist Mar 4, 2017. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    #!/bin/bash

    # -----------------------------------------------------------------------
    # --------------------------------------------------------------------------------------------
    # Installs Ruby 2.4 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    #
    # Run from the web:
    # bash <(curl -s raw_script_url_here)
    # -----------------------------------------------------------------------
    # bash <(curl -s https://gist.githubusercontent.com/blacktm/8302741/raw/install_ruby_rpi.sh)
    # --------------------------------------------------------------------------------------------

    # Welcome message
    echo -e "
  23. blacktm revised this gist Dec 26, 2016. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,15 @@
    #!/bin/bash

    # -----------------------------------------------------------------------
    # Installs Ruby 2.3 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    # Installs Ruby 2.4 using rbenv/ruby-build on the Raspberry Pi (Raspbian)
    #
    # Run from the web:
    # bash <(curl -s raw_script_url_here)
    # -----------------------------------------------------------------------

    # Welcome message
    echo -e "
    This will install Ruby 2.3 using rbenv/ruby-build.
    This will install Ruby 2.4 using rbenv/ruby-build.
    It will take about 2 hours to compile on the original Raspberry Pi,
    35 minutes on the second generation, and 16 minutes on the third.\n"
    @@ -49,11 +49,11 @@ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.3, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.3 --verbose
    # Install Ruby 2.4, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.4.0 --verbose

    # Set Ruby 2.3 as the global default
    rbenv global 2.3.3
    # Set Ruby 2.4 as the global default
    rbenv global 2.4.0

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  24. blacktm revised this gist Nov 21, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.3, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.2 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.3 --verbose

    # Set Ruby 2.3 as the global default
    rbenv global 2.3.2
    rbenv global 2.3.3

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  25. blacktm revised this gist Nov 18, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -50,10 +50,10 @@ sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.3, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.1 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.2 --verbose

    # Set Ruby 2.3 as the global default
    rbenv global 2.3.1
    rbenv global 2.3.2

    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc
  26. blacktm revised this gist Oct 18, 2016. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -38,8 +38,8 @@ EOF
    # Save to ~/.bashrc
    echo -e "\n${String}" >> ~/.bashrc

    # Reload current shell
    source ~/.bashrc
    # Enable rbenv for current shell
    eval "${String}"

    # Install ruby-build as an rbenv plugin, adds `rbenv install` command
    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
    @@ -58,6 +58,10 @@ rbenv global 2.3.1
    # Don't install docs for gems (saves lots of time)
    echo "gem: --no-document" > ~/.gemrc

    # Reminder to reload the shell
    echo -e "\nReload the current shell to get access to rbenv using:"
    echo " source ~/.bashrc"

    # Print the time elapsed
    ELAPSED_TIME=$(($SECONDS - $START_TIME))
    echo -e "\nFinished in $(($ELAPSED_TIME/60/60)) hr, $(($ELAPSED_TIME/60%60)) min, and $(($ELAPSED_TIME%60)) sec\n"
  27. blacktm revised this gist Oct 6, 2016. 1 changed file with 13 additions and 14 deletions.
    27 changes: 13 additions & 14 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -7,13 +7,12 @@
    # bash <(curl -s raw_script_url_here)
    # -----------------------------------------------------------------------

    # Set up variables
    bold="\033[1m"
    normal="\033[0m"

    # Welcome message
    echo -e "\n${bold}This will install Ruby 2.3 using rbenv/ruby-build."
    echo -e "It can take about 2 hours to compile on the Raspberry Pi.${normal}"
    echo -e "
    This will install Ruby 2.3 using rbenv/ruby-build.
    It will take about 2 hours to compile on the original Raspberry Pi,
    35 minutes on the second generation, and 16 minutes on the third.\n"

    # Prompt to continue
    read -p " Continue? (y/n) " ans
    @@ -36,19 +35,19 @@ export PATH="$HOME/.rbenv/bin:$PATH"
    eval "$(rbenv init -)"
    EOF

    # For new shells
    echo -e "\n${String}\n" >> ~/.bashrc
    # Save to ~/.bashrc
    echo -e "\n${String}" >> ~/.bashrc

    # For current shell
    eval "${String}"
    # Reload current shell
    source ~/.bashrc

    # Install ruby-build as an rbenv plugin, adds `rbenv install` command
    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

    # Install dependencies
    # See: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment
    sudo apt-get update
    sudo apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
    sudo apt update
    sudo apt install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.3, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.1 --verbose
    @@ -57,8 +56,8 @@ CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.1 --ver
    rbenv global 2.3.1

    # Don't install docs for gems (saves lots of time)
    echo -e "gem: --no-document" > ~/.gemrc
    echo "gem: --no-document" > ~/.gemrc

    # Print the time elapsed
    ELAPSED_TIME=$(($SECONDS - $START_TIME))
    echo -e "\n${bold}Finished in $(($ELAPSED_TIME/60/60)) hr, $(($ELAPSED_TIME/60%60)) min, and $(($ELAPSED_TIME%60)) sec${normal}\n"
    echo -e "\nFinished in $(($ELAPSED_TIME/60/60)) hr, $(($ELAPSED_TIME/60%60)) min, and $(($ELAPSED_TIME%60)) sec\n"
  28. blacktm revised this gist Apr 26, 2016. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -51,10 +51,10 @@ sudo apt-get update
    sudo apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

    # Install Ruby 2.3, don't generate RDoc to save lots of time
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.0 --verbose
    CONFIGURE_OPTS="--disable-install-doc --enable-shared" rbenv install 2.3.1 --verbose

    # Set Ruby 2.3 as the global default
    rbenv global 2.3.0
    rbenv global 2.3.1

    # Don't install docs for gems (saves lots of time)
    echo -e "gem: --no-document" > ~/.gemrc
  29. blacktm revised this gist Jan 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion install_ruby_rpi.sh
    Original file line number Diff line number Diff line change
    @@ -46,7 +46,7 @@ eval "${String}"
    git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

    # Install dependencies
    # See: https://github.com/sstephenson/ruby-build/wiki#suggested-build-environment
    # See: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment
    sudo apt-get update
    sudo apt-get install -y autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev

  30. blacktm revised this gist Jan 1, 2016. No changes.