- 下载
http://www.gnu.org/software/gperf/
- 解压
tar xf gperf-3.1.tar.gz cd gperf-3.1
- 编译
BUILD_LIBS=${HOME}/build_libs export PATH=${BUILD_LIBS}/bin:${PATH} export PKG_CONFIG_PATH=${BUILD_LIBS}/lib/pkgconfig:${PKG_CONFIG_PATH} if [ -f autogen.sh ]; then ./autogen.sh fi ./configure \ --prefix=${BUILD_LIBS} \ CFLAGS="-I${BUILD_LIBS}/include" \ LDFLAGS="-L${BUILD_LIBS}/lib" make make install cp src/gperf ${BUILD_LIBS}/bin