Skip to content

Instantly share code, notes, and snippets.

@rob-murray
Created July 19, 2022 16:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rob-murray/1e2ab4754a37e550daa9871660dbe47c to your computer and use it in GitHub Desktop.
Save rob-murray/1e2ab4754a37e550daa9871660dbe47c to your computer and use it in GitHub Desktop.

Error

rbenv install 2.7.1
Downloading ruby-2.7.1.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.bz2
Installing ruby-2.7.1...
ruby-build: using readline from homebrew

BUILD FAILED (macOS 12.4 using ruby-build 20220713)

Inspect or clean up the working tree at /var/folders/nz/w0_ln67n5316yz3xv1w1qmzw0000gn/T/ruby-build.20220719165635.30141.KzutW9
Results logged to /var/folders/nz/w0_ln67n5316yz3xv1w1qmzw0000gn/T/ruby-build.20220719165635.30141.log

Last 10 log lines:
compiling ../.././ext/psych/yaml/writer.c
linking shared-object -test-/string.bundle
16 warnings generated.
linking shared-object stringio.bundle
4 warnings generated.
linking shared-object zlib.bundle
422 warnings generated.
linking shared-object date_core.bundle
linking shared-object psych.bundle
make: *** [build-ext] Error 2

Solution

CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment