sudo ./install.sh
- Running the Makefile
cc -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DZLIB_SYSTEM -I./external/pcre2-10.32//install/include/ -DPCRE2_STATIC -DUSE_PCRE2_JIT -DLIBOPENSSL_ENABLED -DLOCAL -Wall -Wextra -I./ -I./headers/ -c external/cJSON/cJSON.c -o external/cJSON/cJSON.o
ar -crs libcJSON.a external/cJSON/cJSON.o
ranlib libcJSON.a
cd external/pcre2-10.32/ && \
./configure \
--prefix=/home/stelmn/ossec-hids-3.3.0/src/external/pcre2-10.32//install \
--enable-jit \
--disable-shared \
--enable-static && \
make install-libLTLIBRARIES install-nodist_includeHEADERS
/bin/sh: line 0: cd: external/pcre2-10.32/: No such file or directory
make: *** [Makefile:770: external/pcre2-10.32//install/lib/libpcre2-8.a] Error 1
Error 0x5.
Building error. Unable to finish the installation.
Bad Installation Package???I'm trying to build a new machine that includes OSSEC 3.3.0. When I run the install.sh, use default responses for a local installation, it gives me the following error.sudo ./install.sh
- Running the Makefile
cc -DMAX_AGENTS=2048 -DOSSECHIDS -DDEFAULTDIR=\"/var/ossec\" -DUSER=\"ossec\" -DREMUSER=\"ossecr\" -DGROUPGLOBAL=\"ossec\" -DMAILUSER=\"ossecm\" -DLinux -DINOTIFY_ENABLED -DZLIB_SYSTEM -I./external/pcre2-10.32//install/include/ -DPCRE2_STATIC -DUSE_PCRE2_JIT -DLIBOPENSSL_ENABLED -DLOCAL -Wall -Wextra -I./ -I./headers/ -c external/cJSON/cJSON.c -o external/cJSON/cJSON.o
ar -crs libcJSON.a external/cJSON/cJSON.o
ranlib libcJSON.a
cd external/pcre2-10.32/ && \
./configure \
--prefix=/home/stelmn/ossec-hids-3.3.0/src/external/pcre2-10.32//install \
--enable-jit \
--disable-shared \
--enable-static && \
make install-libLTLIBRARIES install-nodist_includeHEADERS
/bin/sh: line 0: cd: external/pcre2-10.32/: No such file or directory
make: *** [Makefile:770: external/pcre2-10.32//install/lib/libpcre2-8.a] Error 1
Error 0x5.
Building error. Unable to finish the installation.
I've verified that kernel-headers are installed, tried two different machines and even tried updating an OSSEC installation on a CentOS 7 machine but I keep getting the same failure. It appears that the script is looking for pcre2 in the src directory but it doesn't exist.
$ pwd
/home/stelmn/Downloads/ossec-hids-3.3.0/src/external$ ls
cJSON lua lua-5.2.3 zlib-1.2.11Is something missing from the download file or am I overlooking something?Natassia
--
---
You received this message because you are subscribed to the Google Groups "ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ossec-list/07cf4c14-2480-48a7-b19f-b698d9c66fd2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ossec-list/CAMyQvMrX0oCpx%2BAJ7v5rLpV_YgrChWHBKqidrWqOjksoi3Zk4g%40mail.gmail.com.
Everything came out of 3.3.0.tar.gzI compared the contents and the same directory for 2.8.3 also has no pcre2 but it has a Makefile. On a whim I put a copy of the 2.8.3 Makefile in the 3.3.0 folder and got the same error.
To view this discussion on the web visit https://groups.google.com/d/msgid/ossec-list/CAFN5h2KGsUxC8Qp0JdmiyYRBNb9Xu%3DnPkaYYS-Nnug5_%3DTEmMw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ossec-list/CAMyQvMp9u3bmCK-Z-YNcNsrpbSeGyJLYxhVqGuDa6uedBuBbjA%40mail.gmail.com.
Natassia
--Natassia
---
You received this message because you are subscribed to the Google Groups "ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ossec-list+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ossec-list/8679fad3-1399-4a01-b868-d155a22f1b42%40googlegroups.com.
On Tue, Dec 31, 2019 at 2:16 PM Natassia M Stelmaszek <ste...@uw.edu> wrote:Dan,I'm sorry that I didn't respond sooner but I had to devote time to other projects.So it looks like I was right, this is a defective (or perhaps deficient would be more accurate) package. In order to get it to compile I had to download the source code from pcre.org and expand it into the directory where the install.sh script expected it to be.cp pcre2-10.32.tar.gz ~/ossec-hids-3.3.0/src/external/cd ~/ossec-hids-3.3.0/src/external/tar -xvf pcre2-10.32.tar.gzIt seems like someone should think about rebuilding the gzip file that is offered for download on the OSSEC web site.That was one of the 2 solutions I provided in my original email.
--Natassia
---
You received this message because you are subscribed to the Google Groups "ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ossec...@googlegroups.com.