All threads / Installing RoR on macOS machine

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Installing RoR on macOS machine

Menj Villalobos asked in General

Hi,
I would like to ask if you can help me with this error while installing RoR on my mac machine running on a macOS 10.12 version.
Based on this guide https://gorails.com/setup/osx/10.12-sierra

Menj]~$ brew install rbenv
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Installing dependencies for rbenv: pkg-config, makedepend, openssl, ruby-build
==> Installing rbenv dependency: pkg-config
==> Using the sandbox
==> Downloading https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
Already downloaded: /Users/Menj/Library/Caches/Homebrew/pkg-config-0.29.1.tar.gz
==> ./configure --prefix=/usr/local/Cellar/pkg-config/0.29.1_1 --disable-host-tool --with-internal-glib --
Last 15 lines from /Users/Menj/Library/Logs/Homebrew/pkg-config/01.configure:
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-apple-darwin16.0.0
checking host system type... x86_64-apple-darwin16.0.0
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/private/tmp/pkg-config-20160831-40234-8gmr4o/pkg-config-0.29.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
  https://github.com/Homebrew/homebrew-core/issues

Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

Thanks!

It sounds like possibly one solution is:

I have same problem. And I fixed it by select Xcode 8 Command Line Tool in the Xcode 8. (current Xcode 7.3)

Which I found here: https://github.com/Homebrew/homebrew-core/issues/3604

Maybe try that?

Unfortunately I don't have an extra computer at the moment to install Sierra on so I'll only be able to give suggestions without testing things out myself.

Yes that's what I am doing right now Chris, downloading the xcode 8 :(

Hopefully that fixes it! Let me know how it goes.

Solution:

  1. install xcode "command line" follow this guide -> http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/
  2. run cleaner or if you have cleanmymac3 that would work
  3. Restart
  4. Start installing - Read & Follow this guide -> https://gorails.com/setup/osx/10.12-sierra

Another resources if your server can't connect to your repo.
https://forum.upcase.com/t/capistrano-cannot-read-from-remote-repository/3009/4

Enjoy!
;)

Join the discussion

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.