首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mariadb with rails:无法安装libmysqlclient-dev

mariadb with rails:无法安装libmysqlclient-dev
EN

Stack Overflow用户
提问于 2016-04-21 18:39:02
回答 2查看 6.6K关注 0票数 7

我在64位的Ubuntu 15:10上安装了mariadb-10.1。

我已经成功安装了libmysqlclient18,但在尝试安装libmysqlclient-dev时出现错误。

代码语言:javascript
复制
steve@steve:~$ dpkg -s libmysqlclient18
Package: libmysqlclient18
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 10
Maintainer: MariaDB Developers <maria-developers@lists.launchpad.net>
Architecture: amd64
Source: mariadb-10.1
Version: 10.1.13+maria-1~wily
Replaces: libmysqlclient18 (<< 10.1.13+maria-1~wily)
Depends: libmariadbclient18 (= 10.1.13+maria-1~wily)
Description: Virtual package to satisfy external depends
 This is an empty package that provides an updated "best" version of
 libmysqlclient18 that does not conflict with the libmariadbclient18
 package.
 .
 MariaDB is a fast, stable and true multi-user, multi-threaded SQL database
 server. SQL (Structured Query Language) is the most popular database query
 language in the world. The main goals of MariaDB are speed, robustness and
 ease of use.
Homepage: http://mariadb.org/
steve@steve:~$ sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 libmysqlclient-dev : Depends: libmysqlclient18 (= 5.6.28-0ubuntu0.15.10.1)                  but 10.1.13+maria-1~wily is to be installed
E: Unable to correct problems, you have held broken packages.

有没有人能建议如何解决这个问题?

谢谢:-)

史蒂夫

EN

回答 2

Stack Overflow用户

发布于 2016-07-27 22:00:14

使用MariaDB时,必须安装libmariadbclient-dev而不是libmysqlclient-dev

代码语言:javascript
复制
sudo apt-get install libmariadbclient-dev
票数 10
EN

Stack Overflow用户

发布于 2021-10-13 04:54:47

虽然安装libmariadbd-dev或libmariadbclient-dev包是最简单的方法,但在某些操作系统或包管理器中不可用。

例如,在装有自制软件的mac上,这是不可用的,但我找到了一个变通方法。

要在mac上安装gem连接器,您需要使用homebrew中的mariadb- mysql2 -c。此包与Mariadb符号链接冲突,因此您需要在终端中运行以下命令:

代码语言:javascript
复制
brew unlink mariadb
brew install mariadb-connector-c

在rails项目目录中,执行:bundle install (或gem install mysql2)

代码语言:javascript
复制
brew uninstall mariadb-connector-c
brew link mariadb
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36767081

复制
相关文章

相似问题

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