Altinity / clickhouse-mysql-data-reader

utility to read mysql data
MIT License
368 stars 94 forks source link

Installing the package using MariaDB #146

Open bkosun opened 5 years ago

bkosun commented 5 years ago

Hello!

When trying to install clickhouse-mysql (RPM), an error occurs:

# yum install -y clickhouse-mysql
...
--> Finished Dependency Resolution
Error: Package: clickhouse-mysql-0.0.20180319-1.noarch (Altinity_clickhouse)
           Requires: mysql-community-devel
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Requires mysql-community-devel package:

https://github.com/Altinity/clickhouse-mysql-data-reader/blob/57934187175822bddc0800eda47322d5efc4f2ff/pack/clickhouse-mysql.spec#L24

This package is not in the official MariaDB repository:

# yum install mysql-community-devel
...
No package mysql-community-devel available.
Error: Nothing to do

Isn't it enough that the mysql-devel package is installed on the system?

# yum install mysql-devel
...
Package MariaDB-devel-10.3.13-1.el7.centos.x86_64 already installed and latest version
Nothing to do

I had to fix the requirements and build the RPM package manually to install the clickhouse-mysql-data-reader

When you try to install the mysql-devel package for the MySQL Community Server, the mysql-community-devel package will be automatically installed.

https://mariadb.com/kb/en/library/mariadb-vs-mysql-compatibility/

MariaDB 10.3.13 CentOS Linux release 7.6.1810

Thanks!

tuhoanganh commented 5 years ago

try using Pip to install: curl -s https://packagecloud.io/install/repositories/altinity/clickhouse/script.rpm.sh | sudo bash sudo yum install -y epel-release sudo yum install -y clickhouse-client sudo yum install -y mariadb-devel MariaDB-shared sudo yum install -y gcc sudo yum install -y python34-devel python34-pip

then: sudo pip3 install clickhouse-mysql