Error while installing Zeek-aux : Unknown CMake command "FindRequiredPackage" - zeek

I've downloaded the zeek-aux zipped source-code from 'https://github.com/zeek/zeek-aux'.
While comipiling i'm getting the following error.
'Unknown CMake command "FindRequiredPackage"'
Any help is appreciated.

A ZIP download from GitHub doesn't populate the git submodules, and the functionality you're missing is defined in the cmake submodule. You can verify this by doing an ls in the cmake directory -- there's likely nothing in there.
You can fix this in a few different ways. The easiest likely is to use a recursive clone instead of a ZIP download: git clone --recursive https://github.com/zeek/zeek-aux. Alternatively, you can stick with the ZIP and say git submodule sync --recursive followed up git submodule update --recursive --init in its toplevel directory.

Related

What does --prefix in ./configure script do when building a software in Linux?

I'd install a software in Linux from source code. I already downloaded the source code from the git project then the next step is to install the libraries needed for running the software.
Let's say the source code is found in a folder called Main_Folder and the library is found in another folder Lib_Folder. Let's go to latter folder and running the configure.sh script to configure the program, so my question is the following:
In the ./configure command line there is an option called --prefix{} which should specify a given path, I'd know which path I have to put here ? is it the path to the main software or whatever ?
In general --prefix defines target installation directory where built software will be installed when running make install.
For example if you run ./configure=/opt executables will be installed in /opt/bin, libraries in /opt/lib, man pages in /opt/man/ etc.
See autoconf --prefix documentation.

Compiling: conflicting types for 'sigset_t'

I'm trying to compile the wazuh manager. I've done the following:
$ sudo apt-get install gcc make git libc6-dev
$ mkdir ossec_tmp && cd ossec_tmp
$ git clone -b stable https://github.com/wazuh/wazuh.git ossec-wazuh
$ cd ossec-wazuh
$ sudo ./install.sh
This gives me an error as such:
In file included from /usr/include/asm/signal.h:26:0,
from /usr/include/linux/signal.h:5,
from /usr/include/linux/aio_abi.h:32,
from engines/afalg/e_afalg.c:43:
/usr/include/asm-generic/signal.h:92:3: error: conflicting types for 'sigset_t'
} sigset_t;
I then went and tried compiling without shared library only the agent by running:
sudo make -C src DISABLE_SHARED=1 TARGET=agent
This seem to give the exact same error. Anyone able to assist me here to debug?
I can recommend you to follow the manager installation guide of our documentation.
As I can see you want to install the server in a folder called 'ossec_tmp', I recommend you to create the folder and after that following the guide, when you launch
./install
It will ask you for the path where you want to install the service.
Here is a link to the documentation:
https://documentation.wazuh.com/current/installation-guide/installing-wazuh-server/sources_installation.html
Hope it helps.

Where does qmake look for pri files?

I have the following setup (using qt 5.6.1-1):
qtbase/bin
...
qtbase/mkspecs
...
qtdeclarative/mkspecs
When trying to build qtquickcontrols I get the following error:
qmake
make
Some of the required modules (qtHaveModule(quick)) are not available.
Skipped.
I think it's because qmake is only looking for .pri files in qtbase/mkspecs. Is there an environment variable to set the mkspecs
search path?
I tried setting QMAKESPEC, QT_PLUGIN_PATH and INCLUDEPATH, but couldn't get past the error message.
Build process:
tar -xf qtbase-opensource-src-5.6.1.tar.xz && cd
./configure -prefix=qtbase/prefix
make
make install
tar -xf qtdeclarative-opensource-src-5.6.1.tar.xz && cd
qmake PREFIX=qtdeclarative/prefix
make install
fails with write error to qtbase/prefix (it's not writeable by the build user)
sed -i s#INSTALL_ROOT)/qtbase/prefix#INSTALL_ROOT)/qtdeclarative/prefix
make install
tar -xf qtquickcontrols-opensource-src-5.6.1.tar.xz && cd
qmake PREFIX=qtquickcontrols/prefix
make install
fails with
Some of the required modules (qtHaveModule(quick)) are not available.
Skipped.
If you have a properly set up Qt installation, it won't be a problem. Make sure that:
You've compiled all the modules.
You haven't moved your Qt build: it has hardcoded paths and can't be moved once built.
You should also prefer to build Qt in its own build folder, if you aren't doing it already.

qmake set install directory

I'm trying to build Qwt to a custom location. The obvious thing to try is a PREFIX option, but it had no effect and the make install still failed:
$ qmake qwt.pro PREFIX='/my/path'
$ make
$ make install
mkdir: cannot create directory `/usr/local/qwt-5.2.3': Permission denied
There seem to be numerous other questions and answers to this question, which also have no effect and fail:
How to change qmake PREFIX location: qmake -set prefix '/my/path'
How can the install path be set for a qt project: make; INSTALL_ROOT=/my/path; make install
Any other suggestions?
QMake version 2.01a
Using Qt version 4.5.3 in /opt/Qt4/4.5.2/qtsdk-2009.04/qt/lib
RHEL 5.10
Try to edit the qwtconfig.pri file in the source directory, it has the installation path hardcoded for different platforms, as well as many other options you might want to change.

How to run example TICoreDataSync?

I cloned the repository https://github.com/nothirst/TICoreDataSync
Create Podfile in TICoreDataSync folder
pod 'TICoreDataSync'
Open terminal
cd TICoreDataSync
pod install
The installation was successful and to create a folder pods.
4.I now want to see the work TICoreDataSync/Examples/iOSNotebook/iOSNotebook.iOSNotebook.xcodeproj
But the project has a 9000 error.
If you have someone working example of a fully assembled TICoreDataSync?
We've had one other CocoaPods error reported recently. Have you tried cloning the repository and using git submodule update --init --recursive to clone all the submodules? That should give you a working repo.

Resources