[prev in list] [next in list] [prev in thread] [next in thread]
List: openvas-development
Subject: Re: [Openvas-devel] OpenVAS 8 - Debian Wheezy - openvassd: error while loading shared libraries
From: Alexander Rau <alexander () rau ! ca>
Date: 2015-02-25 4:04:08
Message-ID: CAGpxPBeaGDn2kuumUcuOPJTT_9TXk8Owtk1-AE4GJneLGg9ROg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Interesting fact: I blew away the install and did a brand new installation,
this time on x86_64 architecture rather than x86. This time it seems to
work.
Thanks
Alex
On Tue, Feb 24, 2015 at 7:34 AM, Alexander Rau <alexander@rau.ca> wrote:
> I'm running into a similar issue again. This time I am trying to install
> openvas from packages with the "-DCMAKE_INSTALL_PREFIX=/" flag. cmake fails
> with the following:
>
> root@debian:~/openvas/scanner/openvas-scanner-5.0+beta6/build# cmake
> -DCMAKE_INSTALL_PREFIX=/ ..
> -- Configuring the Scanner...
> -- The C compiler identification is GNU 4.7.2
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
> -- Install prefix: /
> -- checking for module 'libopenvas_nasl>=8.0.0'
> -- package 'libopenvas_nasl>=8.0.0' not found
> CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279
> (message):
> A required package was not found
> Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333
> (_pkg_check_modules_internal)
> CMakeLists.txt:185 (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:279
> (message):
> A required package was not found
> Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333
> (_pkg_check_modules_internal)
> CMakeLists.txt:186 (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:279
> (message):
> A required package was not found
> Call Stack (most recent call first):
> /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333
> (_pkg_check_modules_internal)
> CMakeLists.txt:187 (pkg_check_modules)
>
>
> -- checking for module 'glib-2.0>=2.16'
> -- found glib-2.0, version 2.32.4
> -- Looking for libgcrypt...
> -- Looking for libgcrypt... /lib/i386-linux-gnu/libgcrypt.so
> -- Found Doxygen: /usr/bin/doxygen (found version "1.8.1.2")
> -- Configuring incomplete, errors occurred!
>
>
> the listing of the /lib directory of the files in question looks like this:
>
> # ls -al /lib/libopenvas*
> lrwxrwxrwx 1 root root 20 Feb 23 23:41 /lib/libopenvas_base.so ->
> libopenvas_base.so.8
> lrwxrwxrwx 1 root root 28 Feb 23 23:41 /lib/libopenvas_base.so.8 ->
> libopenvas_base.so.8.0+beta6
> -rw-r--r-- 1 root root 250054 Feb 23 23:40
> /lib/libopenvas_base.so.8.0+beta6
> lrwxrwxrwx 1 root root 20 Feb 23 23:41 /lib/libopenvas_misc.so ->
> libopenvas_misc.so.8
> lrwxrwxrwx 1 root root 28 Feb 23 23:41 /lib/libopenvas_misc.so.8 ->
> libopenvas_misc.so.8.0+beta6
> -rw-r--r-- 1 root root 479820 Feb 23 23:40
> /lib/libopenvas_misc.so.8.0+beta6
> lrwxrwxrwx 1 root root 20 Feb 23 23:41 /lib/libopenvas_nasl.so ->
> libopenvas_nasl.so.8
> lrwxrwxrwx 1 root root 28 Feb 23 23:41 /lib/libopenvas_nasl.so.8 ->
> libopenvas_nasl.so.8.0+beta6
> -rw-r--r-- 1 root root 1433403 Feb 23 23:41
> /lib/libopenvas_nasl.so.8.0+beta6
> lrwxrwxrwx 1 root root 19 Feb 23 23:41 /lib/libopenvas_omp.so ->
> libopenvas_omp.so.8
> lrwxrwxrwx 1 root root 27 Feb 23 23:41 /lib/libopenvas_omp.so.8 ->
> libopenvas_omp.so.8.0+beta6
> -rw-r--r-- 1 root root 89498 Feb 23 23:40
> /lib/libopenvas_omp.so.8.0+beta6
> lrwxrwxrwx 1 root root 22 Feb 23 23:32 /lib/libopenvas_wincmd.so ->
> libopenvas_wincmd.so.1
> lrwxrwxrwx 1 root root 26 Feb 23 23:32 /lib/libopenvas_wincmd.so.1 ->
> libopenvas_wincmd.so.1.0.0
> -rw-r--r-- 1 root root 3119421 Feb 23 23:31 /lib/libopenvas_wincmd.so.1.0.0
> lrwxrwxrwx 1 root root 25 Feb 23 23:32 /lib/libopenvas_wmiclient.so
> -> libopenvas_wmiclient.so.1
> lrwxrwxrwx 1 root root 29 Feb 23 23:32 /lib/libopenvas_wmiclient.so.1
> -> libopenvas_wmiclient.so.1.0.0
> -rw-r--r-- 1 root root 5715546 Feb 23 23:32
> /lib/libopenvas_wmiclient.so.1.0.0
>
> I am sure I have the /lib path in the LD_LIBRARY_PATH.
>
> Ideas?
>
> Thanks
>
> Alex
>
> On Mon, Feb 2, 2015 at 7:43 AM, Alexander Rau <alexander@rau.ca> wrote:
>
>> That was it but I never had to do this before when installing openvas
>> from packages....
>>
>> Thanks Jan
>>
>> Alex
>>
>>
>>
>> On Mon, Feb 2, 2015 at 2:07 AM, Jan-Oliver Wagner <
>> Jan-Oliver.Wagner@greenbone.net> wrote:
>>
>>> On Montag, 2. Februar 2015, Alexander Rau wrote:
>>> > Trying to play around with openVAS 8 on Debian Wheezy. Installing from
>>> > source.
>>> >
>>> > Getting "openvassd: error while loading shared libraries:
>>> > libopenvas_nasl.so.8: cannot open shared object file: No such file or
>>> > directory" error when starting scanner with openvassd.
>>> >
>>> > Everything seemed to have compiled without errors.
>>> >
>>> > Used the following sources:
>>> >
>>> >
>>> http://wald.intevation.org/frs/download.php/1866/openvas-libraries-8.0+beta5.tar.gz
>>> >
>>> http://wald.intevation.org/frs/download.php/1870/openvas-scanner-5.0+beta5.tar.gz
>>> >
>>> > The ls of the libraries in question in /usr/local/lib looks as follows:
>>> >
>>> > lrwxrwxrwx 1 root staff 20 Feb 1 22:49 libopenvas_nasl.so ->
>>> > libopenvas_nasl.so.8
>>> > lrwxrwxrwx 1 root staff 28 Feb 1 22:49 libopenvas_nasl.so.8 ->
>>> > libopenvas_nasl.so.8.0+beta5
>>> > -rw-r--r-- 1 root staff 1429025 Feb 1 23:00
>>> libopenvas_nasl.so.8.0+beta5
>>> >
>>> > Any ideas?
>>>
>>> Quick guess: it looks like /usr/local/lib is not in the search path.
>>> Have you tried using ldconfig or LD_LIBRARY_PATH to add it to the search
>>> path?
>>>
>>> Try
>>> LD_LIBRARY_PATH=/usr/local/lib openvassd --help
>>> in the shell.
>>>
>>>
>>>
>>> --
>>> Dr. Jan-Oliver Wagner | +49-541-335084-0 | http://www.greenbone.net/
>>> Greenbone Networks GmbH, Neuer Graben 17, 49074 Osnabrück | AG
>>> Osnabrück, HR B 202460
>>> Geschäftsführer: Lukas Grunwald, Dr. Jan-Oliver Wagner
>>> _______________________________________________
>>> Openvas-devel mailing list
>>> Openvas-devel@wald.intevation.org
>>> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel
>>>
>>
>>
>
[Attachment #5 (text/html)]
<div dir="ltr">Interesting fact: I blew away the install and did a brand new \
installation, this time on <font color="#333333" face="Helvetica Neue, Helvetica, \
Arial, sans-serif"><span style="font-size:14px;line-height:20px">x86_64 architecture \
rather than x86. This time it seems to work.</span></font><div><span \
style="color:rgb(51,51,51);font-family:'Helvetica \
Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><br></span></div><div><span \
style="color:rgb(51,51,51);font-family:'Helvetica \
Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">Thanks</span></div><div><span \
style="color:rgb(51,51,51);font-family:'Helvetica \
Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px"><br></span></div><div><span \
style="color:rgb(51,51,51);font-family:'Helvetica \
Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">Alex</span></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 24, 2015 at 7:34 AM, \
Alexander Rau <span dir="ltr"><<a href="mailto:alexander@rau.ca" \
target="_blank">alexander@rau.ca</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">I'm running into a similar issue again. \
This time I am trying to install openvas from packages with the \
"-DCMAKE_INSTALL_PREFIX=/" flag. cmake fails with the \
following:<div><br></div><div><div>root@debian:~/openvas/scanner/openvas-scanner-5.0+beta6/build# \
cmake -DCMAKE_INSTALL_PREFIX=/ ..</div><div>-- Configuring the \
Scanner...</div><div>-- The C compiler identification is GNU 4.7.2</div><div>-- Check \
for working C compiler: /usr/bin/gcc</div><div>-- Check for working C compiler: \
/usr/bin/gcc -- works</div><div>-- Detecting C compiler ABI info</div><div>-- \
Detecting C compiler ABI info - done</div><div>-- Found PkgConfig: \
/usr/bin/pkg-config (found version "0.26")</div><div>-- Install prefix: \
/</div><div>-- checking for module 'libopenvas_nasl>=8.0.0'</div><div>-- \
package 'libopenvas_nasl>=8.0.0' not found</div><div>CMake Error at \
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):</div><div> A \
required package was not found</div><div>Call Stack (most recent call \
first):</div><div> /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 \
(_pkg_check_modules_internal)</div><div> CMakeLists.txt:185 \
(pkg_check_modules)</div><div><br></div><div><br></div><div>-- checking for module \
'libopenvas_base>=8.0.0'</div><div>-- package \
'libopenvas_base>=8.0.0' not found</div><div>CMake Error at \
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):</div><div> A \
required package was not found</div><div>Call Stack (most recent call \
first):</div><div> /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 \
(_pkg_check_modules_internal)</div><div> CMakeLists.txt:186 \
(pkg_check_modules)</div><div><br></div><div><br></div><div>-- checking for module \
'libopenvas_misc>=8.0.0'</div><div>-- package \
'libopenvas_misc>=8.0.0' not found</div><div>CMake Error at \
/usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):</div><div> A \
required package was not found</div><div>Call Stack (most recent call \
first):</div><div> /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 \
(_pkg_check_modules_internal)</div><div> CMakeLists.txt:187 \
(pkg_check_modules)</div><div><br></div><div><br></div><div>-- checking for module \
'glib-2.0>=2.16'</div><div>-- found glib-2.0, version \
2.32.4</div><div>-- Looking for libgcrypt...</div><div>-- Looking for libgcrypt... \
/lib/i386-linux-gnu/libgcrypt.so</div><div>-- Found Doxygen: /usr/bin/doxygen (found \
version "1.8.1.2")</div><div>-- Configuring incomplete, errors \
occurred!</div><div><br></div><div><br></div><div>the listing of the /lib directory \
of the files in question looks like this:</div><div><br></div><div><div># ls -al \
/lib/libopenvas*</div><div>lrwxrwxrwx 1 root root 20 Feb 23 23:41 \
/lib/libopenvas_base.so -> libopenvas_base.so.8</div><div>lrwxrwxrwx 1 root root \
28 Feb 23 23:41 /lib/libopenvas_base.so.8 -> \
libopenvas_base.so.8.0+beta6</div><div>-rw-r--r-- 1 root root 250054 Feb 23 23:40 \
/lib/libopenvas_base.so.8.0+beta6</div><div>lrwxrwxrwx 1 root root 20 Feb 23 \
23:41 /lib/libopenvas_misc.so -> libopenvas_misc.so.8</div><div>lrwxrwxrwx 1 root \
root 28 Feb 23 23:41 /lib/libopenvas_misc.so.8 -> \
libopenvas_misc.so.8.0+beta6</div><div>-rw-r--r-- 1 root root 479820 Feb 23 23:40 \
/lib/libopenvas_misc.so.8.0+beta6</div><div>lrwxrwxrwx 1 root root 20 Feb 23 \
23:41 /lib/libopenvas_nasl.so -> libopenvas_nasl.so.8</div><div>lrwxrwxrwx 1 root \
root 28 Feb 23 23:41 /lib/libopenvas_nasl.so.8 -> \
libopenvas_nasl.so.8.0+beta6</div><div>-rw-r--r-- 1 root root 1433403 Feb 23 23:41 \
/lib/libopenvas_nasl.so.8.0+beta6</div><div>lrwxrwxrwx 1 root root 19 Feb 23 \
23:41 /lib/libopenvas_omp.so -> libopenvas_omp.so.8</div><div>lrwxrwxrwx 1 root \
root 27 Feb 23 23:41 /lib/libopenvas_omp.so.8 -> \
libopenvas_omp.so.8.0+beta6</div><div>-rw-r--r-- 1 root root 89498 Feb 23 23:40 \
/lib/libopenvas_omp.so.8.0+beta6</div><div>lrwxrwxrwx 1 root root 22 Feb 23 \
23:32 /lib/libopenvas_wincmd.so -> libopenvas_wincmd.so.1</div><div>lrwxrwxrwx 1 \
root root 26 Feb 23 23:32 /lib/libopenvas_wincmd.so.1 -> \
libopenvas_wincmd.so.1.0.0</div><div>-rw-r--r-- 1 root root 3119421 Feb 23 23:31 \
/lib/libopenvas_wincmd.so.1.0.0</div><div>lrwxrwxrwx 1 root root 25 Feb 23 \
23:32 /lib/libopenvas_wmiclient.so -> \
libopenvas_wmiclient.so.1</div><div>lrwxrwxrwx 1 root root 29 Feb 23 23:32 \
/lib/libopenvas_wmiclient.so.1 -> \
libopenvas_wmiclient.so.1.0.0</div><div>-rw-r--r-- 1 root root 5715546 Feb 23 23:32 \
/lib/libopenvas_wmiclient.so.1.0.0</div></div></div><div><br></div><div>I am sure I \
have the /lib path in the \
LD_LIBRARY_PATH.</div><div><br></div><div>Ideas?</div><div><br></div><div>Thanks</div><div><br></div><div>Alex</div></div><div \
class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div \
class="gmail_quote">On Mon, Feb 2, 2015 at 7:43 AM, Alexander Rau <span \
dir="ltr"><<a href="mailto:alexander@rau.ca" \
target="_blank">alexander@rau.ca</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">That was it but I never had to do this before \
when installing openvas from packages....<div><br></div><div>Thanks \
Jan</div><div><br></div><div>Alex</div><div><br></div><div><br></div></div><div><div><div \
class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 2, 2015 at 2:07 AM, \
Jan-Oliver Wagner <span dir="ltr"><<a \
href="mailto:Jan-Oliver.Wagner@greenbone.net" \
target="_blank">Jan-Oliver.Wagner@greenbone.net</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div><div>On Montag, 2. Februar 2015, Alexander Rau \
wrote:<br> > Trying to play around with openVAS 8 on Debian Wheezy. Installing \
from<br> > source.<br>
><br>
> Getting "openvassd: error while loading shared libraries:<br>
> libopenvas_nasl.so.8: cannot open shared object file: No such file or<br>
> directory" error when starting scanner with openvassd.<br>
><br>
> Everything seemed to have compiled without errors.<br>
><br>
> Used the following sources:<br>
><br>
> <a href="http://wald.intevation.org/frs/download.php/1866/openvas-libraries-8.0+beta5.tar.gz" \
target="_blank">http://wald.intevation.org/frs/download.php/1866/openvas-libraries-8.0+beta5.tar.gz</a><br>
> <a href="http://wald.intevation.org/frs/download.php/1870/openvas-scanner-5.0+beta5.tar.gz" \
target="_blank">http://wald.intevation.org/frs/download.php/1870/openvas-scanner-5.0+beta5.tar.gz</a><br>
><br>
> The ls of the libraries in question in /usr/local/lib looks as follows:<br>
><br>
> lrwxrwxrwx 1 root staff 20 Feb 1 22:49 libopenvas_nasl.so -><br>
> libopenvas_nasl.so.8<br>
> lrwxrwxrwx 1 root staff 28 Feb 1 22:49 libopenvas_nasl.so.8 \
-><br> > libopenvas_nasl.so.8.0+beta5<br>
> -rw-r--r-- 1 root staff 1429025 Feb 1 23:00 libopenvas_nasl.so.8.0+beta5<br>
><br>
> Any ideas?<br>
<br>
</div></div>Quick guess: it looks like /usr/local/lib is not in the search path.<br>
Have you tried using ldconfig or LD_LIBRARY_PATH to add it to the search path?<br>
<br>
Try<br>
LD_LIBRARY_PATH=/usr/local/lib openvassd --help<br>
in the shell.<br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Dr. Jan-Oliver Wagner | <a href="tel:%2B49-541-335084-0" value="+495413350840" \
target="_blank">+49-541-335084-0</a> | <a href="http://www.greenbone.net/" \
target="_blank">http://www.greenbone.net/</a><br> Greenbone Networks GmbH, Neuer \
Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 202460<br> Geschäftsführer: Lukas \
Grunwald, Dr. Jan-Oliver Wagner<br> \
_______________________________________________<br> Openvas-devel mailing list<br>
<a href="mailto:Openvas-devel@wald.intevation.org" \
target="_blank">Openvas-devel@wald.intevation.org</a><br> <a \
href="https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel" \
target="_blank">https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic