ruby-jmeter icon indicating copy to clipboard operation
ruby-jmeter copied to clipboard

ruby jmeter installation issue on linux

Open lingarajk opened this issue 7 years ago • 1 comments

[root@lK-aM-01 pmi_automation]# gem install ruby-jmeter Building native extensions. This could take a while... ERROR: Error installing ruby-jmeter: ERROR: Failed to build gem native extension.

current directory: /usr/local/rvm/gems/ruby-2.2.0/gems/unf_ext-0.0.7.4/ext/unf_ext

/usr/local/rvm/rubies/ruby-2.2.0/bin/ruby -r ./siteconf20170927-30924-1v0sc4n.rb extconf.rb checking for main() in -lstdc++... yes creating Makefile

current directory: /usr/local/rvm/gems/ruby-2.2.0/gems/unf_ext-0.0.7.4/ext/unf_ext make "DESTDIR=" clean

current directory: /usr/local/rvm/gems/ruby-2.2.0/gems/unf_ext-0.0.7.4/ext/unf_ext make "DESTDIR=" compiling unf.cc In file included from /usr/local/rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby.h:33:0, from unf.cc:3: /usr/local/rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/ruby.h:107:73: error: size of array ‘ruby_check_sizeof_long’ is negative typedef char ruby_check_sizeof_long[SIZEOF_LONG == sizeof(long) ? 1 : -1]; ^ /usr/local/rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/ruby.h:111:76: error: size of array ‘ruby_check_sizeof_voidp’ is negative typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1]; ^ In file included from /usr/local/rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/intern.h:35:0, from /usr/local/rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/ruby.h:1710, from /usr/local/rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby.h:33, from unf.cc:3: /usr/local/rvm/rubies/ruby-2.2.0/include/ruby-2.2.0/ruby/st.h:52:93: error: size of array ‘st_check_for_sizeof_st_index_t’ is negative typedef char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP == (int)sizeof(st_index_t) ? 1 : -1]; ^ make: *** [unf.o] Error 1

make failed, exit code 2

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.2.0/gems/unf_ext-0.0.7.4 for inspection. Results logged to /usr/local/rvm/gems/ruby-2.2.0/extensions/x86-linux/2.2.0/unf_ext-0.0.7.4/gem_make.out

lingarajk avatar Sep 27 '17 20:09 lingarajk

@lingarajk Have you overcome this error? It looks like your ruby package manager is not able to install unf_ext gem. The issue is not directly related to ruby-jmeter, so I would suggest closing this issue @90kts as non-related to the repository.

First of All, I would suggest to

  1. Re-install that package manually using gem install unf_ext -v '0.0.7.4' If the installation fails, it means that you don't have something like gcc or kernel sources installed. It mostly depends on distributive. You might need ruby-dev package which will help you to compile native extensions from source. (you would want to dig in that way.)

  2. I would suggest replacing RVM by RBENV. The seconds one has better chance to install it. I have had experience with older ruby versions such as 1.9.3

If you still have questions, please specify OS version, Distro name, RVM -v,

PurpleCatfish avatar Nov 16 '18 23:11 PurpleCatfish