Open bill-transue opened 3 years ago
@bill-transue did you have any success solving this error?
How to fix it?
Any update on this issue?
i suggest you need to add #include <ctype.h>
to rbsigar.c or to darwin_sigar.c, can you check if it fixes.
you can try to use my fork: gem install kostya-sigar
, with this fix.
I got this to work by running bundle update eye
-- this caused the kostya-sigar
gem to be updated to 2.0.10
and then it worked
I am having this issue trying to 'bundle install' on MAC Monterey. I have ruby 2.3.8
I installed kostya-sigar successfully but still no change. Are we supposed to use this version of sigar instead? How do i switch over to your version. Any help appreciated. thanks.
`jporter@cc webservices (dev) $ gem install sigar -v '0.7.3' Building native extensions. This could take a while... ERROR: Error installing sigar: ERROR: Failed to build gem native extension.
current directory: /Users/jporter/.rbenv/versions/2.3.8/lib/ruby/gems/2.3.0/gems/sigar-0.7.3/bindings/ruby
/Users/jporter/.rbenv/versions/2.3.8/bin/ruby -r ./siteconf20231012-39069-zk47pe.rb extconf.rb Ruby platform=x86_64-darwin21 rbsigar_generated.rx needs update generating rbsigar_generated.rx fatal: not a git repository (or any of the parent directories): .git ../../src/sigar_fileinfo.c -> sigar_fileinfo.c ../../src/sigar_util.c -> sigar_util.c ../../src/sigar_signal.c -> sigar_signal.c ../../src/sigar_getline.c -> sigar_getline.c ../../src/sigar_ptql.c -> sigar_ptql.c ../../src/sigar_cache.c -> sigar_cache.c ../../src/sigar.c -> sigar.c ../../src/sigar_format.c -> sigar_format.c ../../src/os/darwin/darwin_sigar.c -> darwin_sigar.c creating Makefile
current directory: /Users/jporter/.rbenv/versions/2.3.8/lib/ruby/gems/2.3.0/gems/sigar-0.7.3/bindings/ruby make "DESTDIR=" clean
current directory: /Users/jporter/.rbenv/versions/2.3.8/lib/ruby/gems/2.3.0/gems/sigar-0.7.3/bindings/ruby
make "DESTDIR="
compiling darwin_sigar.c
darwin_sigar.c:272:23: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
(*sigar)->ticks = sysconf(_SC_CLK_TCK);
~ ^~~~~~~~`
I'm having problems with
gem install sigar
on Mac OS 11.1 Big Sur, Ruby 2.6.5 with rvm. Here is my error output:Can anyone help me out? Thanks for reading.