Здравствуйте!
При компиляции из исходников выдает ошибку:
make[3]: вход в каталог «~/netxms-4.4.1/src/libnetxms»
CXX libnetxms_la-array.lo
CXX libnetxms_la-base32.lo
CXX libnetxms_la-base64.lo
CXX libnetxms_la-bytestream.lo
CXX libnetxms_la-calltbl.lo
CXX libnetxms_la-cc_mb.lo
CXX libnetxms_la-cc_ucs2.lo
CXX libnetxms_la-cc_ucs4.lo
CXX libnetxms_la-cc_utf8.lo
CXX libnetxms_la-cch.lo
CXX libnetxms_la-cert.lo
CXX libnetxms_la-config.lo
CXX libnetxms_la-crypto.lo
CXX libnetxms_la-debug_tag_tree.lo
CXX libnetxms_la-diff.lo
CXX libnetxms_la-dirw_unix.lo
CXX libnetxms_la-geolocation.lo
CXX libnetxms_la-getopt.lo
CXX libnetxms_la-getoptw.lo
CXX libnetxms_la-dload.lo
CXX libnetxms_la-hash.lo
CXX libnetxms_la-hashmapbase.lo
CXX libnetxms_la-hashsetbase.lo
CC libnetxms_la-ice.lo
CXX libnetxms_la-icmp.lo
CXX libnetxms_la-iconv.lo
CXX libnetxms_la-inet_pton.lo
CXX libnetxms_la-inetaddr.lo
CXX libnetxms_la-itoa.lo
CXX libnetxms_la-log.lo
CC libnetxms_la-lz4.lo
CXX libnetxms_la-main.lo
main.cpp:26:10: фатальная ошибка: nxlibcurl.h: Нет такого файла или каталога
#include <nxlibcurl.h>
Сконфигурировано с параметрами:
./configure --with-server --with-pgsql --with-agent --prefix=/opt/netxms
С параметром --without-curl ведет себя аналогично.
I have the same compiling error.
main.cpp:26:10: fatal error: nxlibcurl.h: No such file or directory
26 | #include <nxlibcurl.h>
| ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1047: libnetxms_la-main.lo] Error 1
I tried to compile only the Netxms agent on Rocky Linux 9 and Centos 7, with:
./configure --prefix=/opt/netxms --with-agent
В системе должен быть установлен пакет libcurl-dev (так он называется на Debian платформах, на других дистрибутивах возможно иначе)
Про ключ --without-curl я постараюсь уточнить, возможно он уже не актуален
I have lib-curl installed.
bash-5.1# dnf list installed |grep libcurl
libcurl.x86_64 7.76.1-23.el9_2.2 @baseos
libcurl-devel.x86_64 7.76.1-23.el9_2.2 @appstream
I've just tried to compile agent on Centos 7, it was successful. I used https://netxms.org/download/releases/4.4/netxms-4.4.1.tar.gz source archive.
I used the following commands (mariadb and postures stuff of cource are not needed for agent)
yum install make libtool gcc gcc-c++ mariadb-devel postgresql-devel pcre-devel expat-devel sqlite-devel openssl-devel libcurl-devel zlib-devel libssh-devel mosquitto-devel
./configure --prefix=/opt/netxms --with-agent
make
make install