Tuesday, September 6, 2016

.Exercise 8-6: Working with Shared Libraries


In this exercise, you will practice managing shared libraries. You can perform this exercise using the virtual machine that comes with this book. Run snapshot 8-3 for the correctly configured environment.


Complete the following:

1. With your system running, open a terminal session.

2. If necessary, change to your root user account by entering
su – followed by your root user’s password.

3.
View the shared libraries used by the ping executable on your system by entering ldd –v /bin/ping at the shell prompt. You should see that ping requires the libc.so.6 shared library.

4. Find the location of the lib64/libc.so.6 library file on your system by entering find / –name libc.so.6 at the shell prompt. On a 32-bit system, you should see that the file resides in /lib. On a 64-bit system, it probably resides in /lib64.

5. View your system’s library cache by entering ldconfig –p at the shell prompt.

6. Rebuild your library cache by entering ldconfig –v at the shell prompt



No comments:

Post a Comment