Advertisement
Guest User

Error on Gem install for Hiptest-publisher Resolved

a guest
Sep 11th, 2019
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 65.41 KB | None | 0 0
  1. $ gem list
  2.  
  3. *** LOCAL GEMS ***
  4.  
  5. bigdecimal (default: 1.3.4)
  6. cmath (default: 1.0.0)
  7. csv (default: 1.0.0)
  8. date (default: 1.0.0)
  9. dbm (default: 1.0.0)
  10. did_you_mean (1.2.0)
  11. etc (default: 1.0.0)
  12. fcntl (default: 1.0.0)
  13. fiddle (default: 1.0.0)
  14. fileutils (default: 1.0.2)
  15. gdbm (default: 2.0.0)
  16. io-console (default: 0.4.6)
  17. ipaddr (default: 1.2.0)
  18. json (default: 2.1.0)
  19. minitest (5.10.3)
  20. net-telnet (0.1.1)
  21. openssl (default: 2.1.1)
  22. power_assert (0.2.7)
  23. psych (default: 3.0.2)
  24. rake (12.3.1)
  25. rdoc (default: 6.0.1)
  26. scanf (default: 1.0.0)
  27. sdbm (default: 1.0.0)
  28. stringio (default: 0.0.1)
  29. strscan (default: 1.0.0)
  30. test-unit (3.2.5)
  31. webrick (default: 1.4.2)
  32. zlib (default: 1.0.0)
  33.  
  34. ##############Tried to install hiptest-publisher#################################
  35. $ sudo gem install hiptest-publisher
  36. Fetching: colorize-0.8.1.gem (100%)
  37. Successfully installed colorize-0.8.1
  38. Fetching: parseconfig-1.0.8.gem (100%)
  39. Successfully installed parseconfig-1.0.8
  40. Fetching: concurrent-ruby-1.1.5.gem (100%)
  41. Successfully installed concurrent-ruby-1.1.5
  42. Fetching: i18n-0.9.5.gem (100%)
  43. Successfully installed i18n-0.9.5
  44. Fetching: mini_portile2-2.4.0.gem (100%)
  45. Successfully installed mini_portile2-2.4.0
  46. Fetching: nokogiri-1.9.1.gem (100%)
  47. Building native extensions. This could take a while...
  48. ERROR:  Error installing hiptest-publisher:
  49.     ERROR: Failed to build gem native extension.
  50.  
  51.     current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.9.1/ext/nokogiri
  52. /usr/bin/ruby2.5 -r ./siteconf20190911-10379-wiu657.rb extconf.rb
  53. checking if the C compiler accepts ... yes
  54. Building nokogiri using packaged libraries.
  55. Using mini_portile version 2.4.0
  56. checking for gzdopen() in -lz... no
  57. zlib is missing; necessary for building libxml2
  58. *** extconf.rb failed ***
  59. Could not create Makefile due to some reason, probably lack of necessary
  60. libraries and/or headers.  Check the mkmf.log file for more details.  You may
  61. need configuration options.
  62.  
  63. Provided configuration options:
  64.     --with-opt-dir
  65.     --without-opt-dir
  66.     --with-opt-include
  67.     --without-opt-include=${opt-dir}/include
  68.     --with-opt-lib
  69.     --without-opt-lib=${opt-dir}/lib
  70.     --with-make-prog
  71.     --without-make-prog
  72.     --srcdir=.
  73.     --curdir
  74.     --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
  75.     --help
  76.     --clean
  77.     --use-system-libraries
  78.     --enable-static
  79.     --disable-static
  80.     --with-zlib-dir
  81.     --without-zlib-dir
  82.     --with-zlib-include
  83.     --without-zlib-include=${zlib-dir}/include
  84.     --with-zlib-lib
  85.     --without-zlib-lib=${zlib-dir}/lib
  86.     --enable-cross-build
  87.     --disable-cross-build
  88.  
  89. To see why this extension failed to compile, please check the mkmf.log which can be found here:
  90.  
  91.   /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.9.1/mkmf.log
  92.  
  93. extconf failed, exit code 1
  94.  
  95. Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.9.1 for inspection.
  96.  
  97. #########################Error while Update Gems on Systems ########################################
  98.  
  99. $ sudo gem update
  100. Updating installed gems
  101. Updating bigdecimal
  102. Fetching: bigdecimal-1.4.4.gem (100%)
  103. Building native extensions. This could take a while...
  104. Successfully installed bigdecimal-1.4.4
  105. Parsing documentation for bigdecimal-1.4.4
  106. Installing ri documentation for bigdecimal-1.4.4
  107. Installing darkfish documentation for bigdecimal-1.4.4
  108. Done installing documentation for bigdecimal after 2 seconds
  109. Parsing documentation for bigdecimal-1.4.4
  110. Done installing documentation for bigdecimal after 0 seconds
  111. Updating csv
  112. Fetching: csv-3.1.1.gem (100%)
  113. Successfully installed csv-3.1.1
  114. Parsing documentation for csv-3.1.1
  115. Installing ri documentation for csv-3.1.1
  116. Installing darkfish documentation for csv-3.1.1
  117. Done installing documentation for csv after 1 seconds
  118. Parsing documentation for csv-3.1.1
  119. Done installing documentation for csv after 1 seconds
  120. Updating date
  121. Fetching: date-2.0.0.gem (100%)
  122. Building native extensions. This could take a while...
  123. Successfully installed date-2.0.0
  124. Parsing documentation for date-2.0.0
  125. Installing ri documentation for date-2.0.0
  126. Installing darkfish documentation for date-2.0.0
  127. Done installing documentation for date after 2 seconds
  128. Parsing documentation for date-2.0.0
  129. Done installing documentation for date after 1 seconds
  130. Updating did_you_mean
  131. Fetching: did_you_mean-1.3.0.gem (100%)
  132. Successfully installed did_you_mean-1.3.0
  133. Parsing documentation for did_you_mean-1.3.0
  134. Installing ri documentation for did_you_mean-1.3.0
  135. Installing darkfish documentation for did_you_mean-1.3.0
  136. Done installing documentation for did_you_mean after 0 seconds
  137. Parsing documentation for did_you_mean-1.3.0
  138. Done installing documentation for did_you_mean after 0 seconds
  139. Updating etc
  140. Fetching: etc-1.0.1.gem (100%)
  141. Building native extensions. This could take a while...
  142. Successfully installed etc-1.0.1
  143. Parsing documentation for etc-1.0.1
  144. Installing ri documentation for etc-1.0.1
  145. Installing darkfish documentation for etc-1.0.1
  146. Done installing documentation for etc after 0 seconds
  147. Parsing documentation for etc-1.0.1
  148. Done installing documentation for etc after 0 seconds
  149. Updating fileutils
  150. Fetching: fileutils-1.2.0.gem (100%)
  151. Successfully installed fileutils-1.2.0
  152. Parsing documentation for fileutils-1.2.0
  153. Installing ri documentation for fileutils-1.2.0
  154. Installing darkfish documentation for fileutils-1.2.0
  155. Done installing documentation for fileutils after 1 seconds
  156. Parsing documentation for fileutils-1.2.0
  157. Done installing documentation for fileutils after 0 seconds
  158. Updating i18n
  159. Fetching: i18n-1.6.0.gem (100%)
  160.  
  161. HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
  162. But that may break your application.
  163.  
  164. Please check your Rails app for 'config.i18n.fallbacks = true'.
  165. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
  166. 'config.i18n.fallbacks = [I18n.default_locale]'.
  167. If not, fallbacks will be broken in your app by I18n 1.1.x.
  168.  
  169. For more info see:
  170. https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
  171.  
  172. Successfully installed i18n-1.6.0
  173. Parsing documentation for i18n-1.6.0
  174. Installing ri documentation for i18n-1.6.0
  175. Installing darkfish documentation for i18n-1.6.0
  176. Done installing documentation for i18n after 2 seconds
  177. Parsing documentation for i18n-1.6.0
  178. Done installing documentation for i18n after 1 seconds
  179. Updating io-console
  180. Fetching: io-console-0.4.8.gem (100%)
  181. Building native extensions. This could take a while...
  182. Successfully installed io-console-0.4.8
  183. Parsing documentation for io-console-0.4.8
  184. Installing ri documentation for io-console-0.4.8
  185. Installing darkfish documentation for io-console-0.4.8
  186. Done installing documentation for io-console after 1 seconds
  187. Parsing documentation for io-console-0.4.8
  188. Done installing documentation for io-console after 0 seconds
  189. Updating ipaddr
  190. Fetching: ipaddr-1.2.2.gem (100%)
  191. Successfully installed ipaddr-1.2.2
  192. Parsing documentation for ipaddr-1.2.2
  193. Installing ri documentation for ipaddr-1.2.2
  194. Installing darkfish documentation for ipaddr-1.2.2
  195. Done installing documentation for ipaddr after 0 seconds
  196. Parsing documentation for ipaddr-1.2.2
  197. Done installing documentation for ipaddr after 0 seconds
  198. Updating json
  199. Fetching: json-2.2.0.gem (100%)
  200. Building native extensions. This could take a while...
  201. Successfully installed json-2.2.0
  202. Parsing documentation for json-2.2.0
  203. Installing ri documentation for json-2.2.0
  204. Installing darkfish documentation for json-2.2.0
  205. Done installing documentation for json after 4 seconds
  206. Parsing documentation for json-2.2.0
  207. Done installing documentation for json after 0 seconds
  208. Updating minitest
  209. Fetching: minitest-5.11.3.gem (100%)
  210. Successfully installed minitest-5.11.3
  211. Parsing documentation for minitest-5.11.3
  212. Installing ri documentation for minitest-5.11.3
  213. Installing darkfish documentation for minitest-5.11.3
  214. Done installing documentation for minitest after 4 seconds
  215. Parsing documentation for minitest-5.11.3
  216. Done installing documentation for minitest after 0 seconds
  217. Updating net-telnet
  218. Fetching: net-telnet-0.2.0.gem (100%)
  219. Successfully installed net-telnet-0.2.0
  220. Parsing documentation for net-telnet-0.2.0
  221. Installing ri documentation for net-telnet-0.2.0
  222. Installing darkfish documentation for net-telnet-0.2.0
  223. Done installing documentation for net-telnet after 0 seconds
  224. Parsing documentation for net-telnet-0.2.0
  225. Done installing documentation for net-telnet after 0 seconds
  226. Updating openssl
  227. Fetching: openssl-2.1.2.gem (100%)
  228. Building native extensions. This could take a while...
  229. ERROR:  Error installing openssl:
  230.     ERROR: Failed to build gem native extension.
  231.  
  232.    current directory: /var/lib/gems/2.5.0/gems/openssl-2.1.2/ext/openssl
  233. /usr/bin/ruby2.5 -r ./siteconf20190911-10400-17gg3cg.rb extconf.rb
  234. checking for t_open() in -lnsl... no
  235. checking for socket() in -lsocket... no
  236. checking for openssl/ssl.h... no
  237. *** extconf.rb failed ***
  238. Could not create Makefile due to some reason, probably lack of necessary
  239. libraries and/or headers.  Check the mkmf.log file for more details.  You may
  240. need configuration options.
  241.  
  242. Provided configuration options:
  243.     --with-opt-dir
  244.     --without-opt-dir
  245.     --with-opt-include
  246.     --without-opt-include=${opt-dir}/include
  247.     --with-opt-lib
  248.     --without-opt-lib=${opt-dir}/lib
  249.     --with-make-prog
  250.     --without-make-prog
  251.     --srcdir=.
  252.     --curdir
  253.     --ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
  254.     --with-openssl-dir
  255.     --without-openssl-dir
  256.     --with-openssl-include
  257.     --without-openssl-include=${openssl-dir}/include
  258.     --with-openssl-lib
  259.     --without-openssl-lib=${openssl-dir}/lib
  260.     --with-kerberos-dir
  261.     --without-kerberos-dir
  262.     --with-kerberos-include
  263.     --without-kerberos-include=${kerberos-dir}/include
  264.     --with-kerberos-lib
  265.     --without-kerberos-lib=${kerberos-dir}/lib
  266.     --with-debug
  267.     --without-debug
  268.     --enable-debug
  269.     --disable-debug
  270.     --with-nsllib
  271.     --without-nsllib
  272.     --with-socketlib
  273.     --without-socketlib
  274.     --with-openssl-config
  275.     --without-openssl-config
  276.     --with-pkg-config
  277.     --without-pkg-config
  278. extconf.rb:97:in `<main>': OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed. (RuntimeError)
  279.  
  280. To see why this extension failed to compile, please check the mkmf.log which can be found here:
  281.  
  282.   /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/openssl-2.1.2/mkmf.log
  283.  
  284. extconf failed, exit code 1
  285.  
  286. Gem files will remain installed in /var/lib/gems/2.5.0/gems/openssl-2.1.2 for inspection.
  287. Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/openssl-2.1.2/gem_make.out
  288. Updating power_assert
  289. Fetching: power_assert-1.1.5.gem (100%)
  290. Successfully installed power_assert-1.1.5
  291. Parsing documentation for power_assert-1.1.5
  292. Installing ri documentation for power_assert-1.1.5
  293. Installing darkfish documentation for power_assert-1.1.5
  294. Done installing documentation for power_assert after 0 seconds
  295. Parsing documentation for power_assert-1.1.5
  296. Done installing documentation for power_assert after 0 seconds
  297. Updating psych
  298. Fetching: psych-3.1.0.gem (100%)
  299. Building native extensions. This could take a while...
  300. Successfully installed psych-3.1.0
  301. Parsing documentation for psych-3.1.0
  302. Installing ri documentation for psych-3.1.0
  303. Installing darkfish documentation for psych-3.1.0
  304. Done installing documentation for psych after 3 seconds
  305. Parsing documentation for psych-3.1.0
  306. Done installing documentation for psych after 1 seconds
  307. Updating rake
  308. Fetching: rake-12.3.3.gem (100%)
  309. Successfully installed rake-12.3.3
  310. Parsing documentation for rake-12.3.3
  311. Installing ri documentation for rake-12.3.3
  312. Installing darkfish documentation for rake-12.3.3
  313. Done installing documentation for rake after 2 seconds
  314. Parsing documentation for rake-12.3.3
  315. Done installing documentation for rake after 1 seconds
  316. Updating rdoc
  317. Fetching: rdoc-6.2.0.gem (100%)
  318. Successfully installed rdoc-6.2.0
  319. Parsing documentation for rdoc-6.2.0
  320. Installing ri documentation for rdoc-6.2.0
  321. Installing darkfish documentation for rdoc-6.2.0
  322. Done installing documentation for rdoc after 22 seconds
  323. Parsing documentation for rdoc-6.2.0
  324. Done installing documentation for rdoc after 13 seconds
  325. Updating stringio
  326. Fetching: stringio-0.0.2.gem (100%)
  327. Building native extensions. This could take a while...
  328. Successfully installed stringio-0.0.2
  329. Parsing documentation for stringio-0.0.2
  330. Installing ri documentation for stringio-0.0.2
  331. Installing darkfish documentation for stringio-0.0.2
  332. Done installing documentation for stringio after 0 seconds
  333. Parsing documentation for stringio-0.0.2
  334. Done installing documentation for stringio after 0 seconds
  335. Updating test-unit
  336. Fetching: test-unit-3.3.3.gem (100%)
  337. Successfully installed test-unit-3.3.3
  338. Parsing documentation for test-unit-3.3.3
  339. Installing ri documentation for test-unit-3.3.3
  340. Installing darkfish documentation for test-unit-3.3.3
  341. Done installing documentation for test-unit after 5 seconds
  342. Parsing documentation for test-unit-3.3.3
  343. Done installing documentation for test-unit after 3 seconds
  344. Gems updated: bigdecimal csv date did_you_mean etc fileutils i18n io-console ipaddr json minitest net-telnet openssl power_assert psych rake rdoc stringio test-unit
  345.  
  346. #######################Suppose to be a Ruby Bug/Error############################
  347.  
  348. sudo gem update --system
  349. /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:267: [BUG] Segmentation fault at 0x00005e07b067f300
  350. ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
  351.  
  352. -- Control frame information -----------------------------------------------
  353. c:0021 p:---- s:0152 e:000151 CFUNC  :sort_by
  354. c:0020 p:0038 s:0148 e:000144 METHOD /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:267
  355. c:0019 p:0095 s:0138 e:000137 BLOCK  /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:233 [FINISH]
  356. c:0018 p:---- s:0132 e:000131 CFUNC  :each
  357. c:0017 p:0009 s:0128 e:000127 METHOD /usr/lib/ruby/2.5.0/rubygems/source_list.rb:98
  358. c:0016 p:0015 s:0123 e:000122 METHOD /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:227
  359. c:0015 p:0061 s:0116 e:000115 METHOD /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:103
  360. c:0014 p:0075 s:0104 e:000103 METHOD /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:119
  361. c:0013 p:0006 s:0094 e:000093 METHOD /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:141
  362. c:0012 p:0027 s:0086 e:000085 BLOCK  /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:269 [FINISH]
  363. c:0011 p:---- s:0080 e:000079 CFUNC  :each
  364. c:0010 p:0014 s:0076 e:000075 METHOD /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:265
  365. c:0009 p:0174 s:0068 e:000067 METHOD /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:191
  366. c:0008 p:0009 s:0055 e:000054 METHOD /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:237
  367. c:0007 p:0015 s:0048 e:000047 METHOD /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:90
  368. c:0006 p:0094 s:0039 e:000038 METHOD /usr/lib/ruby/2.5.0/rubygems/command.rb:313
  369. c:0005 p:0100 s:0031 e:000030 METHOD /usr/lib/ruby/2.5.0/rubygems/command_manager.rb:173
  370. c:0004 p:0011 s:0023 e:000022 METHOD /usr/lib/ruby/2.5.0/rubygems/command_manager.rb:143
  371. c:0003 p:0053 s:0016 e:000015 METHOD /usr/lib/ruby/2.5.0/rubygems/gem_runner.rb:59
  372. c:0002 p:0124 s:0009 E:0014a8 EVAL   /usr/bin/gem:21 [FINISH]
  373. c:0001 p:0000 s:0003 E:000a60 (none) [FINISH]
  374.  
  375. -- Ruby level backtrace information ----------------------------------------
  376. /usr/bin/gem:21:in `<main>'
  377. /usr/lib/ruby/2.5.0/rubygems/gem_runner.rb:59:in `run'
  378. /usr/lib/ruby/2.5.0/rubygems/command_manager.rb:143:in `run'
  379. /usr/lib/ruby/2.5.0/rubygems/command_manager.rb:173:in `process_args'
  380. /usr/lib/ruby/2.5.0/rubygems/command.rb:313:in `invoke_with_build_args'
  381. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:90:in `execute'
  382. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:237:in `update_rubygems'
  383. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:191:in `rubygems_target_version'
  384. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:265:in `which_to_update'
  385. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:265:in `each'
  386. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:269:in `block in which_to_update'
  387. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:141:in `highest_remote_version'
  388. /usr/lib/ruby/2.5.0/rubygems/commands/update_command.rb:119:in `fetch_remote_gems'
  389. /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:103:in `search_for_dependency'
  390. /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:227:in `available_specs'
  391. /usr/lib/ruby/2.5.0/rubygems/source_list.rb:98:in `each_source'
  392. /usr/lib/ruby/2.5.0/rubygems/source_list.rb:98:in `each'
  393. /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:233:in `block in available_specs'
  394. /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:267:in `tuples_for'
  395. /usr/lib/ruby/2.5.0/rubygems/spec_fetcher.rb:267:in `sort_by'#################Error Log Reporting on Ruby Gems log#############################
  396.  
  397. $ cat /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.9.1/mkmf.log
  398. "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-TdNoZ6/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
  399. checked program was:
  400. /* begin */
  401. 1: #include "ruby.h"
  402. 2:
  403. 3: int main(int argc, char **argv)
  404. 4: {
  405. 5:   return 0;
  406. 6: }
  407. /* end */
  408.  
  409. "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-TdNoZ6/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC    -Werror -c conftest.c"
  410. checked program was:
  411. /* begin */
  412. 1: #include "ruby.h"
  413. 2:
  414. 3: int main() {return 0;}
  415. /* end */
  416.  
  417. have_library: checking for gzdopen() in -lz... -------------------- no
  418.  
  419. "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-TdNoZ6/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5 -lz  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
  420. conftest.c:3:10: fatal error: zlib.h: No such file or directory
  421.  #include <zlib.h>
  422.           ^~~~~~~~
  423. compilation terminated.
  424. checked program was:
  425. /* begin */
  426.  1: #include "ruby.h"
  427.  2:
  428.  3: #include <zlib.h>
  429.  4:
  430.  5: /*top*/
  431.  6: extern int t(void);
  432.  7: int main(int argc, char **argv)
  433.  8: {
  434.  9:   if (argc > 1000000) {
  435. 10:     printf("%p", &t);
  436. 11:   }
  437. 12:
  438. 13:   return 0;
  439. 14: }
  440. 15: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return !p; }
  441. /* end */
  442.  
  443. "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.5.0 -I/usr/include/ruby-2.5.0/ruby/backward -I/usr/include/ruby-2.5.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.5-TdNoZ6/ruby2.5-2.5.1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC  -g -DXP_UNIX -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby-2.5 -lz  -lpthread -lgmp -ldl -lcrypt -lm   -lc "
  444. conftest.c:3:10: fatal error: zlib.h: No such file or directory
  445.  #include <zlib.h>
  446.           ^~~~~~~~
  447. compilation terminated.
  448. checked program was:
  449. /* begin */
  450.  1: #include "ruby.h"
  451.  2:
  452.  3: #include <zlib.h>
  453.  4:
  454.  5: /*top*/
  455.  6: extern int t(void);
  456.  7: int main(int argc, char **argv)
  457.  8: {
  458.  9:   if (argc > 1000000) {
  459. 10:     printf("%p", &t);
  460. 11:   }
  461. 12:
  462. 13:   return 0;
  463. 14: }
  464. 15: extern void gzdopen();
  465. 16: int t(void) { gzdopen(); return 0; }
  466. /* end */
  467.  
  468. --------------------
  469.  
  470.  
  471. #####################Resolved with ###############
  472.  
  473. $ sudo apt install build-essential patch ruby-dev zlib1g-dev liblzma-dev -y
  474. Reading package lists... Done
  475. Building dependency tree      
  476. Reading state information... Done
  477. build-essential is already the newest version (12.4ubuntu1).
  478. build-essential set to manually installed.
  479. ruby-dev is already the newest version (1:2.5.1).
  480. patch is already the newest version (2.7.6-2ubuntu1.1).
  481. patch set to manually installed.
  482. Suggested packages:
  483.   liblzma-doc
  484. The following NEW packages will be installed
  485.   liblzma-dev zlib1g-dev
  486. 0 to upgrade, 2 to newly install, 0 to remove and 0 not to upgrade.
  487. Need to get 320 kB of archives.
  488. After this operation, 1,125 kB of additional disk space will be used.
  489. Get:1 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2 [176 kB]
  490. Get:2 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 liblzma-dev amd64 5.2.2-1.3 [145 kB]
  491. Fetched 320 kB in 1s (425 kB/s)  
  492. Selecting previously unselected package zlib1g-dev:amd64.
  493. (Reading database ... 190315 files and directories currently installed.)
  494. Preparing to unpack .../zlib1g-dev_1%3a1.2.11.dfsg-0ubuntu2_amd64.deb ...
  495. Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) ...
  496. Selecting previously unselected package liblzma-dev:amd64.
  497. Preparing to unpack .../liblzma-dev_5.2.2-1.3_amd64.deb ...
  498. Unpacking liblzma-dev:amd64 (5.2.2-1.3) ...
  499. Setting up liblzma-dev:amd64 (5.2.2-1.3) ...
  500. Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-0ubuntu2) ...
  501. Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
  502.  
  503. ###############Now Able to Install Hiptest-publisher ##########################
  504.  
  505. user@serverName:~/Developer/projectName/ci/stages/robot_tests/hiptest$ sudo gem install hiptest-publisher
  506. Building native extensions. This could take a while...
  507. Successfully installed nokogiri-1.9.1
  508. Fetching: multipart-post-2.1.1.gem (100%)
  509. Successfully installed multipart-post-2.1.1
  510. Fetching: parslet-1.8.2.gem (100%)
  511. Successfully installed parslet-1.8.2
  512. Fetching: ruby-handlebars-0.2.1.gem (100%)
  513. Successfully installed ruby-handlebars-0.2.1
  514. Fetching: ruby_version-1.0.1.gem (100%)
  515. Successfully installed ruby_version-1.0.1
  516. Fetching: hiptest-publisher-1.28.0.gem (100%)
  517. Successfully installed hiptest-publisher-1.28.0
  518. Parsing documentation for nokogiri-1.9.1
  519. Installing ri documentation for nokogiri-1.9.1
  520. Parsing documentation for multipart-post-2.1.1
  521. Installing ri documentation for multipart-post-2.1.1
  522. Parsing documentation for parslet-1.8.2
  523. Installing ri documentation for parslet-1.8.2
  524. Parsing documentation for ruby-handlebars-0.2.1
  525. Installing ri documentation for ruby-handlebars-0.2.1
  526. Parsing documentation for ruby_version-1.0.1
  527. Installing ri documentation for ruby_version-1.0.1
  528. Parsing documentation for hiptest-publisher-1.28.0
  529. Installing ri documentation for hiptest-publisher-1.28.0
  530. Done installing documentation for nokogiri, multipart-post, parslet, ruby-handlebars, ruby_version, hiptest-publisher after 11 seconds
  531. 6 gems installed
  532.  
  533. ############################## Tests the Application ###########
  534.  
  535. $ hiptest-publisher --version
  536. hiptest-publisher 1.28.0
  537.  
  538. $ hiptest-publisher --help
  539. Usage: hiptest-publisher [options]
  540.  
  541. Exports tests from HipTest for automation.
  542.  
  543. Specific options:
  544.     -t, --token=TOKEN                Secret token (available in your project settings)
  545.     -l, --language=LANG              Target language (default: ruby)
  546.     -f, --framework=FRAMEWORK        Test framework to use
  547.     -o, --output-directory=PATH      Output directory (default: .)
  548.         --filename-pattern=PATTERN   Filename pattern (containing %s)
  549.     -c, --config-file=PATH           Configuration file
  550.         --overriden-templates=PATH   Folder for overriden templates
  551.         --test-run-id=ID             Export data from a test run identified by its id
  552.         --test-run-name=NAME         Export data from a test run identified by its name
  553.         --only=CATEGORIES            Restrict export to given file categories (--only=list to list them)
  554.         --without=CATEGORIES         Exclude file categories from import (--only=list to list them)
  555.     -x, --xml-file=PROJECT_XML       XML file to use instead of fetching it from HipTest
  556.         --tests-only                 (deprecated) alias for --only=tests (default: false)
  557.         --actionwords-only           (deprecated) alias for --only=actionwords (default: false)
  558.         --actionwords-signature      Export actionwords signature (default: false)
  559.         --show-actionwords-diff      Show actionwords diff since last update (summary) (default: false)
  560.         --show-actionwords-diff-as-json
  561.                                      Show actionwords diff since last update (JSON output) (default: false)
  562.         --show-actionwords-deleted   Output signature of deleted action words (default: false)
  563.         --show-actionwords-created   Output code for new action words (default: false)
  564.         --show-actionwords-renamed   Output signatures of renamed action words (default: false)
  565.         --show-actionwords-signature-changed
  566.                                      Output signatures of action words for which signature changed (default: false)
  567.         --show-actionwords-definition-changed
  568.                                      Output action words for which definition changed (default: false)
  569.         --library-name=LIBRARY_NAME  Use in conjunction with show-actionwords-*: show the diff for the specified library
  570.         --with-folders               Use folders hierarchy to export files in respective directories (default: false)
  571.         --empty-folders              Export empty folders (default: false)
  572.         --split-scenarios            Export each scenario in a single file (except for Gherkin based languages) (default: false)
  573.         --leafless-export            Use only last level action word (default: false)
  574.     -s, --site=SITE                  Site to fetch from (default: https://app.hiptest.com)
  575.         --http-proxy=PROXY_URL       Specify your http proxy to access Hiptest
  576.     -p, --push=FILE.TAP              Push a results file to the server
  577.         --global-failure-on-missing-reports
  578.                                      When there is no results file to push, report a global failure (default: false)
  579.         --push-format=tap            Format of the test results (cucumber-json, junit, nunit, robot, tap) (default: tap)
  580.         --execution-environment=NAME Name of the execution environment
  581.         --sort=[id,order,alpha]      Sorting of tests in output: id will sort them by age, order will keep the same order than in hiptest (only with --with-folders option, will fallback to id otherwise), alpha will sort them by name (default: order)
  582.         --[no-]uids                  Export UIDs (note: can be disabled only for Gherkin-based exports, may cause issue when pushing results back) (default: true)
  583.         --[no-]parent-folder-tags    Export tags from parent folders (note: if set to false, those tags are never rendered. Only available for Gherkin base exports) (default: true)
  584.         --parameter-delimiter=DELIMITER
  585.                                      Parameter delimiter (for Gherkin based export only) (default: ")
  586.        --with-dataset-names         Export dataset name when creating feature files (note: available only for Gherkin-based exports) (default: false)
  587.        --keep-filenames             Keep the same name as in HipTest for the test files (note: may cause encoding issues) (default: false)
  588.        --keep-foldernames           Keep the same name as in HipTest for the folders (note: may cause encoding issues) (default: false)
  589.        --filter-on-scenario-ids=IDS Filter on scenario ids (use commas to separate ids when fetching multiple scenarios)
  590.        --filter-on-folder-ids=IDS   Filter on folder ids (use commas to separate ids when fetching multiple folders)
  591.        --filter-on-scenario-name=NAME
  592.                                     Filter on scenario name (only one name is accepted)
  593.        --filter-on-folder-name=NAME Filter on folder name (only one name is accepted)
  594.        --filter-on-tags=TAGS        Filter on scenarios and folder tags (use commas to separate tags when using multiple tags)
  595.        --filter-on-status=STATUS    Filter on test status in last build (use in conjunction with a test run)
  596.        --not-recursive              Used in conjunction with filter-on-folder-ids or filter-on-folder-name: only exports those folders, not their children (default: false)
  597.        --meta=META                  Meta informations that can be used for customizing templates
  598.        --check-version              Check if a new release of hiptest-publisher is available (default: false)
  599.        --force                      Force overwrite of existing files (do not apply to test files) (default: false)
  600.    -v, --verbose                    Run verbosely (default: false)
  601.    -H, --languages-help             Show languages and framework options
  602.    -h, --help                       Show this message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement