-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi all.
I'm trying to install zipruby via gem (on mac),
$ gem install zipruby -v 0.3.6
but I get the following error
Building native extensions. This could take a while...
ERROR: Error installing zipruby:
ERROR: Failed to build gem native extension.
current directory: /Users/USER/.rvm/gems/ruby-2.5.5@go/gems/zipruby-0.3.6/ext
/Users/USER/.rvm/rubies/ruby-2.5.5/bin/ruby -I /Users/USER/.rvm/rubies/ruby-2.5.5/lib/ruby/site_ruby/2.5.0 -r ./siteconf20200924-5575-jr6479.rb extconf.rb
checking for zlib.h... yes
checking for -lz... yes
checking for fseeko()... yes
checking for ftello()... yes
checking for mkstemp()... yes
creating Makefile
current directory: /Users/USER/.rvm/gems/ruby-2.5.5@go/gems/zipruby-0.3.6/ext
make "DESTDIR=" clean
current directory: /Users/USER/.rvm/gems/ruby-2.5.5@go/gems/zipruby-0.3.6/ext
make "DESTDIR="
compiling mkstemp.c
mkstemp.c:69:8: error: implicit declaration of function 'getpid' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
pid = getpid();
^
1 error generated.
make: *** [mkstemp.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/USER/.rvm/gems/ruby-2.5.5@go/gems/zipruby-0.3.6 for inspection.
Results logged to /Users/USER/.rvm/gems/ruby-2.5.5@go/extensions/x86_64-darwin-19/2.5.0/zipruby-0.3.6/gem_make.out
Tried fixing by including unistd.h in mkstemp.c, which lets me compile the code, but I'm not sure it's the right way.
Appreciate your help!
veronvynguyen, hedselu, Thananj and stanley0010
Metadata
Metadata
Assignees
Labels
No labels