Comments (6)
It is for more easy deployment.
With static linking it has runtime dependencies only on libc.
To build ClickHouse on other distributions, there are several ways:
- Build ICU, GLib2 from sources and use compiled static libraries (install to /usr/local as default: libraries is searched there).
- Change static linking to shared (.a to .so) in libs/libcommon/CMakeLists.txt
We don't have official packages for other distributions, but see below...
To install ClickHouse on other distributions, you often don't need to rebuild it and could use .deb packages.
So, package for Trusty depends on libc6 2.19..2.20 and package for Precise depends on libc6 2.15..2.16.
To determine libc version of your system, run ldd --version
or run /lib/x86_64-linux-gnu/libc.so.6
or /lib64/libc.so.6
as executable.
If you have matching version, just install debian packages by unpacking manually:
ar x clickhouse-server-base_1.1.53988_amd64.deb
sudo tar -x -C / -f data.tar.xz
tar xf control.tar.gz
sed -r -i 's/update-rc.d.+/true;/' ./postinst
sudo ./postinst
ar x clickhouse-server-common_1.1.53988_amd64.deb
sudo tar -x -C / -f data.tar.xz
ar x clickhouse-client_1.1.53988_amd64.deb
sudo tar -x -C / -f data.tar.xz
sudo service clickhouse-server start
Also it's possible to build ClickHouse on Ubuntu Trusty with experimental option to depend only on older libc.
If you need it, do the following steps:
- Temporarily obtain a server, VM or container with Ubuntu Trusty.
- Build ClickHouse according to the instructions: https://github.com/yandex/ClickHouse/blob/master/doc/build.md,
but instead of./release --standalone
doGLIBC_COMPATIBILITY=1 ./release --standalone
. - Install generated packages on target system with manual unpacking.
from clickhouse.
How can you specify dir where libicu is located? If it's not in system dir.
from clickhouse.
You may add 'link_directories' entry into root CMakeLists.txt file.
from clickhouse.
hi,I followed your advice above to build clickhouse on Ubuntu Trusty ,and i want to start up clickhouse on centOS 5.5 whose glibc is 2.5.then It shows that it need glibc 2.10.so,i try to upgrade glibc to 2.10,but it seems that the 2.5 glibc is dependency of many things in centos5.5.Is there a way to start clickhouse on centos5.5?
from clickhouse.
Could you afford at least CentOS 6?
It is possible to make compatibility with glibc 2.5, but it requires additional amount of work.
from clickhouse.
I just copy file which glibc-2.14 installed, to centos5.5 ,now the glibc update to 2.14.I dont know whether this approach is right,but it works.
from clickhouse.
Related Issues (20)
- clickhouse-keeper cluster stops when a second node is started using docker containers
- New command: EVAL HOT 1
- MaterializedPostgreSQL - Failure during '[END COPY]': ERROR: replication slot "postgres" does not exist when I connect Clickhouse to Patroni's PostgreSQL HOT 1
- Assertion: Logical error: '0 < size' WITH TOTALS
- Is attach from table with different storage policy allowed on 24.3? HOT 1
- MySQL Engine does not respect connection auto-closing settings
- clickhouse-keeper drops snapshot if it doesn't recognize the format HOT 1
- Aggregation function that respects the order of data HOT 3
- multi sql exec with user defined function will stuch in cluster HOT 8
- When using Final in the WITH clause, the results are not merged. HOT 4
- Aggregation function `max` produces wrong answer(another aggregation functions have the same issue) HOT 9
- Group by nullable field HOT 1
- Materialized view dependencies not being set correctly HOT 4
- <Warning> CgroupsMemoryUsageObserver: Exceeded sort memory limit
- DDL sql execute timeout HOT 2
- UNKNOWN_IDENTIFIER on Select from subselect with more than 2 joins and identical column name HOT 1
- cgroups v2 detection fails in containerized environment HOT 1
- WITH FILL end of the month
- How to use AggregateMergeTree for argMax HOT 4
- Misleading exception message in `corrMatrix`, `covarPopMatrix`, `covarSampMatrix` aggregate functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse.