Open jhass opened 9 years ago
Further investigation shows this is caused by a change in inlining behaviour,
gem install sigar -- --with-cppflags="-fgnu89-inline"
works around this. For bundler do
bundle config --local build.sigar '--with-cppflags="-fgnu89-inline"'
Thanks.
Any updates on a permanent fix?
I ran into this problem with Debian 8 also.
Just have this problem at Arch Linux. Any update on the fix?
Is there any updates regarding this issue ?
Workaround did not work for Ubuntu 16.04 LTS
For me the fix mentioned above worked (Fresh Ubuntu 16.04, with rvm)
gem install sigar -- --with-cppflags="-fgnu89-inline"
For me the workaround
gem install sigar -- --with-cppflags="-fgnu89-inline"
worked on ubuntu 16.04.1 LTS. Thanks @jhass
@jhass @tarator thanks, guys! Works regardless of ruby version management system, I mean it worked for rbenv too.
:( workaround didn't work on my ubuntu 16.04
/home/diaspora/diaspora/vendor/bundle/ruby/2.3.0/bin/loader_eye --stop_all -c config/eye.rb: symbol lookup error: /home/diaspora/diaspora/vendor/bundle/ruby/2.3.0/gems/sigar-0.7.3/lib/sigar.so: undefined symbol: sigar_skip_token
Did you get it to work, @amreesh ? I just spent about four hours trying all kinds of different things... And now it's working. Please don't ask me why or how but it is possible... :o
I don't have experience with Ruby but problem is with manual installation or with gem tool (package management ?)
i think i fix it in my fork https://github.com/kostya/sigar, can someone check that it installed? gem install kostya-sigar
The first solution https://github.com/hyperic/sigar/issues/60#issuecomment-111600492 works on Ubuntu 16.04 when building libsigar manually:
./autogen.sh && ./configure && make CFLAGS=-fgnu89-inline && sudo make install
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
Happens with:
Happens with: