Difference between revisions of "Ruby Setup"
Jump to navigation
Jump to search
| (12 intermediate revisions by the same user not shown) | |||
| Line 43: | Line 43: | ||
<nowiki>ruby --version</nowiki> | <nowiki>ruby --version</nowiki> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Windows=== | ===Windows=== | ||
====Ruby==== | ====Ruby==== | ||
| + | <!-- | ||
Download and Install [https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.2-1/rubyinstaller-devkit-3.1.2-1-x64.exe Ruby+Devkit 3.1.2-1 (x64)] | Download and Install [https://github.com/oneclick/rubyinstaller2/releases/download/RubyInstaller-3.1.2-1/rubyinstaller-devkit-3.1.2-1-x64.exe Ruby+Devkit 3.1.2-1 (x64)] | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
--> | --> | ||
| − | + | Download and Install [https://rubyinstaller.org/downloads/ https://rubyinstaller.org/downloads/] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
===Linux=== | ===Linux=== | ||
| − | |||
| − | |||
| − | |||
| − | |||
====Ruby Language==== | ====Ruby Language==== | ||
=====Fedora===== | =====Fedora===== | ||
| − | + | [https://developer.fedoraproject.org/tech/languages/ruby/ruby-installation.html install ruby] | |
=====Ubuntu===== | =====Ubuntu===== | ||
<nowiki>sudo apt-get install ruby-full</nowiki> | <nowiki>sudo apt-get install ruby-full</nowiki> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Gems== | ==Gems== | ||
| − | + | gem install bundler | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | bundler install | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==IDE== | ==IDE== | ||
| Line 207: | Line 70: | ||
* 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: | + | <!-- |
| + | '''NOTE: CSE 425s no longer uses tk so there is no longer a tk_check.rb to run.''' | ||
<youtube>7KN7NJ7VvNE</youtube> | <youtube>7KN7NJ7VvNE</youtube> | ||
| − | |||
| − | |||
===Tk=== | ===Tk=== | ||
| − | {{RubyToRun|tk_check|installation_check}} | + | {{RubyToRun|tk_check|installation_check|main}} |
[[File:Tk installation check.png]] | [[File:Tk installation check.png]] | ||
--> | --> | ||
| + | <!-- | ||
| + | ===OpenGL=== | ||
| + | |||
| + | Mac users- run this: | ||
| − | + | {{RubyToRun|mac_osx_glfw_downloader_and_extractor|installation_check|main}} | |
| − | {{RubyToRun|opengl_check|installation_check}} | + | |
| + | Everyone, including Mac users, run this: | ||
| + | |||
| + | {{RubyToRun|opengl_check|installation_check|main}} | ||
[[File:Opengl installation check.png]] | [[File:Opengl installation check.png]] | ||
===OpenGL Texture=== | ===OpenGL Texture=== | ||
| − | {{RubyToRun|opengl_texture_check|installation_check}} | + | {{RubyToRun|opengl_texture_check|installation_check|main}} |
[[File:Opengl texture installation check.png]] | [[File:Opengl texture installation check.png]] | ||
| + | --> | ||
Latest revision as of 19:58, 20 November 2025
Contents
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
Windows
Ruby
Download and Install https://rubyinstaller.org/downloads/
Linux
Ruby Language
Fedora
Ubuntu
sudo apt-get install ruby-full
Gems
gem install bundler
bundler install
IDE
- Apply for student status with JetBrains
- Download and Install RubyMine
- Ensure that the Ruby SDK and Gems setting is correctly configured