Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Ruby Installation for more user freindly experience #693

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,77 @@ This website was built using [Jekyll](https://jekyllrb.com/). So if you are fami

To do this, you are going to need a computer capable of running Ruby - while Mac OSX or Linux tends to be easiest, plenty of people do Ruby development on Windows as well. If you're not on Mac OSX, you will likely need to install Ruby yourself.

**Setting up Ruby**

**Windows**

![image](https://github.com/Harsh-1Byte/Interactive-Book/assets/160573405/0a702c17-7aa1-42ef-8306-85e3d5732dac)
Downloading and Installing Ruby
All the versions of Ruby for Windows can be downloaded from rubyinstaller.org. Download the bold version and follow the further instructions for its Installation.

Complete the installation

![image](https://github.com/CircuitVerse/Interactive-Book/assets/160573405/0c99801f-cf2b-4176-99ec-41cb8e9a4cdc)

Press enter to install the modules

![image](https://github.com/Harsh-1Byte/Interactive-Book/assets/160573405/cb75d913-ec47-412f-a94a-b55975d163b8)

Installation is complete

![image](https://github.com/Harsh-1Byte/Interactive-Book/assets/160573405/41f57839-bdf6-4cb0-9856-a2cc0c3a1590)

Check via cmd

![image](https://github.com/Harsh-1Byte/Interactive-Book/assets/160573405/4537974e-581c-4f3e-9220-67851c10c40b)

Code:
ruby -v

**Linux**

Downloading and Installing Ruby:
Ruby for Linux can be downloaded and installed with the use of the following command on the terminal(Ctrl+Alt+T):
$ sudo apt install ruby-full

Beginning with the installation:

Getting Started with command:
Agreeing to Installation:
Getting Files:
Unpacking Files:
Setting up resources:
Finished Installation:
![image](https://github.com/Harsh-1Byte/Interactive-Book/assets/160573405/33c678ef-e2f5-493c-b8a7-6fc44e1ceb96)

Installation is complete.
To check if Ruby installed correctly, perform a version check for the same using the following command on the terminal:
ruby --version

**MacOS**

To install Ruby on macOS, you can use a package manager called Homebrew. Follow these steps:
Installing Homebrew
If you don't have Homebrew installed, open Terminal and run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install Ruby
Once Homebrew is installed, you can use it to install Ruby. In the Terminal, run:
brew install ruby

This command installs the latest version of Ruby available through Homebrew

Update your Shell Profile:
Homebrew will provide instructions on how to update your shell profile. Follow those instructions, or you can manually add the Ruby binaries to your PATH by adding the following line to your shell profile file (e.g., ~/.zshrc for Zsh or ~/.bash_profile for Bash):
export PATH="/usr/local/opt/ruby/bin:$PATH"

After making changes, remember to source your shell profile or restart your terminal.

Verify your Installation:
To check if Ruby is installed successfully, run:
ruby --version
This command should display the Ruby version that you installed. That's it! Ruby should now be installed on your macOS system.

**Install Gems and Serving the Website**

Once you have Ruby installed, open your terminal, `cd` to the local repo directory, and run the following commands:
Expand Down