Setup MacOS 10.11 El Capitan Discussion
Stop confusing people, there is a big problems with homebrew and El Capitan
If it had any problems before, it does not have any problems now.
Homebrew is brewing fine with El Capitan!
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...
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!
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?
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?
Did u disabled SIP on OSX El Capitan?
Is there a PrefPane for Postgresql in Mac OS like the Mysql one? I don't want the server runs at start up
Instead of homebrew you could use http://postgresapp.com/ which only runs when you launch the app.
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
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.
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).
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.
Worked perfectly for me on El Capitan 10.11.
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.
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.
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.
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.
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!
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
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.
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'
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
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)
thank you! was really helpful.
the only part that i had a difficulty was that when installing rails, the terminal stopped for a bit so i thought it was causing some problems... :( But worked perfectly and it was so easy to get everything sorted! Thank you so much
Thanks for the good instructions. I would recommend to install postgres from the Postgres.app for mac: http://postgresapp.com/ and get pgAdmin3 app for mac for querys and stuff: http://www.pgadmin.org/down...
I keep getting the following error...
-bash: /Users/macpro/.bash_profile: line 6: syntax error near unexpected token `source'
-bash: /Users/macpro/.bash_profile: line 6: `if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/macpro/.bash_profile'
...when trying to run the code to add rbenv to bash. Help please!!
I may have installed newer versions of ruby first before running this code. Not sure if that would complicate things.
Did you get this fixed? i too am getting this error
# To have launchd start mysql at login:
ln -sfv /usr/local/opt/mysql/*plist ~/Library/LaunchAgents
I think current is
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents
Please help me if you had same problem like this. I have a problem with this code "ssh -T git@github.com". When I put this line of code I received this:
that's because you're in the wrong folder and github doesn't find the publickey, so what you need to do is find the right path, then try again and it will works, at least for me, that was the solution.
Hello guys I hope you are having a good day, I'm accessing to Localhost:3000 , It seems everything is installed correctly, but after I run rails server and copy and paste the url the following message is displayed: We're sorry, but something went wrong(500), do you know what is the reason of this?
How do you install in China?
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
too many connection resets (https://rubygems.global.ssl...
Keep getting this
Thanks! Cheers!
Great set-up guidance here for a rapid deployment... took less than 30 for me; by about 2 minutes.
Great walk through! I had to side step over to github to makes sense of establishing a new SSH key, but overall A+++
Awesome guide, worked like a charm on El Capitan and getting Postgre setup straightaway rather than having that oh S*** moment as I try to deploy to heroku next time was a good finishing touch. Thanks.
Rails install failed for me on a new install of el capitan (10.11.6) with this error: libiconv is missing. please visit http://nokogiri.org/tutoria... for help with installing dependencies. I installed nokogiri with gem install nokogiri and then was able to successfully install rails and proceed with the installation.
Thks for the tutorial but when el open the terminal, it display this
Last login: Sun Aug 7 21:52:21 on ttys000
-bash: /Users/MacBookPro/.bash_profile: line 3: syntax error near unexpected token `source'
-bash: /Users/MacBookPro/.bash_profile: line 3: `if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/MacBookPro/.bash_profile'
MacBook-Pro-de-MacBook:~ MacBookPro$
how can I revert or fix it?
regards
In El Capitan, you might also need to do `sudo gem install bundler -n /usr/local/bin´.
Please see: https://github.com/bundler/...
I received the error detailed in the last part of the tutorial, but am unclear on how to update the config/database.yml file
Hey hey! Some tips:
PLEASE, ADD this IN ARTICLE.
Configuring Git section.
after generating ssh-key you need to do:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa
check this by ssh-add -l
and the following text after cat ~/.ssh/id_rsa.pub
add it to your ssh-key in GitHub account.
cause I were bound by Permission denied problem without this actions
So, for me 'gem install rails -v 4.2.6' yielded the error 'ERROR: Error installing rails: ERROR: Failed to build gem native extension.' What fixed it was installing xcode commadline tools with 'xcode-select --install'. Maybe you can add this information to the post or open a troubleshoot section.
Can anybody help me as i want to install Homebrew and ruby on rails on my Macbook OSX 10.8.5 2 months back i still could install homebrew but now it gives the following error.
Last login: Sat Oct 29 15:02:30 on ttys000
mrrobotas-MacBook-Pro:~ mrrobota$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent...."
curl: (22) The requested URL returned error: 404
mrrobotas-MacBook-Pro:~ mrrobota$
Unable to install rails - getting the following error: ERROR: Error installing rails:
activesupport requires Ruby version >= 2.2.2.
New to this stuff, has anyone had the same issue?
all steps followed till the creation of SSH key. I put your command into Terminal, but nothing happens:
cat ~/.ssh/id_rsa.pub