Open qiulang opened 6 years ago
I found it failed on ubuntu ruby 2.1 as well, the same error
Building native extensions. This could take a while... ERROR: Error installing oversip: ERROR: Failed to build gem native extension.
current directory: /usr/local/rvm/gems/ruby-2.1.0/gems/oversip-2.0.4/ext/stud
/usr/local/rvm/rubies/ruby-2.1.0/bin/ruby -r ./siteconf20180703-22519-10dy4b9.rb extconf.rb [ext/stud/extconf.rb] executing system command: tar -zxf stud.tar.gz [ext/stud/extconf.rb] RbConfig::CONFIG['host_os'] returns "linux-gnu" [ext/stud/extconf.rb] executing system command: make extconf.rb failed Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
I used ruby 2.4.4 to rake the latest codes that use EventMachine. But I still get the same error as 2.1.
Can anyone give me some suggestion ?
extconf.rb:14:in `sys': [ext/stud/extconf.rb] system command `make' failed (RuntimeError)
from extconf.rb:35:in `block (2 levels) in <main>'
from extconf.rb:27:in `chdir'
from extconf.rb:27:in `block in <main>'
from extconf.rb:24:in `chdir'
from extconf.rb:24:in `<main>'
rake aborted!
Checking the mkmf.log shows
"tar -zxf stud.tar.gz"
make
cc -O2 -g -std=c99 -fno-strict-aliasing -Wall -W -D_GNU_SOURCE -I/usr/local/include -I/usr/include/libev -c -o stud.o stud.c
stud.c:56:10: fatal error: 'openssl/x509.h' file not found
#include <openssl/x509.h>
^~~~~~~~~~~~~~~~
1 error generated.
make: *** [stud.o] Error 1
/usr/local/opt/openssl/include actually has openssl/x509.h, but how do I set it ?
macOS 10.13.5 Xcode Version 9.4.1 (9F2000)