前提・実現したいこと
bundle installをしてからrails sでサーバーを起動したいです。
あるリポジトリからローカルへgit cloneしてアプリを表示させたいのですがbundleした途端に以下のようなエラーが出ます。
エラー内容からgem install ovirt-engine-sdk -v '4.3.0'が成功する事を確認して下さいとあった為実行。その後
'libxml/xmlreader.h' file not foundとエラーが出ます。この解決方法がググってもわかりません汗
そもそもgemfileに記載していないはずのovirt-engine-sdk-4.3.0で何故エラーが出るのかもわかりません。
お忙しい中申し訳ありません。何か解決方法の助言を頂けないでしょうか、、
発生している問題・エラーメッセージ
$ bundle install Your Gemfile lists the gem jquery-rails (>= 0) more than once. You should probably keep only one of them. Remove any duplicate entries and specify the gem only once (per group). While it's not a problem now, it could cause errors if you change the version of one of them later. Your Gemfile lists the gem dotenv-rails (>= 0) more than once. You should probably keep only one of them. Remove any duplicate entries and specify the gem only once (per group). While it's not a problem now, it could cause errors if you change the version of one of them later. The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`. Fetching gem metadata from https://rubygems.org/....... Using rake 12.3.3 Using CFPropertyList 2.3.6 Using concurrent-ruby 1.1.5 ...省力 Using json 2.3.0 Fetching ovirt-engine-sdk 4.3.0 Installing ovirt-engine-sdk 4.3.0 with native extensions Errno::EPERM: Operation not permitted @ apply2files - /Users/matsumotoshun/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ovirt-engine-sdk-4.3.0/.yardopts An error occurred while installing ovirt-engine-sdk (4.3.0), and Bundler cannot continue. Make sure that `gem install ovirt-engine-sdk -v '4.3.0' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: fog was resolved to 2.0.0, which depends on fog-ovirt was resolved to 1.2.4, which depends on ovirt-engine-sdk
発生している問題・エラーメッセージ
$ sudo gem install ovirt-engine-sdk -v '4.3.0' --source 'https://rubygems.org/' Building native extensions. This could take a while... ERROR: Error installing ovirt-engine-sdk: ERROR: Failed to build gem native extension. current directory: /Users/matsumotoshun/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ovirt-engine-sdk-4.3.0/ext/ovirtsdk4c /Users/matsumotoshun/.rbenv/versions/2.6.5/bin/ruby -I /Users/matsumotoshun/.rbenv/versions/2.6.5/lib/ruby/2.6.0 -r ./siteconf20200620-52299-1tixirm.rb extconf.rb checking for xml2-config... yes checking for curl-config... yes creating Makefile current directory: /Users/matsumotoshun/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ovirt-engine-sdk-4.3.0/ext/ovirtsdk4c make "DESTDIR=" clean current directory: /Users/matsumotoshun/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ovirt-engine-sdk-4.3.0/ext/ovirtsdk4c make "DESTDIR=" compiling ov_error.c compiling ov_http_client.c compiling ov_http_request.c compiling ov_http_response.c compiling ov_http_transfer.c compiling ov_module.c compiling ov_string.c compiling ov_xml_reader.c ov_xml_reader.c:24:10: fatal error: 'libxml/xmlreader.h' file not found #include <libxml/xmlreader.h> ^~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [ov_xml_reader.o] Error 1 make failed, exit code 2 Gem files will remain installed in /Users/matsumotoshun/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/ovirt-engine-sdk-4.3.0 for inspection. Results logged to /Users/matsumotoshun/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/extensions/x86_64-darwin-18/2.6.0/ovirt-engine-sdk-4.3.0/gem_make.out
該当のソースコード
gemfile
1source 'https://rubygems.org' 2git_source(:github) { |repo| "https://github.com/#{repo}.git" } 3 4ruby '2.6.5' 5 6gem 'rails', '~> 5.2.3' 7gem 'mysql2' 8gem 'puma', '~> 3.11' 9gem 'sass-rails', '~> 5.0' 10gem 'uglifier', '>= 1.3.0' 11gem 'coffee-rails', '~> 4.2' 12gem "jquery-rails" 13gem 'turbolinks', '~> 5' 14gem 'jbuilder', '~> 2.5' 15gem 'bootsnap', '>= 1.1.0', require: false 16gem 'mini_racer' 17gem 'devise', '4.5.0' 18gem 'devise-i18n' 19gem 'devise-i18n-views' 20gem 'dotenv-rails' 21gem 'google-api-client', require: 'google/apis/calendar_v3' 22gem 'redis-namespace' 23gem 'sidekiq' 24gem 'kaminari', '~> 0.17.0' 25gem 'kaminari-bootstrap', '~> 3.0.1' 26gem 'rails-i18n', '~> 5.1' # For 5.0.x, 5.1.x and 5.2.x 27gem 'bootstrap', '~> 4.1.1' 28gem 'jquery-rails' 29gem 'active_decorator' 30 31# 決済機能 32gem 'payjp' 33 34# full_calendar 35gem 'momentjs-rails' 36gem 'fullcalendar-rails' 37 38# line_bot 39gem 'line-bot-api' 40# idデコード用 41gem 'jwt' 42 43# 検索機能 44gem 'ransack' 45 46# 環境変数設定用 47gem 'dotenv-rails' 48 49# cronの設定 50gem 'whenever', require: false 51 52# 論理削除 53gem 'paranoia', '~> 2.3', '>= 2.3.1' 54 55# ランダムな文字列を生成して、URLにする 56gem 'public_uid' 57 58# userデバイスを判定 59gem 'browser' 60 61# リンクを生成する 62gem 'rinku' 63 64# PWA対応 65gem 'serviceworker-rails' 66gem 'carrierwave' 67gem 'fog' 68 69# text_areaのフォームを自動調整 70gem 'autosize', '~> 2.4' 71gem 'thin' 72 73# エラーをスラックに通知 74gem 'slack_500' 75 76group :development, :test do 77 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 78 gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 79 gem 'rspec-rails', '~> 3.6' 80 gem 'spring-commands-rspec' 81 gem "factory_bot_rails" 82 gem 'rails-controller-testing' 83end 84 85group :development do 86 gem 'web-console', '>= 3.3.0' 87 gem 'listen', '>= 3.0.5', '< 3.2' 88 gem 'spring' 89 gem 'spring-watcher-listen', '~> 2.0.0' 90 gem "rails-erd" 91 gem 'bullet' 92 gem 'rubocop', require: false 93 gem 'brakeman', :require => false 94end 95 96group :test do 97 gem 'capybara', '>= 2.15' 98 gem 'selenium-webdriver' 99 gem 'webdrivers', '~> 3.0' 100 gem "rspec_junit_formatter" 101end 102 103# Windows does not include zoneinfo files, so bundle the tzinfo-data gem 104gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 105
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。