To compile the example programs from Stevens’ “Advanced Programming in the UNIX Environment,” under Ubuntu, install the following package:
libc6-dev (will automatically install another package that it depends upon)
The header files are located in /usr/include.
Now, to compile, say Program 1.1, go to files/. Type “make ls1″.
./ls1 /etc
To install man pages for libraries, look for “manpages-dev” package, which contains:
these two sections:
2 = Linux system calls.
3 = Library calls (note that a more comprehensive source of information
may be found in the glibc-doc package).
Post a Comment