2

I have just wasted 2 days of my life trying to figure this out, and I need some help please!

I am a complete noob to ruby, and all I want to do is install octopress so that I can have a blog. I think I messed up my mac dev environment somehow - when I try to install ruby with rbenv, it fails and tells me that it cannot find make? How do I fix this?

Thanks for your help in advance.

Mike

Installing ruby-2.4.0...

BUILD FAILED (OS X 10.12.3 using ruby-build 20170201)

Inspect or clean up the working tree at /var/folders/d7/xhd01lr92rvglw0vw9hzkx1m0000gn/T/ruby-build.20170214143528.84918
Results logged to /var/folders/d7/xhd01lr92rvglw0vw9hzkx1m0000gn/T/ruby-build.20170214143528.84918.log

Last 10 log lines:
checking for sigsetjmp as a macro or function... yes
checking for setjmp type... _setjmp
checking for prefix of external symbols... _
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking if make is GNU make... ./configure: /usr/local/bin/make: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory
no
checking for safe null command for make... configure: error: no candidate for safe null command
/usr/local/bin/ruby-build: /usr/local/bin/make: /usr/local/opt/ruby/bin/ruby: bad interpreter: No such file or directory

Here is the output of the following commands:

$ which ruby
/usr/bin/ruby

head /usr/local/bin/make
#!/usr/local/opt/ruby/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'make' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

And here is the output of echo $PATH:

/Users/michaelhenry/.rbenv/shims:/Users/michaelhenry/.rbenv/bin:/usr/local/bin:/Users/michaelhenry/.rbenv/shims:/Users/michaelhenry/.rbenv/bin:/usr/local/Cellar/coreutils/8.26/libexec/gnubin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
12
  • I think you've installed Ruby with Homebrew previously. But that installation (/usr/local/opt/ruby) seems broken. You need to uninstall the Homebrew version and try again. Someone had a similar issue here: github.com/rbenv/rbenv/issues/886
    – Casper
    Feb 14, 2017 at 22:27
  • Also see this in case you broke your system Ruby stackoverflow.com/a/8864749/823617
    – Casper
    Feb 14, 2017 at 22:33
  • Thanks for your input - I had already seen those two posts, and none of the suggestions worked. I even tried booting into the mac recovery partition and reinstalling Sierra - then I installed homebrew, rbenv, and the newest version of the Xcode command line tools. I STILL get the same error. Any thoughts? Feb 15, 2017 at 17:56
  • Also, this is the terminal output when I echo $PATH: /Users/michaelhenry/.rbenv/shims:/Users/michaelhenry/.rbenv/bin:/usr/local/bin:/Users/michaelhenry/.rbenv/shims:/Users/michaelhenry/.rbenv/bin:/usr/local/Cellar/coreutils/8.26/libexec/gnubin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands Feb 15, 2017 at 18:00
  • Ok in that case please append the results of the following commands to your question: which ruby and head /usr/local/bin/make.
    – Casper
    Feb 15, 2017 at 18:15

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.