`

安装ruby gem mysql 出现 checking for mysql_query() in -lmysqlclient... no

阅读更多
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
	ERROR: Failed to build gem native extension.

    current directory: /home/fz/.rvm/gems/ruby-2.3.0/gems/mysql-2.9.1/ext/mysql_api
/home/fz/.rvm/rubies/ruby-2.3.0/bin/ruby -r ./siteconf20160603-21721-69utdl.rb extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -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=/home/fz/.rvm/rubies/ruby-2.3.0/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-mysqlclientlib
	--without-mysqlclientlib
	--with-mlib
	--without-mlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-zlib
	--without-zlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-socketlib
	--without-socketlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-nsllib
	--without-nsllib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-mygcclib
	--without-mygcclib
	--with-mysqlclientlib
	--without-mysqlclientlib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/fz/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/mysql-2.9.1/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/fz/.rvm/gems/ruby-2.3.0/gems/mysql-2.9.1 for inspection.
Results logged to /home/fz/.rvm/gems/ruby-2.3.0/extensions/x86_64-linux/2.3.0/mysql-2.9.1/gem_make.out

 出现这个错误,是因为少安装了一个lib, 执行

sudo apt-get install libmysqlclient-dev

 

分享到:
评论

相关推荐

    nginx-1.20.1-1.el7.ngx.x86_64.rpm

    linux下的nginx--rpm安装包

    Python库 | types_six-1.16.1-py2.py3-none-any.whl

    在使用`types_six`时,开发者可以期待类似的功能,但可能具有更好的类型提示支持,这对于使用Type Checking工具(如MyPy)的项目尤其有用。类型注解可以提升代码的可读性和可维护性,同时在编译阶段就能发现潜在的...

    kernel-debug-devel-4.18.0-315.el8.x86_64.rpm

    官方离线安装包,测试可用。使用rpm -ivh [rpm完整包名] 进行安装

    Python库 | mypy_boto3_quicksight-1.17.11.0-py3-none-any.whl

    Python库 `mypy_boto3_quicksight-1.17.11.0-py3-none-any.whl` 是一个专门为 Python 开发者设计的工具,它与Boto3库相结合,提供了类型检查(type checking)功能,用于增强Boto3在QuickSight上的使用体验。...

    libselinux-devel-2.5-14.1.el7.x86_64.rpm

    离线安装包,亲测可用

    PyPI 官网下载 | biobb_structure_checking-3.7.0.tar.gz

    **PyPI 官网下载 | biobb_structure_checking-3.7.0.tar.gz** PyPI(Python Package Index)是Python编程语言的官方软件仓库,它提供了大量的第三方库供开发者下载和使用。"biobb_structure_checking-3.7.0.tar.gz...

    Linux-jpcap-gcc

    checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH ------------------------ linux 中,安装,提示缺少其他...

    gcc4.8.5离线安装rpm包含依赖

    ## rpm安装gcc ```bash rpm -Uvh *.rpm --nodeps --force ``` ### 验证 ```bash gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper ...

    PyPI 官网下载 | mypy_boto3_medialive-1.17.14.0-py3-none-any.whl

    6. **Type Checking with Mypy**: Mypy是Python的一个静态类型检查工具,它可以检查类型注解,帮助开发者在运行代码之前发现类型错误。结合Boto3库使用,mypy可以增加代码的可读性和可靠性。 7. **Python库的版本...

    vim-8.2.tar.bz2

    checking for tgetent()… configure: error: NOT FOUND! You need to install a terminal library; for example ncurses. Or specify the name of the library with –with-tlib. [点击下载ncurses]...

    Python库 | biobb_structure_checking-3.9.2-py3-none-any.whl

    资源分类:Python库 所属语言:Python 资源全名:biobb_structure_checking-3.9.2-py3-none-any.whl 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059

    jdk-10.0.2_linux-x64_bin.tar.gz

    5. **JEP 282: Compile-Time Nullness Checking for Standard Libraries**:这是一个开发工具,它增强了Java的编译器,以便在标准库中进行空指针检查,有助于减少运行时错误。 6. **JEP 296: incubator modules: ...

    Python库 | mypy_boto3_appconfig-1.17.55.0-py3-none-any.whl

    `mypy_boto3_appconfig` 是一个专门为Python开发的库,它扩展了`boto3`库的功能,提供了类型检查(Type Checking)支持,以增强对AWS AppConfig服务的交互。AWS AppConfig是一项AWS服务,用于安全、有序地部署和管理...

    FlexGraphics_V_1.79_D4-XE10.2_Downloadly.ir

    - ADD Added editing form for TBackgroundOptionsProp property in the FlexEdit/FlexEditSE projects. Version 1.6 ----------- - ADD Import/Export modules support (new unit FlexFileFormats) - FIX HPen ...

    Python库 | mypy_boto3_honeycode-1.17.10.0-py3-none-any.whl

    `mypy_boto3_honeycode`是一个专门为Python设计的库,它与Amazon Honeycode服务进行交互,允许开发者利用类型检查(Type Checking)功能进行更高效、更安全的编程。 首先,`mypy`是一个静态类型检查器,它可以在...

    nginx-1.25.1-1.el6.ngx.x86-64.rpm

    nginx官方不再更新centos6版,此rpm包构建于最新主线1.25.1

    mmseg4j-solr-2.4.0.jar

    首先,mmseg4j是由李智勇开发的一个基于Java的中文分词工具,它的全称是“Minimum Match Segmentation for Java”。mmseg4j采用了最小匹配算法,能有效地进行中文词汇的切分,具有较高的分词准确率。该库的特点包括...

    checking-in-analysis_Java.zip_run

    描述中提到,我们需要先安装Java的支持环境,即JDK 6更新13的32位版本(jdk-6u13-windows-i586-p.exe),然后在项目目录下的"checking-in"子目录中运行"run.bat"脚本来启动程序。 1. **Java环境搭建**: - JDK...

    automatic-electrical-checking.snapshot.2.zip

    automatic-electrical-checking.snapshot.2.zip

Global site tag (gtag.js) - Google Analytics