Hi,
I try installed zabbix 1.8.1 with option --with-ssh2 on debian lenny 5.0 but it's not work, after when I run make install I get errror:
Configure:
dpkg -l |grep libssh
ii libssh-2 0.2+svn20070321-4 A tiny C SSH library
ii libssh-2-dev 0.2+svn20070321-4 A tiny C SSH library. Development files
ii libssh2-1 0.18-1 SSH2 client-side library
ii libssh2-1-dev 0.18-1 SSH2 client-side library (development header
I try installed zabbix 1.8.1 with option --with-ssh2 on debian lenny 5.0 but it's not work, after when I run make install I get errror:
Code:
cc -DHAVE_CONFIG_H -I. -I../../../include -g -O2 -I/usr/include/postgresql -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -Iusr/include -I/usr/include -MT checks_ssh.o -MD -MP -MF .deps/checks_ssh.Tpo -c -o checks_ssh.o checks_ssh.c checks_ssh.c: In function ‘waitsocket’: checks_ssh.c:64: error: ‘LIBSSH2_SESSION_BLOCK_INBOUND’ undeclared (first use in this function) checks_ssh.c:64: error: (Each undeclared identifier is reported only once checks_ssh.c:64: error: for each function it appears in.) checks_ssh.c:67: error: ‘LIBSSH2_SESSION_BLOCK_OUTBOUND’ undeclared (first use in this function) make[3]: *** [checks_ssh.o] Błąd 1 make[3]: Opuszczenie katalogu `/opt/zabbix-1.8.1/src/zabbix_server/poller' make[2]: *** [install-recursive] Błąd 1 make[2]: Opuszczenie katalogu `/opt/zabbix-1.8.1/src/zabbix_server' make[1]: *** [install-recursive] Błąd 1 make[1]: Opuszczenie katalogu `/opt/zabbix-1.8.1/src' make: *** [install-recursive] Błąd 1
Code:
./configure --prefix=/usr/local/zabbix --with-pgsql --with-jabber --with-libcurl --with-net-snmp --enable-server --enable-agent --with-openipmi --with-ssh2
Code:
Configuration: Detected OS: linux-gnu Install path: /usr/local/zabbix Compilation arch: linux Compiler: gcc Compiler flags: -g -O2 -I/usr/include/postgresql -I/usr/local/include -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -I$/usr/include -I/usr/include Enable server: yes With database: PostgreSQL WEB Monitoring via: cURL Native Jabber: yes SNMP: net-snmp IPMI: openipmi Linker flags: -L/usr/lib -lOpenIPMI -lOpenIPMIposix -L/usr/lib -lpq -liksemel -lcurl -L/usr/lib -lnetsnmp -lcrypto -L/usr/lib -lnetsnmp -lcrypto -L$/usr/lib Libraries: -lm -lresolv -liksemel -lcurl -lnetsnmp -lssh2 Enable proxy: no Enable agent: yes Linker flags: -L/usr/lib -lOpenIPMI -lOpenIPMIposix Libraries: -lm -lresolv LDAP support: no IPv6 support: no
ii libssh-2 0.2+svn20070321-4 A tiny C SSH library
ii libssh-2-dev 0.2+svn20070321-4 A tiny C SSH library. Development files
ii libssh2-1 0.18-1 SSH2 client-side library
ii libssh2-1-dev 0.18-1 SSH2 client-side library (development header

Comment