首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装mysql2-0.3.11

无法安装mysql2-0.3.11
EN

Stack Overflow用户
提问于 2013-06-03 17:27:03
回答 2查看 263关注 0票数 1

我想在Debian7.0上安装Gitlab,当我想安装这个包时,mysql2-0.3.11会出错

代码语言:javascript
复制
    root@v22013051598612672:/home/git/gitlab# gem install mysql2 -v '0.3.11'
    Fetching: mysql2-0.3.11.gem (100%)
    Building native extensions.  This could take a while...
    ERROR:  Error installing mysql2:
    ERROR: Failed to build gem native extension.

    /usr/local/bin/ruby extconf.rb
    checking for rb_thread_blocking_region()... yes
    checking for rb_wait_for_single_fd()... yes
    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.



   Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1 /gems/mysql2-0.3.11 for inspecti                                                on.
   Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/mysql2-0.3.11/ext/mysql2/gem_make.out

我有个主意吗?

Mfg user2182545 (ternes3)

PS:我需要它做GitLAB

EN

回答 2

Stack Overflow用户

发布于 2013-06-03 17:37:43

尝试通过apt-get install mysql-server libmysqlclient libmysqlclient-dev mysql-client mysql-common安装mysql +库

票数 0
EN

Stack Overflow用户

发布于 2013-06-03 17:59:50

第754期提到即使在gem install mysql2apt-get install libmysqlclient-dev之后也会看到这个错误。

但它也补充道:

编辑:解决了!

代码语言:javascript
复制
sudo apt-get install libmariadbclient16-dev

检查这是否是你的Debian上真正丢失的部分。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16902404

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档