Difference between revisions of "Ruby Setup"

From CSE425S Wiki
Jump to navigation Jump to search
Line 132: Line 132:
 
==Check Installation==
 
==Check Installation==
 
===Tk===
 
===Tk===
 +
{{RubyToRun|tk_check|installation_check}}
 +
 
[[File:Tk installation check.png]]
 
[[File:Tk installation check.png]]
  

Revision as of 17:32, 11 November 2020

Language

Mac OSX

Standard Ruby

Nicely, Ruby ships with the Mac standard installation. While it may not be the most up to date version, it may be the best option to simply use your default version: /usr/bin/ruby.

Tk Gem

sudo gem install tk

Note: If you have problems with this step, try installing Active Tcl 8.5.

OS Gem

sudo gem install os

PNG Gem

sudo gem install chunky_png

Homebrew

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

OpenGL Runtime

sudo brew install glfw

OpenGL Gem

sudo gem install opengl-bindings


Windows

Ruby Installer

Download From RubyInstaller

Ruby+Devkit 2.7.2-1 (x64)

Tk Gem

gem install tk

Note: If you have problems with this step, try installing Active Tcl 8.5.

OS Gem

gem install os

PNG Gem

gem install chunky_png

OpenGL Gem

gem install opengl-bindings

Zip Gem

gem install zip

OpenGL Runtime

Download FreeGLUT

Linux

ActiveTcl

Note: you will need to create an account to download ActiveTcl 8.5.

Note: ActiveTcl 8.6 has be known to cause problems.

Download and Install ActiveTcl 8.5

Ruby Language With Tk

A path that has worked on Ubuntu 20.04:

sudo apt-get install ruby-full
sudo gem install tk -- --with-ActiveTcl

OS Gem

sudo gem install os

PNG Gem

sudo gem install chunky_png

OpenGL Runtime

sudo apt-get update
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev
sudo apt-get install libglfw3-dev

OpenGL Gem

sudo gem install opengl-bindings


IDE

Check Installation

Tk

file to run: src//ruby/installation_check/tk_check.rb Ruby logo.svg

Tk installation check.png

OpenGL

Opengl installation check.png

OpenGL Texture

Opengl texture installation check.png