2016-04-21 140 views
7

我有mariadb-10.1安裝在股票64位Ubuntu的15:10。mariadb與鐵軌:無法安裝libmysqlclient-dev

我已成功安裝libmysqlclient18,但嘗試安裝libmysqlclient-dev時出現錯誤。

[email protected]:~$ dpkg -s libmysqlclient18 
Package: libmysqlclient18 
Status: install ok installed 
Priority: optional 
Section: libs 
Installed-Size: 10 
Maintainer: MariaDB Developers <[email protected]> 
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/ 
[email protected]:~$ 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. 

任何人都可以建議如何解決這個問題嗎?

感謝:-)

史蒂夫

回答

9

你必須使用MariaDB的

sudo apt-get install libmariadbclient-dev 
+0

時,爲了安裝gearmand與MariaDB的作爲後端,這個庫安裝libmariadbclient-DEV的libmysqlclient-dev的,而不是需要 – mattimatti

+0

有沒有新的名字?我收到「無法找到軟件包」。 –

+0

看起來像新的寶石名稱只是'libmariadb-dev'。當我嘗試安裝時,我收到了這條消息:'請注意,選擇'libmariadb-dev'而不是'libmariadbclient-dev'' –