Build Wazuh-manager from source code

168 views
Skip to first unread message

Maxim Parpaley

unread,
Aug 4, 2023, 1:45:28 PM8/4/23
to Wazuh mailing list

Hi,

I tried to build wazuh-manager version - 4.3.10 from source.
i installed all dependences from documents.
i use 2 command:
make deps EXTERNAL_SRC_ONLY=1 TARGET=manager in wazuh/src directory
sudo ./install from wazuh directory
but i got error like that:
ảnh
that told me that could't build python.
libwazuhext.so: cannot open shared object file: No such file or directory
libwazuhext.so file was found in source code
ảnh
i tried with other version - 4.4.5 and the same error.

How can i solve this situation ?

Best Regards,

Lucio Donda

unread,
Aug 4, 2023, 2:13:13 PM8/4/23
to Wazuh mailing list
Hi Maxim,
Have you seen our guide for this purpose -> https://documentation.wazuh.com/4.3/deployment-options/wazuh-from-sources/wazuh-server/index.html
Are you using the  EXTERNAL_SRC_ONLY  for some reason? 
In that guide you'll find that you need some dependencies before building:
python gcc g++ make libc6-dev curl policycoreutils automake autoconf libtool libssl-dev
Besides that, you'll need  Cmake 3.18
That said, with:
make deps TARGET=server
and then the ./install.sh on the wazuh directory should work.
Your error may also be caused for the permissions on the directories, right? Was any error or warning before that? 
Let me know!

Maxim Parpaley

unread,
Aug 4, 2023, 10:02:39 PM8/4/23
to Wazuh mailing list

Hi Lucio,

I fix the command
make deps EXTERNAL_SRC_ONLY=1 TARGET=server
and tried again, the same error occured.
i installed all dependencies before building.
I want to try build wazuh-manager from source with EXTERNAL_SRC_ONLY  for no reason (may be curious how it work)

Best regards,

Lucio Donda

unread,
Aug 14, 2023, 8:48:35 AM8/14/23
to Wazuh mailing list
Hi Maxim, sorry for the late response!
Let me ask a few things:
In which os are you building it?
have you doubled check the version dependencies (GCC and CMake? )
there's an install readme over here -> https://github.com/wazuh/wazuh/blob/3738e16e07e148ee4cd5dd9203a539569afa4f33/INSTALL
where you can find a note regarding this:
Note: `gcc/g++ 5.5` and `CMake 3.12.4` are the minimum required versions to be installed.
Besides that, in every new try, are you executing make clean? that may lead to a slower process but will assure that you making a fresh compilation.
Let me know and again sorry for the late response!
Reply all
Reply to author
Forward
0 new messages