Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD FAILED (OS X 10.14.6 using ruby-build 20190828) #1357

gurezo opened this issue Sep 4, 2019 · 3 comments


Copy link

commented Sep 4, 2019

Hi Guys
i had tyied to install 2.5.0/2.6.3.
but failed.

message is this.

BUILD FAILED (OS X 10.14.6 using ruby-build 20190828)

Inspect or clean up the working tree at /var/folders/yk/f9k99vbx1jq8mvjjz_05hwjc0000gn/T/ruby-build.20190905001533.65960
Results logged to /var/folders/yk/f9k99vbx1jq8mvjjz_05hwjc0000gn/T/ruby-build.20190905001533.65960.log

Last 10 log lines:
configure: ruby library version = 2.6.0
configure: creating ./config.status
config.status: creating GNUmakefile
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.7.dylib
  Referenced from: /usr/local/bin/awk
  Reason: image not found
./config.status: line 1039: 72768 Done                    eval sed \"\$ac_sed_extra\" "$ac_file_inputs"
     72769 Abort trap: 6           | $AWK -f "$ac_tmp/subs.awk" > $ac_tmp/out
config.status: error: could not create GNUmakefile
make: *** No targets specified and no makefile found.  Stop.

I tried the following things and it didn't work

➜  ~ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

➜  ~ sudo mv /usr/local/include /usr/local/include-old
➜  ~ sudo mkdir /usr/local/include

Please let me know if you can do anything else.


This comment has been minimized.

Copy link

commented Sep 12, 2019

It looks like your awk is found in /usr/local/bin/awk (likely installed via Homebrew) rather than in /usr/bin/awk (macOS system version).

Your /usr/local/bin/awk seems broken, so you should uninstall or reinstall it. I suggest uninstall because using /usr/bin/awk is recommended on macOS and works well.

@mislav mislav closed this Sep 12, 2019

This comment has been minimized.

Copy link

commented Sep 18, 2019

I met the same problem.
Try brew upgrade gawk
Then try running the command that failed again.
This did work for me!


This comment has been minimized.

Copy link

commented Sep 19, 2019

please try this blog steps.
I solved this.

@hsbt hsbt transferred this issue from rbenv/rbenv Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.