# Problem compiling ospd-openvas

**URL:** <https://forum.greenbone.net/t/problem-compiling-ospd-openvas/12106>\
**Category:** Greenbone Community Edition\
**Created:** [May 3, 2022, 9:56pm UTC](https://forum.greenbone.net/t/problem-compiling-ospd-openvas/12106 "2022-05-03T21:56:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tahitiju](https://forum.greenbone.net/letter_avatar/tahitiju/32/6_449c533f586939b6e5f246632a46421f.png) [@tahitiju](https://forum.greenbone.net/u/tahitiju)\
**Post date:** [May 3, 2022, 9:56pm UTC](https://forum.greenbone.net/t/problem-compiling-ospd-openvas/12106/1 "2022-05-03T21:56:25Z")

</div>

Hello,

I’m trying to install to compile GSE using the official guide ([https://greenbone.github.io/docs/gvm-21.04/index.html](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_

```auto
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 :

```auto
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

---

<div class="post-metadata">

**Author:** ![heewey](https://forum.greenbone.net/user_avatar/forum.greenbone.net/heewey/32/1770_2.png) [@heewey](https://forum.greenbone.net/u/heewey)\
**Post date:** [May 4, 2022, 6:14am UTC](https://forum.greenbone.net/t/problem-compiling-ospd-openvas/12106/2 "2022-05-04T06:14:36Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![bricks](https://forum.greenbone.net/user_avatar/forum.greenbone.net/bricks/32/46_2.png) [@bricks](https://forum.greenbone.net/u/bricks)\
**Post date:** [May 4, 2022, 6:32am UTC](https://forum.greenbone.net/t/problem-compiling-ospd-openvas/12106/3 "2022-05-04T06:32:48Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tahitiju](https://forum.greenbone.net/letter_avatar/tahitiju/32/6_449c533f586939b6e5f246632a46421f.png) [@tahitiju](https://forum.greenbone.net/u/tahitiju)\
**Post date:** [May 4, 2022, 2:50pm UTC](https://forum.greenbone.net/t/problem-compiling-ospd-openvas/12106/4 "2022-05-04T14:50:04Z")

</div>

Yes 👍, that worked with `python3 -m pip uninstall ospd-openvas`  
thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:14am UTC](https://forum.greenbone.net/t/problem-compiling-ospd-openvas/12106/5 "2025-04-07T10:14:38Z")

</div>

Closed on April 7, 2025, 10:14am UTC


