Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation 有关委任绿骨保安助理的问题_Installation_Cmake_Pkg Config_Openvas - Fatal编程技术网

Installation 有关委任绿骨保安助理的问题

Installation 有关委任绿骨保安助理的问题,installation,cmake,pkg-config,openvas,Installation,Cmake,Pkg Config,Openvas,我尝试让greenbone使用openvas,如下所示: 我觉得openvas安装正确。这是openvas检查设置输出: Step 1: Checking OpenVAS Scanner ... OK: OpenVAS Scanner is present in version 5.0.5. OK: OpenVAS Scanner CA Certificate is present as /var/lib/openvas/CA/cacert.pem.

我尝试让greenbone使用openvas,如下所示:

我觉得openvas安装正确。这是openvas检查设置输出:

Step 1: Checking OpenVAS Scanner ...
        OK: OpenVAS Scanner is present in version 5.0.5.
        OK: OpenVAS Scanner CA Certificate is present as /var/lib/openvas/CA/cacert.pem.
        OK: redis-server is present in version v=2.8.4.
        OK: scanner (kb_location setting) is configured properly using the redis-server socket: /var/run/redis/redis.sock
        OK: redis-server is running and listening on socket: /var/run/redis/redis.sock.
        OK: redis-server configuration is OK and redis-server is running.
        OK: NVT collection in /var/lib/openvas/plugins contains 45702 NVTs.
        WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner.
        SUGGEST: Enable signature checking (see http://www.openvas.org/trusted-nvts.html).
        OK: The NVT cache in /var/cache/openvas contains 45702 files for 45702 NVTs.
Step 2: Checking OpenVAS Manager ...
        OK: OpenVAS Manager is present in version 6.0.7.
        OK: OpenVAS Manager client certificate is present as /var/lib/openvas/CA/clientcert.pem.
        OK: OpenVAS Manager database found in /var/lib/openvas/mgr/tasks.db.
        OK: Access rights for the OpenVAS Manager database are correct.
        OK: sqlite3 found, extended checks of the OpenVAS Manager installation enabled.
        OK: OpenVAS Manager database is at revision 146.
        OK: OpenVAS Manager expects database at revision 146.
        OK: Database schema is up to date.
        OK: OpenVAS Manager database contains information about 45702 NVTs.
        OK: At least one user exists.
        OK: OpenVAS SCAP database found in /var/lib/openvas/scap-data/scap.db.
        OK: OpenVAS CERT database found in /var/lib/openvas/cert-data/cert.db.
        OK: xsltproc found.
Step 3: Checking user configuration ...
        WARNING: Your password policy is empty.
        SUGGEST: Edit the /etc/openvas/pwpolicy.conf file to set a password policy.
Step 4: Checking Greenbone Security Assistant (GSA) ...
        ERROR: No Greenbone Security Assistant (gsad) found.
        FIX: Please install Greenbone Security Assistant.
然后我下载了greenbone-security-assistant-6.0.9.tar.gz,并按照安装文件中提到的方式完成了安装。 但当我运行cmake时,它会返回:

cmake ..
-- Configuring greenbone-security-assistant...
-- checking for module 'libopenvas_omp>=8.0.0'
--   package 'libopenvas_omp>=8.0.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  CMakeLists.txt:76 (pkg_check_modules)


-- checking for module 'libopenvas_base>=8.0.0'
--   package 'libopenvas_base>=8.0.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  CMakeLists.txt:77 (pkg_check_modules)


-- checking for module 'libopenvas_misc>=8.0.0'
--   package 'libopenvas_misc>=8.0.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:283 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:337 (_pkg_check_modules_internal)
  CMakeLists.txt:78 (pkg_check_modules)


-- Looking for libgcrypt...
-- Looking for libgcrypt... /usr/lib/i386-linux-gnu/libgcrypt.so
CMake Error at CMakeLists.txt:111 (message):
  One or more required libraries was not found (see message above), please
  install the missing libraries and run cmake again.


-- Configuring incomplete, errors occurred!
似乎cmake无法归档任何openvas库。 所有openvas LIB都位于默认路径中:

/usr/lib/libopenvas_base.so.8
/usr/lib/libopenvas_base.so.8.0.6
/usr/lib/libopenvas_misc.so.8
/usr/lib/libopenvas_misc.so.8.0.6
/usr/lib/libopenvas_nasl.so.8
/usr/lib/libopenvas_nasl.so.8.0.6
/usr/lib/libopenvas_omp.so.8
/usr/lib/libopenvas_omp.so.8.0.6
安装文件中提到了这一点:

如果已将所需库安装到非标准位置, 请记住将PKG_CONFIG_PATH环境变量设置为 配置前,pkg配置文件的位置:

$ export PKG_CONFIG_PATH=/your/location/lib/pkgconfig:$PKG_CONFIG_PATH

但是openvas将其安装在默认路径中,并且我尝试将环境变量(PKG_CONFIG_path)设置为/usr/lib/但没有更改

/usr/lib/pkgconfig
目录下应该有相应的
.pc
文件,通过
pkg config
进行搜索。你有这些
.pc
文件吗?(例如,
libopenvas_omp.pc
)。我在10分钟前检查了pkg配置,发现了您所说的内容。/usr/lib/pkgconfig是empy,我没有.pc文件。所以我下载下面的链接并从中提取.pc文件。()有效,:)