Ubuntu 16.04 compiled installation zabbix3.4 encountered problems.

Source: Internet
Author: User
Tags snmp snmpget

Compile and install zabbix3.4, the official tutorial, but encountered some error:

To summarize, these environments need to be installed:

Compiling and installing the Pcre Library
Compiling and installing Libevent-devel
Compiling and installing Net-snmp-devel
Apt-get Install Libmysqld-dev

Here are the references you'll find:

1, Error:mysql Library not found

Refer to this one to solve MySQL problem.

Zabbix in Configure (CentOS) for your answer: in the CentOS system, the installation of Zabbix for configure encounter the following 4 major issues./configure--enable-server--enable-agent--with-mysql--with-net-snmp--with-jabber--with-Libcurl1Configure:error:MySQL Library Not foundthe problem are not installed MySQL-devel apt-get install libmysqld-Dev (this is actually used on Ubuntu, Plus start MySQL service is OK)2Configure:error:Jabber Library Not foundthe problem are not installed Jabber Lib #wgethttp//iksemel.googlecode.com/files/iksemel-1.4.tar.gzUnzip, configure, and install after the download is complete:TarZXVF iksemel-1.4.Tar. GZ CD Iksemel-1.4Configure Make Make Installafter the Zabbix to configure still encounter this problem, then specify the Jabber directory: #./configure--enable-server--enable-agent--with-mysql--with-net-snmp--with-jabber=/usr/local/--with-Libcurl3Configure:error:Not found Curl Library #Yum Installcurl-Devel (this item was not tested)4Configure:error:Not found net-SNMP LibraryYum Installnet-snmp-Devel Read the above four points is not together also encountered the same problem, then press on the way to solve it!

2, the display does not install the NET-SNMP.

The steps are as follows:1, Get net-SNMP installation package, here we choose the source code installation method, of course you can also choose Ubuntu Network download mode installation, such as:>>sudoApt-getInstallnet-SNMP or yourself from the network down to manually compile the installation, here I choose the latest version of the net-snmp5.7.1, the downloaded format is net-snmp-5.7.1.Tar. GZ2, we must first to extract the source code installation package, as follows: We can first build an SNMP directory>>mkdirsnmptemp>>CD snmptemp>>MVnet-snmp-5.7.1.Tar. GZ ./>>Tar-ZXVF net-snmp-5.7.1.Tarafter extracting the. GZ, we will change the directory name as follows:>>MVnet-snmp-5.7.1./net-SNMP3, install the SNMP dependency package under Ubuntu, as follows:>>sudoApt-getInstalllibperl-the installation method above dev is downloaded first, then installed automatically4, go to unzip directory, start configuration>> CD net-SNMP>>./configure--with-default-snmp-version="3"--with-sys-contact="@ @no. where"--with-sys-location="Unknown"--with-logfile="/var/log/snmpd.log"--with-persistent-directory="/var/net-snmp"after the configuration is complete, you can see the following about Net-configuration information for SNMP:---------------------------------------------------------Net-SNMP Configuration Summary:---------------------------------------------------------5, compiling, and installing>> CD net-SNMP>>sudo  Make>>sudo  Make Install6, set the command to run SNMP in any directory, and set the following:EchoExport Ld_library_path=/usr/local/lib >>/root/. BASHRC7, verify that the installation is successful, as follows:>> Snmpget--Version If successful, displays the current installation version number, NET-SNMP version:5.7.1If you are prompted with the following error: Snmpget:error whileLoading shared libraries:libnetsnmp.so. -: Cannot open sharedObject file: No SuchfileThe or directory solution is as follows:CP/usr/local/lib/libnetsnmp.so. -/usr/Lib or the/usr/local/lib under all the packages are copied to/usr/lib, run the above command to get the version, you can correctly output the version number, said Ubuntu under the installation NET-SNMP success!

Ubuntu 16.04 compiled installation zabbix3.4 encountered problems.

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.