Difference between revisions of "Ruby Setup"

From CSE425S Wiki
Jump to navigation Jump to search
Line 67: Line 67:
  
 
-->
 
-->
−
 
+
<!--
 
====OS Gem====
 
====OS Gem====
 
  <nowiki>sudo gem install os</nowiki>
 
  <nowiki>sudo gem install os</nowiki>
Line 82: Line 82:
 
====Zip Gem====
 
====Zip Gem====
 
  <nowiki>sudo gem install zip</nowiki>
 
  <nowiki>sudo gem install zip</nowiki>
−
 
+
-->
 
===Windows===
 
===Windows===
 
====Ruby====
 
====Ruby====
Line 112: Line 112:
  
 
-->
 
-->
−
 
+
<!--
 
====OS Gem====
 
====OS Gem====
 
  <nowiki>gem install os</nowiki>
 
  <nowiki>gem install os</nowiki>
Line 130: Line 130:
 
====Opener Gem====
 
====Opener Gem====
 
  <nowiki>gem install opener</nowiki>
 
  <nowiki>gem install opener</nowiki>
−
 
+
-->
 
===Linux===
 
===Linux===
 
<!--
 
<!--
Line 146: Line 146:
 
  <nowiki>sudo gem install tk --with-ActiveTcl</nowiki>
 
  <nowiki>sudo gem install tk --with-ActiveTcl</nowiki>
 
-->
 
-->
−
 
+
<!--
 
====OS Gem====
 
====OS Gem====
 
  <nowiki>sudo gem install os</nowiki>
 
  <nowiki>sudo gem install os</nowiki>
Line 165: Line 165:
 
====Opener Gem====
 
====Opener Gem====
 
  <nowiki>sudo gem install opener</nowiki>
 
  <nowiki>sudo gem install opener</nowiki>
−
 
+
-->
 
<!-- Does NOT seem to be required for Linux: gem install glfw3-->
 
<!-- Does NOT seem to be required for Linux: gem install glfw3-->
 
<!--
 
<!--
Line 207: Line 207:
 
* Ensure that the Ruby SDK and Gems setting is correctly configured
 
* Ensure that the Ruby SDK and Gems setting is correctly configured
  
 +
<!--
 
==Check Installation==
 
==Check Installation==
 +
-->
 
<!--
 
<!--
 
'''NOTE: CSE 425s no longer uses tk so there is no longer a tk_check.rb to run.'''
 
'''NOTE: CSE 425s no longer uses tk so there is no longer a tk_check.rb to run.'''
Line 217: Line 219:
 
[[File:Tk installation check.png]]
 
[[File:Tk installation check.png]]
 
-->
 
-->
−
 
+
<!--
 
===OpenGL===
 
===OpenGL===
  
Line 234: Line 236:
  
 
[[File:Opengl texture installation check.png]]
 
[[File:Opengl texture installation check.png]]
 +
-->

Revision as of 18:14, 25 August 2025

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


IDE