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

Closed
gurezo opened this issue Sep 4, 2019 · 3 comments

Comments

@gurezo
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.

@mislav

This comment has been minimized.

Copy link
Member

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
@ludidiya

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!

@gurezo

This comment has been minimized.

Copy link
Author

commented Sep 19, 2019

@ludidiya
please try this blog steps.
I solved this.
https://lifewood.hatenablog.com/entry/2019/09/14/171125

@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
Projects
None yet
3 participants
You can’t perform that action at this time.