前提・実現したいこと
railsでwebサーバーを立ち上げたいと思っています。
vagrantを使いvirtualvoxでローカルに開発環境をして
rails server -b 192.168.33.10 -d
とコマンド入力したところエラーが出てしまい停滞しています。
virtualvox上でのゲストOSはCentOSでバージョンは6.10 (Final)です。
編集依頼あれば迅速に修正します!
現在自分でも調べ中ですが初学な為、何かヒントをくださる方がいれば幸いです。
発生している問題・エラーメッセージ
rails server -b 192.168.33.10 -d
に対して
Could not find gem 'sqlite3 (~> 1.4)' in any of the gem sources listed in your Gemfile or in gems cached in vendor/cache. Run `bundle install` to install missing gems.
と出てきたため、これに従い
bundle install
とした所
Fetching gem metadata from https://rubygems.org/............ Using rake 13.0.1 Using concurrent-ruby 1.1.6 Using i18n 1.8.3 Using minitest 5.14.1 Using thread_safe 0.3.6 Using tzinfo 1.2.7 Using zeitwerk 2.3.0 Using activesupport 6.0.3.2 Using builder 3.2.4 Using erubi 1.9.0 Using mini_portile2 2.4.0 Using nokogiri 1.10.9 Using rails-dom-testing 2.0.3 Using crass 1.0.6 Using loofah 2.6.0 Using rails-html-sanitizer 1.3.0 Using actionview 6.0.3.2 Using rack 2.2.3 Using rack-test 1.1.0 Using actionpack 6.0.3.2 Using nio4r 2.5.2 Using websocket-extensions 0.1.5 Using websocket-driver 0.7.2 Using actioncable 6.0.3.2 Using globalid 0.4.2 Using activejob 6.0.3.2 Using activemodel 6.0.3.2 Using activerecord 6.0.3.2 Using mimemagic 0.3.5 Using marcel 0.3.3 Using activestorage 6.0.3.2 Using mini_mime 1.0.2 Using mail 2.7.1 Using actionmailbox 6.0.3.2 Using actionmailer 6.0.3.2 Using actiontext 6.0.3.2 Using public_suffix 4.0.5 Using addressable 2.7.0 Using bindex 0.8.1 Using msgpack 1.3.3 Using bootsnap 1.4.6 Using bundler 2.1.4 Using byebug 11.1.3 Using regexp_parser 1.7.1 Using xpath 3.2.0 Using capybara 3.33.0 Using childprocess 3.0.0 Using ffi 1.13.1 Using jbuilder 2.10.0 Using rb-fsevent 0.10.4 Using rb-inotify 0.10.1 Using listen 3.2.1 Using method_source 1.0.0 Using puma 4.3.5 Using rack-proxy 0.6.5 Using thor 1.0.1 Using railties 6.0.3.2 Using sprockets 4.0.2 Using sprockets-rails 3.2.1 Using rails 6.0.3.2 Using rubyzip 2.3.0 Fetching sassc 2.4.0 Installing sassc 2.4.0 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/vagrant/rails_lessons/myapp/vendor/cache/ruby/2.6.0/gems/sassc-2.4.0/ext /home/vagrant/.rbenv/versions/2.6.6/bin/ruby -I /home/vagrant/.rbenv/versions/2.6.6/lib/ruby/site_ruby/2.6.0 -r ./siteconf20200626-10453-emjbtf.rb extconf.rb creating Makefile current directory: /home/vagrant/rails_lessons/myapp/vendor/cache/ruby/2.6.0/gems/sassc-2.4.0/ext make "DESTDIR=" clean current directory: /home/vagrant/rails_lessons/myapp/vendor/cache/ruby/2.6.0/gems/sassc-2.4.0/ext make "DESTDIR=" compiling ./libsass/src/ast.cpp g++: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by g++) make: *** [ast.o] エラー 1 make failed, exit code 2 Gem files will remain installed in /home/vagrant/rails_lessons/myapp/vendor/cache/ruby/2.6.0/gems/sassc-2.4.0 for inspection. Results logged to /home/vagrant/rails_lessons/myapp/vendor/cache/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.4.0/gem_make.out An error occurred while installing sassc (2.4.0), and Bundler cannot continue. Make sure that `gem install sassc -v '2.4.0' --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.4.0' --source 'https://rubygems.org/
とした所
gem install sassc -v '2.4.0' --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/vagrant/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sassc-2.4.0/ext /home/vagrant/.rbenv/versions/2.6.6/bin/ruby -I /home/vagrant/.rbenv/versions/2.6.6/lib/ruby/site_ruby/2.6.0 -r ./siteconf20200626-10516-2ykfxf.rb extconf.rb creating Makefile current directory: /home/vagrant/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sassc-2.4.0/ext make "DESTDIR=" clean current directory: /home/vagrant/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sassc-2.4.0/ext make "DESTDIR=" compiling ./libsass/src/ast.cpp g++: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by g++) make: *** [ast.o] エラー 1 make failed, exit code 2 Gem files will remain installed in /home/vagrant/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sassc-2.4.0 for inspection. Results logged to /home/vagrant/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.4.0/gem_make.out
となり、よくわからなくなりました。
試したこと
libc.so.6: version `GLIBC_2.14'
をコピペして調べてみた所、glibcやtexliveをインストールした方が良さそうなのかと思っていますがあっていますでしょうか。
よろしくお願いします。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー