Juniper / open-nti

Open Network Telemetry Collector build with open source tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while doing make build

panks21 opened this issue · comments

I am trying to do a fresh install for the Open-NTI. It failed during make build with the following error

Building native extensions. This could take a while...
ERROR: Error installing bigdecimal:
ERROR: Failed to build gem native extension.

current directory: /usr/lib/ruby/gems/2.3.0/gems/bigdecimal-1.4.0/ext/bigdecimal

/usr/bin/ruby -r ./siteconf20181223-11-gfrvgz.rb extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
checking for finite() in math.h... yes
checking for isfinite() in math.h... no
checking for struct RRational in ruby.h... no
checking for rb_rational_num() in ruby.h... yes
checking for rb_rational_den() in ruby.h... yes
checking for rb_array_const_ptr() in ruby.h... yes
checking for rb_sym2str() in ruby.h... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/bigdecimal-1.4.0/mkmf.log

current directory: /usr/lib/ruby/gems/2.3.0/gems/bigdecimal-1.4.0/ext/bigdecimal
make "DESTDIR=" clean
make: *** No rule to make target '../../lib/bigdecimal.rb', needed by 'Makefile'. Stop.

current directory: /usr/lib/ruby/gems/2.3.0/gems/bigdecimal-1.4.0/ext/bigdecimal
make "DESTDIR="
make: *** No rule to make target '../../lib/bigdecimal.rb', needed by 'Makefile'. Stop.

make failed, exit code 2

Gem files will remain installed in /usr/lib/ruby/gems/2.3.0/gems/bigdecimal-1.4.0 for inspection.
Results logged to /usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/bigdecimal-1.4.0/gem_make.out
4 gems installed
The command '/bin/sh -c apk --no-cache --update add build-base ruby-dev && echo 'gem: --no-document' >> /etc/gemrc && gem install --no-ri --no-rdoc yajl ltsv zookeeper influxdb bigdecimal && gem install ruby-kafka -v 0.3.17 && apk del build-base ruby-dev && rm -rf /tmp/* /var/tmp/* /var/cache/apk/*' returned a non-zero code: 1
Makefile:41: recipe for target 'build-syslog' failed
make: *** [build-syslog] Error 1

What is the way around