Wazuh: Can not install wazuh on Centos 7

Created on 17 May 2019  路  3Comments  路  Source: wazuh/wazuh

|Wazuh version|Component|Install type|Install method|Platform|
|---|---|---|---|---|
| 3.9.0 | Wazuh component | local | Source | Centos 7 |

The error I got
CC libwazuhext.so cc: error: external/libffi/server/.libs/libffi.a: No such file or directory make: *** [libwazuhext.so] Error 1

What am I missing here?

TIA

bug buregression community

Most helpful comment

Hi @12obin,

There is an issue in the compilation procedure (Makefile). The installer is compiling the _libffi_ library, but the Wazuh's Makefile is defining a parameter that conflicts with the _libffi_'s Makefile.

I'm working on a fix right now, but you can patch the Makefile easily: https://github.com/wazuh/wazuh/blob/v3.9.0/src/Makefile#L629

Replace this line:

LIBFFI_LIB = $(EXTERNAL_LIBFFI)server/.libs/libffi.a

With:

LIBFFI_LIB = $(EXTERNAL_LIBFFI)$(TARGET)/.libs/libffi.a

Clean your project and retry to install.

This script should fix the issue and recompile:

cd src
sed -i 's,LIBFFI_LIB = $(EXTERNAL_LIBFFI)server/.libs/libffi.a,LIBFFI_LIB = $(EXTERNAL_LIBFFI)$(TARGET)/.libs/libffi.a,' Makefile
make clean
cd ..
sudo ./install.sh

Hope that helps you. Thank you very much for reporting this problem.

Best regards.

All 3 comments

Hi @12obin,

There is an issue in the compilation procedure (Makefile). The installer is compiling the _libffi_ library, but the Wazuh's Makefile is defining a parameter that conflicts with the _libffi_'s Makefile.

I'm working on a fix right now, but you can patch the Makefile easily: https://github.com/wazuh/wazuh/blob/v3.9.0/src/Makefile#L629

Replace this line:

LIBFFI_LIB = $(EXTERNAL_LIBFFI)server/.libs/libffi.a

With:

LIBFFI_LIB = $(EXTERNAL_LIBFFI)$(TARGET)/.libs/libffi.a

Clean your project and retry to install.

This script should fix the issue and recompile:

cd src
sed -i 's,LIBFFI_LIB = $(EXTERNAL_LIBFFI)server/.libs/libffi.a,LIBFFI_LIB = $(EXTERNAL_LIBFFI)$(TARGET)/.libs/libffi.a,' Makefile
make clean
cd ..
sudo ./install.sh

Hope that helps you. Thank you very much for reporting this problem.

Best regards.

It works, thanks.

@12obin I've just merged this fix into branch 3.10 so it will appear in the next minor version.

Thank you again for your feedback.
Best regards.

Was this page helpful?
0 / 5 - 0 ratings