既存のrails プログラムをgit cloneしてbundle install --without production
(開発sqlite 本番pgのため)して実行したところ下記メッセージがでてbundle installできません。
sassc のバージョンがらみの問題だとは思いますが、糸口みつからず。
エラー解消方法を教えて頂きたくお願いします。
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
rails のソースは5.2.4でした
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/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/sassc-2.2.1/ext /home/vagrant/.rbenv/versions/2.6.3/bin/ruby -I /home/vagrant/.rbenv/versions/2.6.3/lib/ruby/2.6.0 -r ./siteconf20200207-1617-u80v5h.rb extconf.rb creating Makefile current directory: /home/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/sassc-2.2.1/ext make "DESTDIR=" clean current directory: /home/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/sassc-2.2.1/ext make "DESTDIR=" compiling ./libsass/src/ast_sel_unify.cpp cc1plus: error: unrecognized command line option "-std=c++11" cc1plus: error: unrecognized command line option "-flto" make: *** [ast_sel_unify.o] エラー 1 make failed, exit code 2 Gem files will remain installed in /home/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/sassc-2.2.1 for inspection. Results logged to /home/vagrant/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0-static/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: bootstrap-sass was resolved to 3.4.1, which depends on sassc
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/04/03 08:16
2020/04/03 09:40
2020/04/06 05:12
2020/04/06 07:27