Git Product home page Git Product logo

go-apue's Introduction

APUE(Unix环境高级编程)例子Golang版实现

APUE源码编译

我的实验环境是centos-7.0-x86_64虚拟机,vagrant环境下运行。

安装GCC

yum install gcc

获取apue第三版源码并解压

mkdir ~/
wget -c "http://www.apuebook.com/src.3e.tar.gz"
tar zxvf src.3e.tar.gz
cd apue.3e

设置环境变量

echo 'export C_INCLUDE_PATH=~/apue.3e/include' >> $HOME/.bashrc
echo 'export LIBRARY_PATH=~/apue.3e/lib' >> $HOME/.bashrc
source ~/.bashrc

测试

cd fileio
make //编译依赖环境
gcc -ansi -I../include -Wall -DLINUX -D_GNU_SOURCE  seek.c -o seek  -L../lib -lapue
./seek < /etc/passwd
seek OK 

至此,APUE编译环境设置OK。

go-apue's People

Contributors

kuuyee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.