diff --git a/chapter08/libcap.xml b/chapter08/libcap.xml
index fc3335f25..f3b6c0074 100644
--- a/chapter08/libcap.xml
+++ b/chapter08/libcap.xml
@@ -49,7 +49,7 @@
Compile the package:
-make lib=lib
+make prefix=/usr lib=lib
The meaning of the make option:
@@ -58,8 +58,8 @@
lib=lib
This parameter sets the library directory to
- /lib rather than
- /lib64 on x86_64. It has no effect on
+ /usr/lib rather than
+ /usr/lib64 on x86_64. It has no effect on
x86.
@@ -69,13 +69,14 @@
make test
- Install the package and do some cleanup:
+ Install the package and make sure the essential libraries are in
+ the correct directory:
-make lib=lib PKGCONFIGDIR=/usr/lib/pkgconfig install
+make prefix=/usr lib=lib install
for libname in cap psx; do
- chmod -v 755 /lib/lib${libname}.so.&libcap-version;
- rm -v /lib/lib${libname}.so
+ mv -v /usr/lib/lib${libname}.so.* /lib
ln -sfv ../../lib/lib${libname}.so.2 /usr/lib/lib${libname}.so
+ chmod -v 755 /lib/lib${libname}.so.&libcap-version;
done