Use Checkinstall to make Zabbix rpm packages under Linux

Source: Internet
Author: User
Tags snmp

Currently, to install the Zabbix client on all client side, because you want to specify a predefined path, make RPM packages from Zabbix resources, there are several ways to make RPM packages: Rombuild, The main is to write spec file one is: Checkinstall open source

One is: Fpm,ruby write, also open-source

Learn how to make RPM packages by checkinstall 1. Download and install wget http://asic-linux.com.mx/~izto/checkinstall/files/source/ checkinstall-1.6.2.tar.gz && tar fxz checkinstall-1.6.2.tar.gz && cd checkinstall-1.6.2 && make && make install it's easy, so it's OK, we'll use it after the installation. Let's start with this. We used to install the source package./confugure a bunch of parameters and make final make install. Checkinstall This tool after installing a software does not need the final make install the first 2 steps to make a direct use of checkinstall to do the line below I just use a Zabbix I'll use this to make a piece of it in advance need: Yum install net- SNMP net-snmp-devel                 Yum install LIBCURL-DEVELCD zabbix-2.2.1./con Figure–prefix=/usr/local/zabbix–enable-server–enable-agent–with-mysql–with-net-snmp–with-libcurl && Make good to finish these 2 steps and then use Checkinstall tool [[email protected] zabbix-2.2.1]# checkinstall checkinstall 1.6.2, Copyright F Elipe Eduardo Sanchez Diaz Duran The software was promulgated under the GNU GPL Copyright Agreement of the CHECKINSTALLRC file is not found at:/usr/local/sbin/. /CHECKINSTALLRC is assumed to be the default value. The package documentation directory./doc-pak does nOT exist. Should I create a default set of package docs? [y]: Y Prepare the documentation for the package ... OK, select the packaging method you want to use. Slackware [S], RPM [R] or Debian [D]? R please write a description for this package. End your description with a blank line or EOF. >> This is a Zabbix install file>> package will be created with the following values: 1-summary: [This is a Zabbix install file]2-name: [Zabbi X]3-version: [2.2.1]4-release: [1]5-license: [GPL]6-group: [Applications/system]7-architecture: [x86_6 4]8-source Location: [zabbix-2.2.1]9-alternate Source location: []10-requires: []11-provides: [Zabbix] Enter a number Words to change them, or press ENTER to continue: (This means that if there is a need to change the place installing with make install ...
If you encounter an error: ERROR:ld.so:object '/usr/local/lib64/installwatch.so ' from ld_preload cannot be preloaded:ignored.make[1]: Entering directory '/tmp/checkinstall-1.6.2/zabbix-2.2.1/src ' ERROR:ld.so:object '/usr/local/lib64/installwatch.so ' From Ld_preload cannot is preloaded:ignored. ERROR:ld.so:object '/usr/local/lib64/installwatch.so ' from ld_preload cannot is preloaded:ignored. Making Install in LIBS solution: Echo "/usr/local/lib64" >/etc/ld.so.conf.d/installwatch.confldconfigln-s/usr/local/ lib/installwatch.so/usr/local/lib64/installwatch.so if normal, there will be a log output: Making install in libsmake[2]: Entering directory '/tmp/checkinstall-1.6.2/zabbix-2.2.1/src/libs ' Making install in zbxcryptomake[3]: Entering directory '/tmp/ Checkinstall-1.6.2/zabbix-2.2.1/src/libs/zbxcrypto ' make[4]: Entering directory '/tmp/checkinstall-1.6.2/ Zabbix-2.2.1/src/libs/zbxcrypto ' make[4]: Nothing-to-be-done for ' install-exec-am '. Make[4]: Nothing to is done for ' install -data-am '. make[4]: Leaving directory '/tmp/checkinstall-1.6.2/zabbix-2.2.1/src/libs/zbxcrypto ' make[3]: Leaving directory '/tmp/checkinstall-1.6.2/zabbix-2.2.1/src/libs/ Zbxcrypto ' Making install in zbxcommonmake[3]: Entering directory '/tmp/checkinstall-1.6.2/zabbix-2.2.1/src/libs/ Zbxcommon ' make[4]: Entering directory '/tmp/checkinstall-1.6.2/zabbix-2.2.1/src/libs/zbxcommon ' make[4]: nothing to Be do for ' install-exec-am '. Make[4]: Nothing to is done for ' install-data-am '. =============================== Installation Success = = =============================copying Documentation directory...././news./install./authors./copying./readme./ Changelog copy files to temp directory ... OK done. The new package have been saved to/usr/src/redhat/rpms/x86_64/zabbix-2.2.1-1.x86_64.rpm you can install it in your system Anytime using:      rpm-i zabbix-2.2.1-1.x86_64.rpm, after the/usr/src/redhat/rpms/x86_64/path, will produce the package SCP to client side, perform rpm to install SCP zabbix-2.2.1-1.x86_64.rpm [email protected]:/tmpclient End Installation:[[email  Protected] tmp]# rpm-ivh zabbix-2.2.1-1.x86_64.rpmpreparing ... # ########################################## [100%]   1:zabbix ########################################### [100%] Content under Installation path/usr/local/zabbix[[email protected] zabbix]# lsbin etc sbin Shareok, this way of making is OK


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.