- Homebrew
- RVM
- Ruby
Before start installation ruby, you must:
- Right click Terminal from the Application/Utilities folder, Get Info, tick the "Open using Rosetta" box.
- Uninstall Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)" rm -rf /opt/homebrew/* sudo rm -rf /opt/homebrew
- Installation command
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Restart terminal
- Check Homebrew is working fine:
brew doctor
- Install RVM
\curl -sSL https://get.rvm.io | bash -s stable
- Install OpenSSL:
brew install openssl@1.1 export PATH="$(brew --prefix)/opt/openssl@1.1/bin:$PATH" export LDFLAGS="-L$(brew --prefix)/opt/openssl@1.1/lib" export CPPFLAGS="-I$(brew --prefix)/opt/openssl@1.1/include" export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl@1.1/lib/pkgconfig"
- Disable rvm autolibs -
rvm autolibs disable
-
Export ruby complier flags
export RUBY_CFLAGS=-DUSE_FFI_CLOSURE_ALLOC export optflags="-Wno-error=implicit-function-declaration"
-
ruby installation command
rvm install 2.7.3 --with-openssl-dir=$(brew --prefix)/opt/openssl@1.1 -
Post installation check -
rvm list -
Go to application directory and run
bundle install
- Getting libv8 gem error. Install libv8 gem via
gem install libv8 -v '3.16.14.19' -- --with-system-v8 - Getting mysql gem error.
- Install mysql
bundle install mysql(Default it will install mysql 8.* version). - For mysql client alone
brew install mysql-client
- Install mysql
- Getting therubyracer gem error.
brew install v8@3.15 bundle config build.libv8 --with-system-v8 bundle config build.therubyracer --with-v8-dir=$(brew --prefix v8@3.15)
- Download mysql package from official page - Click Here
- Select product version as 5.7.31 & Operating system as MacOS
- Download
macos10.14-x86_64.dmgor Click Here - Follow the install instructions as same as package installer.
- While installing mysql temporary password will be generated. Please note down the password
- After successfull installation, connect the mysql client using temporary password.
- Setting up local mysql client authentication
- Without or Empty Password:
SET password=""; UPDATE mysql.user SET authentication_string=PASSWORD("") WHERE User='root';
- With Passoword:
SET password="<your_passowrd>"; UPDATE mysql.user SET authentication_string=PASSWORD("<your_passowrd>") WHERE User='root';
- Without or Empty Password:
