APUE 配置(Fedora)

1.Download the source http://www.apuebook.com/sourcecode.html
2.Modify the Make.defines.linux

3.Then, "make" it!


If you don't have "stropts.h" that might be a little complicated. Firstly, you type:

yum install git-core
git clone git://sourceware.org/git/glibc.git
cp glibc/streams/stropts.h /usr/include
cp glibc/bits/stropts.h /usr/include/bits/
cp glibc/sysdeps/x86_64/bits/xtitypes.h /usr/include/bits/


If it says "nawk" not found, you just need to:

vim ./std/linux.mk
:%s/nawk/awk/gc


If it says "ARG_MAX" not defined, you just need to:

      add #define ARG_MAX 4096 in the apue.h
    add #include in threadctl/getenv1.c 

    and threadctl/getenv3.c

normally, that's all you might encounter.

after you've "make" it, don't forget move "apue.h" and "libapue.a" to /usr/local/include and /usr/local/lib

And now, congratulations! Everything is DONE!

你可能感兴趣的:(fedora,apue)