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"