困っていること
Cloud9 の環境で bundle install を行うと以下のようなエラーが出て、処理が止まってしまいます。
このErrorの示す内容がわからず、手が止まっています。調査方針や、対応すべきことについてご示唆を頂けないでしょうか。
ec2-user:~/environment/toy_app01 (master) $ bundle install ・・・ Fetching sassc 2.2.1 Installing sassc 2.2.1 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1/ext /home/linuxbrew/.linuxbrew/opt/ruby/bin/ruby -I /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0 -r ./siteconf20191226-5721-2rgrgx.rb extconf.rb creating Makefile current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1/ext make "DESTDIR=" clean current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1/ext make "DESTDIR=" compiling ./libsass/src/util_string.cpp compiling ./libsass/src/ast_values.cpp In file included from ./libsass/src/ast.hpp:19:0, from ./libsass/src/ast_values.cpp:5: ./libsass/src/util.hpp: In function 'T Sass::absmod(const T&, const T&)': ./libsass/src/util.hpp:28:11: error: 'fmod' is not a member of 'std' T m = std::fmod(n, r); ^ ./libsass/src/util.hpp:28:11: note: suggested alternative: In file included from /home/linuxbrew/.linuxbrew/include/features.h:368:0, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/x86_64-unknown-linux-gnu/bits/c++config.h:489, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/string:38, from ./libsass/src/sass.hpp:55, from ./libsass/src/ast_values.cpp:3: /home/linuxbrew/.linuxbrew/include/bits/mathcalls.h:187:1: note: 'fmod' __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y)); ^ make: *** [ast_values.o] Error 1 make failed, exit code 2 Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1 for inspection. Results logged to /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/sassc-2.2.1/gem_make.out An error occurred while installing sassc (2.2.1), and Bundler cannot continue. Make sure that `gem install sassc -v '2.2.1' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: sass-rails was resolved to 6.0.0, which depends on sassc-rails was resolved to 2.1.2, which depends on sassc
試したこと
$ gem install sassc -v '2.2.1' --source を実行したところ また別のエラーが出てしまいました。
ec2-user:~/environment/toy_app01 (master) $ gem install sassc -v '2.2.1' --source 'https://rubygems.org/' Building native extensions. This could take a while... ERROR: Error installing sassc: ERROR: Failed to build gem native extension. current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1/ext /home/linuxbrew/.linuxbrew/opt/ruby/bin/ruby -I /home/linuxbrew/.linuxbrew/Cellar/ruby/2.6.5/lib/ruby/2.6.0 -r ./siteconf20191226-5969-fo0u2g.rb extconf.rb creating Makefile current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1/ext make "DESTDIR=" clean current directory: /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1/ext make "DESTDIR=" compiling ./libsass/src/util_string.cpp compiling ./libsass/src/ast_values.cpp In file included from ./libsass/src/ast.hpp:19:0, from ./libsass/src/ast_values.cpp:5: ./libsass/src/util.hpp: In function 'T Sass::absmod(const T&, const T&)': ./libsass/src/util.hpp:28:11: error: 'fmod' is not a member of 'std' T m = std::fmod(n, r); ^ ./libsass/src/util.hpp:28:11: note: suggested alternative: In file included from /home/linuxbrew/.linuxbrew/include/features.h:368:0, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/x86_64-unknown-linux-gnu/bits/os_defines.h:39, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/x86_64-unknown-linux-gnu/bits/c++config.h:489, from /home/linuxbrew/.linuxbrew/Cellar/gcc/5.5.0_7/include/c++/5.5.0/string:38, from ./libsass/src/sass.hpp:55, from ./libsass/src/ast_values.cpp:3: /home/linuxbrew/.linuxbrew/include/bits/mathcalls.h:187:1: note: 'fmod' __MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y)); ^ make: *** [ast_values.o] Error 1 make failed, exit code 2 Gem files will remain installed in /home/ec2-user/.rvm/gems/ruby-2.6.3/gems/sassc-2.2.1 for inspection. Results logged to /home/ec2-user/.rvm/gems/ruby-2.6.3/extensions/x86_64-linux/2.6.0/sassc-2.2.1/gem_make.out
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/12/26 03:49