Preparation (Environment Setup)

Go to the official website to download the source code apue official website

Then download it in Linux

$ wget http://www.apuebook.com/src.3e.tar.gz
Copy the code

Then unpack

$ tar -zxvf src.3e.tar.gz
Copy the code

Then go to the directory and execute make

Then place the compiled files in the /usr/include and /usr/lib directories

$ sudo cp ./include/apue.h /usr/include
$ sudo cp ./lib/libapue.a /usr/local/lib
Copy the code

Executable files are compiled in each directory