1.下载
wget http://prdownloads.sourceforge.net/zthread/ZThread-2.3.2.tar.gz
2.解压
tar -zxvf ZThread-2.3.2.tar.gz
3. 进入源码目录
cd ZThread-2.3.2/src
libtoolize --copy --force
4.进入构建目录即ZThread-2.3.2目录下
cd ..
aclocal -I share/
autoconf
automake
如果有报错
configure.ac:56: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.ac:56: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.ac:56: error: required file './missing' not found
configure.ac:56: 'automake --add-missing' can install 'missing'
src/Makefile.am:21: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: error: required file './depcomp' not found
src/Makefile.am: 'automake --add-missing' can install 'depcomp'
按照提示执行 automake --add-missing
automake --add-missing
4.make 和 make install
./configure --prefix=<绝对路径>/ZThread-2.3.2 CXXFLAGS="$CXXFLAGS -fpermissive"