[root@openvas8 build]#cmake … -DCMAKE_INSTALL_PREFIX=/opt/gvm CMake Error: The source directory “/opt/gvm/src/gvm-libs-11.0.1/build/…” does not exist. Specify --help for usage, or press the help button on the CMake GUI.
Any help will be highly appreciated. Thanks in advance and I look forward to hearing from you.
[root@openvas8 gvm]# cat /opt/gvm/var/log/gvm/gsad.log
gsad main:MESSAGE:2020-08-15 00h13.17 utc:26014: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h13.17 utc:26015: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h13.29 utc:26056: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h13.29 utc:26057: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h14.28 utc:26144: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h14.28 utc:26145: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h24.06 utc:26692: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h24.06 utc:26693: main: Could not load private SSL key from /opt/gvm/var/lib/gvm/private/CA/serverkey.pem: Failed to open file “/opt/gvm/var/lib/gvm/private/CA/serverkey.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h33.42 utc:27293: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h33.42 utc:27294: main: Could not load SSL certificate from /opt/gvm/var/lib/gvm/CA/servercert.pem: Failed to open file “/opt/gvm/var/lib/gvm/CA/servercert.pem”: No such file or directory
gsad main:MESSAGE:2020-08-15 00h34.53 utc:27360: Starting GSAD version 9.0.1
gsad main:CRITICAL:2020-08-15 00h34.53 utc:27361: main: Could not load SSL certificate from /opt/gvm/var/lib/gvm/CA/servercert.pem: Failed to open file “/opt/gvm/var/lib/gvm/CA/servercert.pem”: No such file or directory
[root@openvas8 gvm]# systemctl status gsad
● gsad.service - Job that runs the gsa daemon
Loaded: loaded (/etc/systemd/system/gsad.service; enabled; vendor preset: disabled)
Active: failed (Result: protocol) since Fri 2020-08-14 20:34:53 EDT; 34s ago
Docs: man:gsa
Process: 27360 ExecStart=/opt/gvm/sbin/gsad --listen=0.0.0.0 (code=exited, status=0/SUCCESS)
Main PID: 26058 (code=killed, signal=KILL)
Aug 14 20:34:53 openvas8 systemd[1]: Stopped Job that runs the gsa daemon.
Aug 14 20:34:53 openvas8 systemd[1]: Starting Job that runs the gsa daemon...
Aug 14 20:34:53 openvas8 systemd[1]: gsad.service: Can't open PID file /opt/gvm/var/run/gsad.pid (yet?) after start: No such file or directory
Aug 14 20:34:53 openvas8 systemd[1]: gsad.service: Failed with result 'protocol'.
Aug 14 20:34:53 openvas8 systemd[1]: Failed to start Job that runs the gsa daemon.
[root@openvas8 gvm]# ll /opt/gvm/var/lib/gvm/private/CA/serverkey.pem
-rw-r--r-- 1 gvm gvm 1285 Aug 14 20:33 /opt/gvm/var/lib/gvm/private/CA/serverkey.pem
[root@openvas8 gvm]#
Any help will be highly appreciated. Thanks in Advance.
It is the path to the directory where the sources are located. In this case it is two dots.
@indusvalley@kaushalshriyan but nevertheless I have to admit you should not build from sources if you have such basic issues already. If you don’t know how to install a compiler, run make and cmake it will be a big hurdle for you. Especially with such a big and complicated suite like GVM.
Checking in again if there are any binaries available for GVM based OpenVAS application or is it only to compile from source code available in compressed tar ball file as of now?
[root@openvas8 src]# pwd
/opt/gvm/src
[root@openvas8 src]# ll
total 5168
drwxrwxr-x 11 gvm gvm 4096 Aug 14 20:58 gsa-9.0.1
-rw-r–r-- 1 gvm gvm 1936391 Aug 11 13:47 gsa-9.0.1.tar.gz
drwxrwxr-x 12 gvm gvm 4096 Aug 12 00:32 gvm-libs-11.0.1
-rw-r–r-- 1 gvm gvm 213553 Aug 11 13:47 gvm-libs-11.0.1.tar.gz
drwxr-xr-x 12 gvm gvm 4096 Aug 11 22:14 gvm-libs-master
drwxrwxr-x 11 gvm gvm 4096 Aug 13 21:02 gvmd-9.0.1
-rw-r–r-- 1 gvm gvm 1446748 Aug 11 13:47 gvmd-9.0.1.tar.gz
drwxrwxr-x 13 gvm gvm 4096 Aug 11 21:05 openvas-7.0.1
-rw-r–r-- 1 gvm gvm 429012 Aug 11 13:47 openvas-7.0.1.tar.gz
drwxrwxr-x 10 gvm gvm 4096 Aug 11 20:59 openvas-smb-1.0.5
-rw-r–r-- 1 gvm gvm 1081679 Aug 11 13:48 openvas-smb-1.0.5.tar.gz
drwxrwxr-x 10 gvm gvm 333 Aug 14 12:27 ospd-2.0.1
-rw-r–r-- 1 gvm gvm 87313 Aug 11 13:47 ospd-2.0.1.tar.gz
drwxrwxr-x 11 gvm gvm 4096 Aug 14 12:28 ospd-openvas-1.0.1
-rw-r–r-- 1 gvm gvm 50455 Aug 11 13:47 ospd-openvas-1.0.1.tar.gz
[root@openvas8 src]#
When I type “greenbone-ntv-sync”, “greenbone-scapdata-sync” and also “greenbone-certdata-sync”, it always comes out the error information “-bash: greenbone-ntv-sync:Command not found”.
I do the steps by your post, and I want to know where I have done wrong.