Blogs Hub

Ruby - Local Environment Setup Mac - MiniTV

Ruby - Local Environment Setup Mac - मिनी टीवी

In this post, we’re going to show you how to install Ruby on your Mac. Along the way, we’ll learn about the steps involved and various bits of knowledge required to get up and going.

Here are the Mac installation steps.

To install ruby with rails:

- wget https://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1i.tar.gz

- tar xvf openssl-1.0.1i.tar.gz

- cd openssl-1.0.1i/

- rm -rf ~/.rvm/usr

- mkdir -p ~/.rvm/usr/ssl

- ./Configure darwin64-x86_64-cc --prefix=$HOME/.rvm/usr --openssldir=$HOME/.rvm/usr/ssl

- make

- make install

- Set the following in $HOME/.rvmrc

export CFLAGS="-O2 -arch x86_64"

export LDFLAGS="-L$HOME/.rvm/usr/lib -L/opt/local/lib"

export CPPFLAGS="-I$HOME/.rvm/usr/include -I/opt/local/include"

- rvm reinstall 2.3.8 --with-openssl-dir=$HOME/.rvm/usr/        #here I am installing 2.3.8 you can give whatever version                                                                                                             you want

- gem install bundler -v 1.17.3

- bundle install