arch linuxにてmysqlをインストールしようとしたところ、下記のようなエラーが起こります。
解決方法をお願いします。
gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.current directory: /home/name/.gem/ruby/2.7.0/gems/mysql-2.9.1/ext/mysql_api
/usr/bin/ruby -I /usr/lib/ruby/2.7.0 -r ./siteconf20200504-17319-ejdjvs.rb extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclient-dir
--without-mysqlclient-dir
--with-mysqlclient-include
--without-mysqlclient-include=${mysqlclient-dir}/include
--with-mysqlclient-lib
--without-mysqlclient-lib=${mysqlclient-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-m-dir
--without-m-dir
--with-m-include
--without-m-include=${m-dir}/include
--with-m-lib
--without-m-lib=${m-dir}/lib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-z-dir
--without-z-dir
--with-z-include
--without-z-include=${z-dir}/include
--with-z-lib
--without-z-lib=${z-dir}/lib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socket-dir
--without-socket-dir
--with-socket-include
--without-socket-include=${socket-dir}/include
--with-socket-lib
--without-socket-lib=${socket-dir}/lib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsl-dir
--without-nsl-dir
--with-nsl-include
--without-nsl-include=${nsl-dir}/include
--with-nsl-lib
--without-nsl-lib=${nsl-dir}/lib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcc-dir
--without-mygcc-dir
--with-mygcc-include
--without-mygcc-include=${mygcc-dir}/include
--with-mygcc-lib
--without-mygcc-lib=${mygcc-dir}/lib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlibTo see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/name/.gem/ruby/2.7.0/extensions/x86_64-linux/2.7.0/mysql-2.9.1/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/name/.gem/ruby/2.7.0/gems/mysql-2.9.1 for inspection.
Results logged to /home/name/.gem/ruby/2.7.0/extensions/x86_64-linux/2.7.0/mysql-2.9.1/gem_make.out
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。