Landlord rookie, from the "Linux/unix system Programming Manual" to learn, learn the procedure must first run the example to play, but did not know how to do 1 hours in the book example how to run, Baidu does not come out, casually dozen a make order drink a cup of water, found out a xx.a file, the problem solved. Take out and share with you, don't like to Spray, O (∩_∩) o haha ~
Environment: Win7 under VMWARE10+UBUNTU14
1, to the official website (http://www.man7.org/tlpi/code/index.html), click the download link to obtain the source address, copy down
2, directly under the Linux paste this address, download:
wget http://211.162.31.131/files/7227000001B694A3/www.man7.org/tlpi/code/download/tlpi-160726-dist.tar.gz- o AAA (Take a name, haha everybody do it)
3, decompression TAR-ZXVF AAA
The program in make Progconc found an error: Make: * * * No rule to make target '. /libtlpi.a ', needed by ' syscall_speed '. Stop. It means that the superior document is less xx.a.
4, the solution: Under the Tlpi-dist directory make.
Drink a water, wait to finish ...
There is a need for the xx.a file, which means that you can boil casually play the students.
5, all have (green can execute file), run casually.
6, if out of learning needs, changed part of the code, directly in the chapters of the directory make good
Salute.