Ask A Question

Notifications

You’re not receiving notifications from this thread.

Setup MacOS 10.11 El Capitan Discussion

Chris Oliver asked in General

Stop confusing people, there is a big problems with homebrew and El Capitan

Reply

had no problems

Reply
Nenad Novakovic Nenad Novakovic

If it had any problems before, it does not have any problems now.
Homebrew is brewing fine with El Capitan!

Reply

Yes, the issues were due to OS X El Capitan's new feature called System Integrity Protector. I have outlined a quick and easy fix here - http://digitizor.com/2015/1...

Reply

I don't see any issues with homebrew, brew install // brew cask install etc and El Capitan

Reply

Thanks. This worked great. The one thing I did find is that after installing mysql I rebooted as I could not invoke mysql at the command line. Other than that works great! Thanks!

Reply

Awesome post :)
Looks like really clean installation.

Reply

I failed at rbenv install 2.2.0:

BUILD FAILED (OS X 10.11 using ruby-build 20150719)

Reply
Kameron A Robinson Kameron A Robinson

I had a problem installing rails got back "extconf failed, exit code 1"

Reply

hello, when i do ruby -v i get 2.0.0 but when i do rbenv version i get 2.2.3 is that ok?

Reply
Антон Машошин Антон Машошин

it seems that you already tryed to install ruby via brew... try "brew uninstall ruby". i had the same problem, after that i got right ruby version

Reply
Alejandro Ventura Alejandro Ventura

Cool it works for me now!
What do I need to do to change the password if the user is my computers username? And how to turn it on/off when I want to?

Reply

Did u disabled SIP on OSX El Capitan?

Reply
Alejandro Ventura Alejandro Ventura

Is there a PrefPane for Postgresql in Mac OS like the Mysql one? I don't want the server runs at start up

Reply

Instead of homebrew you could use http://postgresapp.com/ which only runs when you launch the app.

Reply

i am facing a problem while installing Rail (gem install rails -v 4.2.4)

its shows an error like while executing gem ... (Errno::EACCES)

Permission denied - /Library/Ruby/Gems/2.0.0/gems/nokogiri-1.6.6.2/.autotest

in the terminal
any one suggest me a solution

Reply

I don't know the benefit to using rbenv vs rvm but I uninstalled Rbenv, bc I was having similar issues. Installed RVM and everything is working.

Reply

It looks like either rbenv isn't installed properly, e.g. missing from your .profile or .bashrc or whatever, or it's installed but you haven't told it to use a ruby version other than your system ruby (which would install to /Library/Ruby and require sudo permissions). Install another ruby with the rbenv ruby-build plugin (also available through homebrew) and use rbenv local to switch a particular project directory to use that ruby version (it creates a .ruby-version file in the directory).

Reply

I'm having difficulties on El Capitan. I'm following the instructions here. But I'm stuck on the last step here.

The command "rails server", is returning an error.

"Could not find pg-0.18.3 in any of the sources

Run `bundle install` to install missing gems."

I have ran "bundle install" and when I try to run "rails server", I get the same error again.

Reply

Worked perfectly for me on El Capitan 10.11.

Reply
Peter Peťuldo Mihok Peter Peťuldo Mihok

I always get this error message, when I open this local host web page:
Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

Reply

The only thing that worries me is that I have to use "sudo" for the installation. I'm hoping this is understood, and not included for clarity.

Reply

You shouldn't ever have to use sudo for this. If you do, you're going to end up with permissions errors later on. Homebrew might in order to change permissions for some of its own folders where you install apps from, but the rest of it shouldn't ever use sudo.

Reply

If you have XCode installed then run this BEFORE you try to install rails (or you'll keep running into errors):
xcode-select --install

I took this from: http://stackoverflow.com/qu...

I forgot to add what's going on. You need the command line tools and that's what this installs.

Reply

I ran the rails app and it doesn't seem to have any errors but when I go to the "localhost:3000" site, it tells me that, "This webpage is not available." Is there any other way to see if the database actually ran? Thanks.

Reply

I upgraded to El Capitan with homebrew already installed. I found that I had to remove the old version of homebrew and then reinstall it, run brew doctor (correct any errors) and then I was good to go!

Reply

I tried doing this a few weeks ago and ended up messing up the bash file. Fast forward to know, when I go to do the first step the first thing I get is:

"-bash: l: command not found"

can I reset the "bash"? I am quite new to this and not sure how to properly use the terminal.
Thanks in advance for any advice

Reply

Hello.

When visit localhost:3000

I'm greeted with error: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

I'm a new user, and not sure how to proceed.

Reply

Was able to find a fix via http://stackoverflow.com/qu...

SOLUTION:
It's currently an issue with Rails 4.1.x and 4.2.x, per this bug report, it will be fixed in the next release of rails 4.2.x (credit to dcorr in comments for the link).
In the mean time you can fix by doing downgraded to version 0.3.18 of mysql2 by adding this line to your gemfile:

gem 'mysql2', '~> 0.3.18'

Reply

I'm having an issue with
# Load rbenv automatically by adding

# the following to your profile:

eval "$(rbenv init -)"

popping up every time I open up iTerm/Terminal

Reply
Rinaldo Bonazzo Rinaldo Bonazzo

Thanks a lot for your help

Reply
nissandookeran nissandookeran

There's a bug I encountered when following the instructions for setting up with mysql. Wrote the fix steps at http://blog.redditech.com/p... (really just need to update RubyGems and then run 'gem update' to upgrade to rails 2.4.5, which I think fixes the issue)

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.