Help wanted!
The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable. You can also use the original English version as a reference.
Mac OS XでClickHouseを構築する方法
ビルドはMac OS X10.15(Catalina)
自作のインストール
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
設置に必要なコンパイラ、ツール、図書館
$ brew install cmake ninja libtool gettext
ツつィツ姪"ツ債ツつケ
$ git clone --recursive [email protected]:ClickHouse/ClickHouse.git
または
$ git clone --recursive https://github.com/ClickHouse/ClickHouse.git
$ cd ClickHouse
ビルドClickHouse
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_CXX_COMPILER=`which clang++` -DCMAKE_C_COMPILER=`which clang`
$ ninja
$ cd ..
警告
Clickhouse-serverを実行する場合は、システムのmaxfiles変数を増やしてください。
注
Sudoを使用する必要があります。
これを行うには、次のファイルを作成します:
/ライブラリ/LaunchDaemons/limit.マックスファイルプリスト:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>limit.maxfiles</string>
<key>ProgramArguments</key>
<array>
<string>launchctl</string>
<string>limit</string>
<string>maxfiles</string>
<string>524288</string>
<string>524288</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ServiceIPC</key>
<false/>
</dict>
</plist>
次のコマンドを実行します:
$ sudo chown root:wheel /Library/LaunchDaemons/limit.maxfiles.plist
再起動しろ
チェックの場合は、利用できる ulimit -n
コマンド