No available formula for gcc46 while installing Ruby 1.9.3 on OS X with RVM:
Ruby 1.9.3+ supports compiling with Clang (which you do have) instead of GCC, so make RVM compile with Clang instead:
rvm install 1.9.3 --with-gcc=clang
Trouble Installing Ruby 1.9.3 on Mac OSX 10.9.4
Error: No available formula for gcc46
Try:
rvm install 1.9.3 --with-gcc=clang
Or install xcode:
xcode-select --install
Error installing Ruby in Yosemite
Thanks @JanStrnádek for the answer. I solved all the dependencies from left to right and installed gcc using the below command and tried installing ruby again. It worked.
brew install homebrew/versions/gcc48
Completing install of ruby 1.9.3 with Ruby for for Mac OS X 10.7.5 Leopard, Xcode 4.5.2 -- problems with rvm pkg install openssl
in Xcode you need to install command line tools, but ... easier way is to install osx-gcc-installer, it includes all the required libraries, compiler and is just one package
error while installing new version of ruby using RVM
If you are using Ubuntu update your package repository (optional- ignore if already did).
sudo apt-get update
then run
sudo apt-get -y install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
I hope that helpful.
Related Topics
Initialize Two Variables on Same Line
What Are Factory_Girl Transient Attributes? Why Would I Use One
Ruby Cannot Find SQLite3 Driver on Windows
Form_For with Multiple Controller Actions for Submit
3.Days.Ago, 2.Hours.From_Now etc Without Rails
Static Site Generator Based Upon Directories & Files
How to Import Using Fastercsv a Row with a Name Like "CiaráN"
User Theme Switching with SASS - Ruby on Rails
Error Installing JSON 1.8.3 with Ruby 2.4
Instance Variables Inheritance
How to Use Factorygirl to Create an Attribute Called "Alias"
Gmail Threading, Imap and Ruby
Get Table Name from Activerecord
Unwanted Form Parameters Being Appended to Pagination Links
How Does Rake Db::Migrate Actually Work
Is There an Easy-To-Use Ftp Library for Ruby
Have a Parent Class's Method Access the Subclass's Constants