• 目前问题已搞定

  • 这是日志: $cat /usr/local/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-18/2.6.0/nokogiri-1.10.5/mkmf.log "clang -o conftest -I/usr/local/Cellar/ruby/2.6.4_2/include/ruby-2.6.0/x86_64-darwin18 -I/usr/local/Cellar/ruby/2.6.4_2/include/ruby-2.6.0/ruby/backward -I/usr/local/Cellar/ruby/2.6.4_2/include/ruby-2.6.0 -I. -I/usr/local/opt/libyaml/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wdivision-by-zero -Wimplicit-function-declaration -Wimplicit-int -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 -I /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/libxml2 conftest.c -L. -L/usr/local/Cellar/ruby/2.6.4_2/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -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 -lruby.2.6 " In file included from conftest.c:1: In file included from /usr/local/Cellar/ruby/2.6.4_2/include/ruby-2.6.0/ruby.h:33: In file included from /usr/local/Cellar/ruby/2.6.4_2/include/ruby-2.6.0/ruby/ruby.h:29: /usr/local/Cellar/ruby/2.6.4_2/include/ruby-2.6.0/ruby/defines.h:123:10: fatal error: 'stdio.h' file not found #include ^~~~~~~~~ 1 error generated. checked program was: /* begin / 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return 0; 6: } / end */