Closed jlacivita closed 3 years ago
In case it's helpful:
RbConfig::CONFIG["CFLAGS"]:
-O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wmissing-noreturn -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wextra-tokens -fno-common -pipe
RbConfig::CONFIG["LDFLAGS"]:
-L. -fstack-protector-strong -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib
:wave: Hey again. We need to figure out where the -lSystem
argument to the linker is coming from.
Can you please show the output from nokogiri -v
?
One other request: can you please jump into irb
for the same version of Ruby you're using (3.0.2) and share the output from:
require 'yaml'
puts RbConfig::CONFIG.to_yaml
This will tell us if there's something in how your Ruby was compiled/linked that's injecting -lSystem
into the mkmf tests.
Okay... it was definitely some Apple / Xcode problem.
I noticed that after I installed the developer tools, I was still getting prompted to re-install them every time I ran `gem install nokogumbo.
Closer inspection showed me that a bad path was being generated for the Xcode sdk path, it had the word "export" jammed on to the end, e.g.:
make: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdkexport -find make 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'make', requesting installation of command line developer tools.
No matter what I did with xcode-select
this error wouldn't go away.
Then I found someone who just overrode the SDK Path via ENV variables:
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
And that solved my problem. 🤦♂️
@jlacivita OK, thanks for closing the loop here. Sorry you had a bad experience, but I'm glad you figured it out.
Hello,
I've tried doing
On Mac OS 10.14, and now upgraded to 11.4 (Big Sur), and in both cases, I cannot successfully install.
The log file contains:
I have Xcode installed, as well as the developer tools.
Ruby version is 3.0.2.
Any ideas what's up?