반응형
레일 포함 mariadb: libmysqlclient-dev를 설치할 수 없습니다.
mariadb-10.1을 64bit Ubuntu 15:10에 설치했습니다.
libmysqlclient18이 정상적으로 설치되었지만 libmysqlclient-dev를 설치하려고 하면 오류가 발생합니다.
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.
이 문제를 해결할 방법을 제안할 수 있는 사람이 있습니까?
감사합니다:-)
스티브
마리아를 사용할 때는 libmysqlclient-dev 대신 libmariadbclient-dev를 설치해야 합니다.DB
sudo apt-get install libmariadbclient-dev
libmariadbd-dev 또는 libmariadbclient-dev 패키지를 설치하는 것이 가장 쉬운 방법이지만 일부 OS 또는 패키지 매니저에서는 사용할 수 없습니다.
예를 들어 homebrew를 탑재한 Mac에서는 이 기능을 사용할 수 없지만 회피책을 찾았습니다.
mac에 gem mysql2를 설치하려면 홈브루에 mariadb-connector-c가 필요합니다.이 패키지는 Mariadb 심볼링크와 경합하므로 단말기에서 다음을 실행해야 합니다.
brew unlink mariadb
brew install mariadb-connector-c
레일 프로젝트 디렉토리에서 다음을 실행합니다.bundle install
(또는gem install mysql2
)
brew uninstall mariadb-connector-c
brew link mariadb
언급URL : https://stackoverflow.com/questions/36767081/mariadb-with-rails-cant-install-libmysqlclient-dev
반응형
'programing' 카테고리의 다른 글
javascript에서 숫자를 반올림하는 방법은 무엇입니까? (0) | 2023.01.21 |
---|---|
장고 구글 앱 엔진 서버 오류 500 (0) | 2023.01.21 |
Python에서 표현식과 문장의 차이점은 무엇입니까? (0) | 2023.01.21 |
Javascript 배열 검색 및 문자열 제거 (0) | 2023.01.21 |
Jupyter 노트북의 tqdm은 새로운 진행 표시줄을 반복적으로 인쇄합니다. (0) | 2023.01.21 |