Posts

Showing posts with the label Compiling

Compiling Code From Apue

Answer : A short review of how to write and compile the programs in Advanced Programming in the UNIX® Environment, thanks to slm for helping me understand the steps. You can download the source code from here. I wish this information was included as part of appendix b of the book, where the header file is explained. The uncompressed file contains directories with the names of the chapters and two others named include and lib . The ones with the names of the chapters have all the programs of that chapter in them. The include directory contains the header file that is used in most of the programs in the book: apue.h . The lib directory has the source code of the implementations for the that header. Lets assume the uncompressed file is located at: SCADDRESS/ , for example it might be: /home/yourid/Downloads/apue.3e/ Once you uncompress the source code, go in the directory and run make : $ cd SCADDRESS $ make make will compile all the programs in all the chapters. But the important...

Can Not Run Configure Command: "No Such File Or Directory"

Answer : If the file is called configure.ac, do $> autoconf Depends: M4, Automake If you're not sure what to do, try $> cat readme They must mean that you use "autoconf" to generate an executable "configure" file. So the order is: $> autoconf $> ./configure $> make $> make install The failsafe for generating a configure script is autoreconf -i , which not only takes care of calling autoconf itself, but also a host of other tools that may be needed. It's just problem with permissions Run chmod +x ./configure Should work