ZABBIX 6.0β版 コンパイル手順 のバックアップ(No.1)
- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- ソース を表示
- ZABBIX 6.0β版 コンパイル手順 へ行く。
- 1 (2021-12-25 (土) 14:03:21)
目次
概要 †
CentOS8上でZabbix 6.0のソースコードをコンパイルする手順。
Zabbix Serverを動作させることが目的ではなく、Zabbixのライブラリのバイナリを使うことを目的とした手順となる。
環境 †
OS | CentOS Stream release 8 |
Zabbix | zabbix-6.0.0beta1 |
コンパイル手順 †
パッケージ導入 †
コンパイルを行うために必要なパッケージを導入する。
dnf install make dnf install gcc dnf install mariadb-devel dnf install net-snmp-devel dnf install libevent-devel dnf install pcre dnf install pcre-devel
ソースコードの入手 †
Zabbixのプレリリース版のソースコードをダウンロードする。
- 配布元
https://www.zabbix.com/jp/download_sources#pre-release
コンパイル †
- 1. ソースコードのダウンロード
wget https://cdn.zabbix.com/zabbix/sources/development/6.0/zabbix-6.0.0beta1.tar.gz tar xfvz zabbix-6.0.0beta1.tar.gz cd zabbix-6.0.0beta1
- 2. configure
./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp
正常に完了すると以下の様に表示される。
Configuration: Detected OS: linux-gnu Install path: /usr/local Compilation arch: linux Compiler: cc Compiler flags: -g -O2 Library-specific flags: database: -I/usr/include/mysql -I/usr/include/mysql/mysql Net-SNMP: -I. -I/usr/include Enable server: yes Server details: With database: MySQL WEB Monitoring: no SNMP: yes IPMI: no SSH: no TLS: no ODBC: no Linker flags: -L/usr/lib64 -L/usr/lib64/ -rdynamic Libraries: -lmariadb -lnetsnmp -lz -lpthread -levent -lm -ldl -lresolv -lpcre Configuration file: /usr/local/etc/zabbix_server.conf External scripts: /usr/local/share/zabbix/externalscripts Alert scripts: /usr/local/share/zabbix/alertscripts Modules: /usr/local/lib/modules Enable proxy: no Enable agent: yes Agent details: TLS: no Modbus: no Linker flags: -rdynamic Libraries: -lz -lpthread -lm -ldl -lresolv -lpcre Configuration file: /usr/local/etc/zabbix_agentd.conf Modules: /usr/local/lib/modules Enable agent 2: no Enable web service: no Enable Java gateway: no LDAP support: no IPv6 support: yes *********************************************************** * Now run 'make install' * * * * Thank you for using Zabbix! * * <http://www.zabbix.com> * ***********************************************************