반응형
우분투 14.04에 레일이 있는 MariaDB 10.1 및 MySQL2 보석
우분투 14.04에서 Rails 4.2/MariaDB 앱을 실행할 수 없습니다.MariaDB 10.1.9를 설치했습니다.
apt-get install software-properties-common
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
add-apt-repository 'deb [arch=amd64,i386] http://ftp.igh.cnrs.fr/pub/mariadb/repo/10.1/ubuntu trusty main'
apt-get update
apt-get install mariadb-server
또한 클라이언트:
apt-get install libmariadbclient-dev
MariaDB는 잘 작동하고 있습니다.
그러나 MySQL2 보석은 작동하지 않습니다.
다음과 함께 설치했습니다.
gem uninstall mysql2
gem install mysql2 -v='0.3.18' ----- mysql-config=/usr/bin/ mysql_config
Fetching: mysql2-0.3.18.gem (100%)
Building native extensions with: '--with-mysql-config=/usr/bin/mysql_config'
This could take a while...
Successfully installed mysql2-0.3.18
1 gem installed
그건 효과가 있다.mysql_config 파일을 열었는데 10.1.9 버전이 포함되어 있습니다.
그러나 앱을 배포할 때 "클래식" 오류가 발생합니다.
Incorrect MySQL client library version! This gem was compiled for 5.5.46 but the client library is 10.1.9-MariaDB.
하지만 마리아DB 10.1.9용으로 정리했습니다!!!
게다가, 제가 "libmariadbclient-dev" 이전에 "libmysqlclient18"도 설치한 적이 있다는 것에 주목하세요... 이것이 문제가 될 수 있는지는 모르겠습니다.
감사해요.
언급URL : https://stackoverflow.com/questions/33918779/mariadb-10-1-and-mysql2-gem-with-rails-on-ubuntu-14-04
반응형
'programing' 카테고리의 다른 글
| 내 sqli가 죽거나, 죽거나, 죽어야 합니까? (0) | 2023.09.20 |
|---|---|
| 자바스크립트 ES6 export const vs exportlet (0) | 2023.09.20 |
| 리눅스에 파이썬 두 가지 버전이 있습니다.2.7을 기본값으로 설정하는 방법 (0) | 2023.09.20 |
| 점 표기법 및 큰따옴표를 사용한 Oracle 12c JSON 쿼리 문제 (0) | 2023.09.20 |
| Windows Powershell을 통해 새 파일 만들기 (0) | 2023.09.20 |