Ruby Setup

From CSE425S Wiki
Revision as of 14:44, 6 November 2025 by Dennis.cosgrove (talk | contribs)
Jump to navigation Jump to search

Language

Mac OSX

Note: depending on how the permissions are set up on your machine you may need to prefix a command with sudo or perhaps you may have to omit sudo.

Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" 

Install Ruby

brew install ruby

Add Ruby To Path

if Mac OSX 10.15 Catalina or greater

   ~/.zshrc

else

   ~/.bash_profile

Add this line:

export PATH="/usr/local/opt/ruby/bin:$PATH"

check ruby

You can either

1) restart your terminal

or

2) source the appropriate configuration file based on your shell (which is often dependent on the OSX version)

source .zshrc

or

source .bash_profile

Then run

ruby --version

which should report version 2.7.2 as of Fall 2020.

Windows

Ruby

Download and Install Ruby+Devkit 3.1.2-1 (x64)

Linux

Ruby Language

Fedora

install ruby

Ubuntu
sudo apt-get install ruby-full

Gems

gem install bundler
bundler install

IDE