[Open-scap] getting started with source
Przemek Klosowski
przemek.klosowski at nist.gov
Thu Oct 20 13:18:51 UTC 2011
On 10/19/2011 11:14 AM, Vladimir Giszpenc wrote:
> # ldd `which oscap` | grep openscap
> /usr/bin/ldd: line 163: /lib/ld-linux.so.2: cannot execute binary file
> libopenscap.so.1 => not found
>
> however
>
> # ls -laF /usr/local/lib64/libopenscap.so.1
> lrwxrwxrwx 1 root root 20 Oct 19 11:05 /usr/local/lib64/libopenscap.so.1 ->
> libopenscap.so.1.0.0*
>
> Do I need to rerun configure with a prefix?
Yes, it looks like openscap default is /usr/local/lib64 and your system
uses /lib, so maybe ./configure --prefix=/ would work but this doesn't
deal with the lib/lib64 issue, so maybe you need --libdir=/lib.
I am not sure what's the best solution that matches your system's
conventions. Perhaps Vincent's solution of adding /usr/local/lib64 to
ld.so.conf is the best way assuming you are running a 64-bit
kernel/system.
BTW, do a quick check by running
LD_LIBRARY_PATH=/usr/local/lib64 oscap xccdf generate guide --profile
allrules output/rhel6-xccdf.xml > output/rhel6-guide.html
More information about the Open-scap-list
mailing list