Ошибка при компиляции сервера. Версия 4.4.1.
-
Здравствуйте!
При компиляции из исходников выдает ошибку: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 1I 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'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
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login