Problem compiling ospd-openvas

Hello,

I’m trying to install to compile GSE using the official guide (https://greenbone.github.io/docs/gvm-21.04/index.html) on Ubuntu 20.04.

I had a problem on the ospd-openvas compilation.
here is the official method

Installing ospd-openvas

cd $SOURCE_DIR/ospd-openvas-$OSPD_OPENVAS_VERSION
python3 -m pip install . --prefix=$INSTALL_PREFIX --root=$INSTALL_DIR --no-warn-script-location
...

when i do it, it doesn’t care of the value of $INSTALL_DIR and fail trying to write on non-writable folder :

reso@openvas:~/source/ospd-openvas-21.4.4$ python3 -m pip install . --prefix=/usr/local --root=/home/reso/install
Processing /home/reso/source/ospd-openvas-21.4.4
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
...
Successfully built ospd-openvas
Installing collected packages: ospd-openvas
  Attempting uninstall: ospd-openvas
    Found existing installation: ospd-openvas 21.4.4
    Uninstalling ospd-openvas-21.4.4:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission non accordée: '/usr/local/bin/ospd-openvas'
Consider using the `--user` option or check the permissions.

Am i not supposed to get an /home/reso/install/usr/local/bin/ospd-openvas instead ?

Thank for your help.

Julien

Hello @tahitiju,

check which value is in $PKG_CONFIG_PATH

you can do it like

echo $PKG_CONFIG_PATH

you can correct it like:

export PKG_CONFIG_PATH=/opt/gvm/lib/pkgconfig:$PKG_CONFIG_PATH

I don’t think it has anything to do with the PKG_CONFIG_PATH.

For me it seems you are doing an update and a previous version of ospd-openvas is already installed. Try sudo python3 -m pip uninstall --prefix=/usr/local ospd-openvas to remove that version.

3 Likes

Yes :+1:, that worked with python3 -m pip uninstall ospd-openvas
thanks

1 Like