I have successfully compiled and installed openvas scanner and gvmd but when i run gvmd command with any option except help, noting is returned in terminal.
pi@NanoPi-NEO2:/tmp/gvmd/build$ sudo cat /usr/var/log/gvm/gvmd.log
md main:MESSAGE:2019-02-22 03h58.30 utc:21861: Greenbone Vulnerability Manager version 9.0+alpha (DB revision 206)
md manage:WARNING:2019-02-22 03h58.30 utc:21861: Failed to open lock file ‘/usr/var/run/gvm-checking’: No such file or directory
md main:CRITICAL:2019-02-22 03h58.30 utc:21861: main: Error trying to get checking lock
md main:MESSAGE:2019-02-22 04h00.53 utc:21878: Greenbone Vulnerability Manager version 9.0+alpha (DB revision 206)
md manage:WARNING:2019-02-22 04h00.53 utc:21878: Failed to open lock file ‘/usr/var/run/gvm-checking’: No such file or directory
Also I tried with openvas manager 7.0 , which would return following output
pi@NanoPi-NEO2:/tmp/gvmd/build$ sudo openvasmd --get-users
openvasmd: error while loading shared libraries: libopenvas_omp.so.9: cannot open shared object file: No such file or directory
How can I correct them ? sudo gvmd -h works fine. I need to run scans from terminal. Do I need to install OMP as well or is it possible to do via gvmd. I just cannot find the correct documentation regarding my need.
Please note that the github master branches / alpha versions are development versions not officially released and where all the development is happening. Such versions might show unexpected behavior or could even break/be in a temporary unusable state at any time.
If you want to contribute to the development of those you probably need to dig into such issues on your own and could consider to contribute at the issue trackers of github: http://github.com/greenbone
And please read my answer about not running a tool like gvm-cli as root here. Running a tool (i am not talking about a daemon) as root is a bad habit on unix systems and can nearly always be avoided.
This means you library search path is incorrect and openvasmd coudldn’t find the required library namely libopenvas_omp.so.9. Please check with ldd /bin/openmasmd is all libraries are provided. If you never had such issues before and you don’t know how to fix library search paths please thing about not using a source build and instead use some packages provided for your distribution.