# unix-network-programming **Repository Path**: book-note/unix-network-programming ## Basic Information - **Project Name**: unix-network-programming - **Description**: unix network programming book code - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-06-02 - **Last Updated**: 2022-11-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Unix network programming ## linux ### download the `unpv13e.tar.gz` ### tar `unpv13e.tar.gz` to `unpv13e` ```bash ./configure cd lib make cd ../libfree make cd .. sudo cp lib/unp.h /usr/include/unp.h sudo cp config.h /usr/include/config.h sudo cp libunp.a /usr/lib/libunp.a ``` modify `unp.h` line 48 from to ## mac ### download the `unpv13e.tar.gz` ### tar `unpv13e.tar.gz` to `unpv13e` ### exec command ```bash ./configure cd lib make cd ../libfree # delete `#include ` in inet_ntop.c make ``` `gcc --version` shows the install path ```bash sudo cp lib/unp.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/unp.h sudo cp config.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/config.h sudo cp libunp.a /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/. ``` ```bash sudo cp libunp.a /usr/local/lib/. ``` modify `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/unp.h` line 7 from `#include "../config.h"` to `#include "config.h"`