New Discussion

Notifications

You’re not receiving notifications from this thread.

Setup MacOS 10.12 Sierra Discussion

46
General

Thanks for posting this, Chris. Did you face any issues with Nokogiri when installing the Rails gem?

I haven't actually tested this personally just yet. :) I've got reports it worked great. Are you having issues with it?

Ryan Crispin Heneise Ryan Crispin Heneise

I experienced issues similar to this when installing Nokogiri: https://github.com/SlatherO...

Running
xcode-select --install

prior to installing Nokogiri worked for me.

Utehn Sorsiang Utehn Sorsiang

An error occurred while installing libv8 (3.16.14.15), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.15'` succeeds before bundling. <<<< don't work after i run bundle install

have you solve the problem?
I got encounter the same situation.

Mariusz Głuch Mariusz Głuch

I have problem with 10.12 sierra :( rbenv not command found
EDIT:
If you want install RoR on macOS 10.12 Sierra you must update Command Line Tools

Иван Лещинский Иван Лещинский

This commands helped me:
`brew install libxml2 libxslt`
`gem install nokogiri -v '1.6.6.4' -- --use-system-libraries --with-xml2-include=/usr/local/opt/libxml2/include/libxml2`

thanks!
this might be preferred though
brew unlink xz; bundle install; brew link xz
read here: http://stackoverflow.com/a/...

Evgeny Cherpak Evgeny Cherpak

make sure you have selected to use Xcode 8 command tools otherwise it won't work

Milton Spalburg Milton Spalburg

i get

cat: ˜/.ssh/id_rsa.pub: No such file or directory

Me too. I eventually figured out to just type a file name with .pub extension and not to follow their instructions.

Milton Spalburg Milton Spalburg

solved it i gave the file a name initially...

Milton Spalburg Milton Spalburg

ok solved my ssh public key issue but now i m trying to launch mysql and the LaunchAgents in my path i find is a file not a directory...

Milton Spalburg Milton Spalburg

and yes if i open the file i do see the entry however my terminal gives me the message...

Guys, I have a problem. When I run rbenv install 2.3.1, it stops on this line.
^Cappleui-iMac:~ apple$ rbenv install 2.3.1
Downloading ruby-2.3.1.tar.bz2...
-> https://cache.ruby-lang.org...
Installing ruby-2.3.1...

I installed Xcode not command line but I fully updated it.

Does anyone can help me?

Actually, it works. It requires some time. So never mind!

hello there,

I receive an error whenever I try to run the server or use the "rake db:create" command.
I'm using mysql db , tho

There's actually a bug right now (in the last 2 hours) with the thor gem causing problems in new apps. Try this: http://stackoverflow.com/a/...

When I try to run rbenv rehash, I get this error:

dyld: Library not loaded: /usr/local/opt/readline/lib/libhistory.6.dylib
Referenced from: /usr/local/bin/bash
Reason: image not found
Abort trap: 6

Not finding anything very helpful right now. Has anyone run into this issue? I just installed macOS Sierra and updated Ruby, Rails, rbenv...

My English is not so good but your explanation is very clear to me! thanks a lot!

I ran the command:

echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
source ~/.bash_profile

And now everytime I open a terminal window I am getting the below at the top of my window:

-bash: /Users/robertsaunders/.bash_profile: line 2: syntax error near unexpected token `source'
-bash: /Users/robertsaunders/.bash_profile: line 2: `if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi source /Users/robertsaunders/.bash_profile'

Please help!

After installing ruby the version doesn't see to update. does anyone have a suggestion? Running sierra 10.12.2

Audios-MacBook-Pro:shopify Audio$ rbenv install 2.2.5
Downloading ruby-2.2.5.tar.bz2...
-> https://cache.ruby-lang.org...\
Installing ruby-2.2.5...
Installed ruby-2.2.5 to /Users/Audio/.rbenv/versions/2.2.5\
Audios-MacBook-Pro:shopify Audio$ rbenv global 2.2.5\
Audios-MacBook-Pro:shopify Audio$ ruby -v
ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

it might be worth adding this to the tutorial-
this needs to be in the last line of ~/.bash-profile

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

This helped a lot! I just wish there were an easy way to know if I've just installed the latest versions of everything

I had a problem in the Final Steps; i.e. running rails new myapp -d mysql. The problem was that mysql2 (0.4.5) was not built and installed. It asked me to run 'bundle install'. I then encountered another problem, ssl and encrypto libraries were not found in lib build path (it used /usr/local/Cellar/mysql/5.7.17/lib/). Setting up DYLD_LIBRARY_PATH won't work. To work around this, I copied all /usr/lib/*ssl* and /usr/lib/*crypto* to /usr/local/Cellar/mysql/5.7.17/lib/ and run 'bundle install' again and all worked. Just FYI and thanks.

Using `rbenv install --list`, the latest version I get is 2.4.0preview2. How does one get the latest stable build like you? Total newb, need some help, I went to the rbenv installation guide on github and followed their instructions. Can we only install what we see in the results from the `rbenv install -l` command?

What I usually do is I run "rbenv install 2.4.0" and it will say hey, this version is missing so update your ruby-build version and give you instructions on how to do that. Then running the install command should succeed then.

I had to run the rbenv commands with "sudo" otherwise it wouldn't even compile. Something about the -LD flags being wrong. That also forced "sudo" on the gem install command. But otherwise, everything went as advertised.

Robert Kisielewski Robert Kisielewski

was having problems with brew mysql when generating a new app using the mysql ....
error would thrown when 'Installing mysql2 0.4.5 with native extensions'
...
Errno::EACCES: Permission denied @ rb_sysopen -
/Users/MYUSERNAME/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/mysql2-0.4.5/CHANGELOG.md

what I had to do to solve that ...
sudo chown -R $(whoami) /Users/MYUSERNAME/.rbenv/ ....

tried milions things before ...that seemed to work ... I know kinda unwise ..to sudo chown a directory ..but I got no other solution and that worked !!! hope it helps some future frustrated nerds like self ...

Grazieee!!!

Federico Moya Federico Moya

Best guide ever !!! Thank you very much !! Absolutely no issues, keep doing stuffs like this !

Troy Borges Troy Borges

Fantastic!
This tutorial is fantastic, I was able to get my Rails to work!
Thanks to GoRails.com

am nubi, asking for error Access denied for user 'root'@'localhost' (using password: NO)
i've tried update user and pass but this error still appear. what i have to update config/database.yml?

sorry for my bad english

Abdelmjid Lahmidi Abdelmjid Lahmidi

awesome, no issues following this tuto.

Mark Antony Mark Antony

i can work with sublime text using this setup?

These instructions are terrible. It won't accept my SSH key as per the instructions to copy the output of "cat id_rsa.pub". This article is titled "Setup Ruby On Rails on macOS 10.12 Sierra" but they don't work. Please update!

Great instructions to get started! everything worked perfectly! Thanks!

I barely know html but I took the course for the command line at learnenough.com and that really helped.
googled around when I got stuck. Downloaded this to do the tutorial by Chris Pine, Learn to Program.

I get this problem after executing gem install rails -v 5.1.4

ERROR: While executing gem ... (Gem::FilePermissionError)

You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory
.
Any suggestions?

did you ever figure out this problem? i have it too...

lucalan66@gmail.com lucalan66@gmail.com

great manual, thank you so much!

Join the discussion
Create an account Log in

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

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

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