###前提・実現したいこと
Ubunts(バージョン14.04.5 LTS)にOpenAssetをインストールしようと試みています。
###発生している問題・エラーメッセージ
root@f4e1d94c6524:~# gem install openassets-ruby Building native extensions. This could take a while... ERROR: Error installing openassets-ruby: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.4.0/gems/ffi-1.9.18/ext/ffi_c /usr/bin/ruby2.4 -r ./siteconf20171229-494-dxon6r.rb extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include,/usr/include/ffi... no checking for shlwapi.h... no checking for rb_thread_blocking_region()... no checking for rb_thread_call_with_gvl()... yes checking for rb_thread_call_without_gvl()... yes checking for ffi_prep_cif_var()... no creating extconf.h creating Makefile current directory: /var/lib/gems/2.4.0/gems/ffi-1.9.18/ext/ffi_c make "DESTDIR=" clean sh: 1: make: not found current directory: /var/lib/gems/2.4.0/gems/ffi-1.9.18/ext/ffi_c make "DESTDIR=" sh: 1: make: not found make failed, exit code 127 Gem files will remain installed in /var/lib/gems/2.4.0/gems/ffi-1.9.18 for inspection. Results logged to /var/lib/gems/2.4.0/extensions/x86_64-linux/2.4.0/ffi-1.9.18/gem_make.out
###該当のソースコード
gem install openassets-ruby
###試したこと
こちらのサイトを参考にしてbundlerでインストールしようとしました。
root@f4e1d94c6524:~# git clone https://github.com/haw-itn/openassets-ruby.git Cloning into 'openassets-ruby'... remote: Counting objects: 2395, done. remote: Total 2395 (delta 0), reused 0 (delta 0), pack-reused 2395 Receiving objects: 100% (2395/2395), 439.93 KiB | 400.00 KiB/s, done. Resolving deltas: 100% (1313/1313), done. Checking connectivity... done. root@f4e1d94c6524:~# cd openassets-ruby root@f4e1d94c6524:~/openassets-ruby# bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/........ Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Using rake 10.5.0 Using addressable 2.4.0 Using backports 3.11.0 Using bitcoin-ruby 0.0.14 Using bundler 1.16.1 Using diff-lcs 1.3 Fetching unf_ext 0.0.7.4 Installing unf_ext 0.0.7.4 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext /usr/bin/ruby2.4 -r ./siteconf20171229-605-42f.rb extconf.rb checking for -lstdc++... yes creating Makefile current directory: /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext make "DESTDIR=" clean sh: 1: make: not found current directory: /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext make "DESTDIR=" sh: 1: make: not found make failed, exit code 127 Gem files will remain installed in /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4 for inspection. Results logged to /var/lib/gems/2.4.0/extensions/x86_64-linux/2.4.0/unf_ext-0.0.7.4/gem_make.out An error occurred while installing unf_ext (0.0.7.4), and Bundler cannot continue. Make sure that `gem install unf_ext -v '0.0.7.4'` succeeds before bundling. In Gemfile: openassets-ruby was resolved to 0.6.6, which depends on rest-client was resolved to 1.8.0, which depends on http-cookie was resolved to 1.0.3, which depends on domain_name was resolved to 0.5.20170404, which depends on unf was resolved to 0.1.4, which depends on unf_ext
gem install unf_ext -v '0.0.7.4'という指示があったので実行しましたが、引き続きつまづき、立ち往生しています。
root@f4e1d94c6524:~/openassets-ruby# gem install unf_ext -v '0.0.7.4' Building native extensions. This could take a while... ERROR: Error installing unf_ext: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext /usr/bin/ruby2.4 -r ./siteconf20171229-679-1rlts8q.rb extconf.rb checking for -lstdc++... yes creating Makefile current directory: /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext make "DESTDIR=" clean sh: 1: make: not found current directory: /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4/ext/unf_ext make "DESTDIR=" sh: 1: make: not found make failed, exit code 127 Gem files will remain installed in /var/lib/gems/2.4.0/gems/unf_ext-0.0.7.4 for inspection. Results logged to /var/lib/gems/2.4.0/extensions/x86_64-linux/2.4.0/unf_ext-0.0.7.4/gem_make.out
###補足情報(言語/FW/ツール等のバージョンなど)
ホストOS:Windows10
環境:Docker
あなたの回答
tips
プレビュー