系统是suselinux 11 64位

下载 ZThread 2.3.2 zthread.sourceforge.net/download.html

 

  2 解压以后进行安装

     1)./configure CXXFLAGS=-fpermissive, 千万不要少了CXXFLAGS=-fpermissive,否则在make的时候会报错。

./configure CXXFLAGS=-fpermissive --prefix=/usr/local/zthread

编译个过程有个报错

checking for correct ltmain.sh version... grep: character class syntax is [[:space:]], not [:space:]

no

 

*** Gentoo sanity check failed! ***

*** libtool.m4 and ltmain.sh have a version mismatch! ***

*** (libtool.m4 = 1.5.10, ltmain.sh = ) ***

 

Please run:

 

  libtoolize --copy --force

 

if appropriate, please contact the maintainer of this

package (or your distribution) for help.

支持这个命令

suse-linux:/usr/src/ZThread-2.3.2 # autoreconf --force --install --symlink

如果这个命令你执行错误

请安装 automake

zypper install automake

 编译的时候还是有错误了

 

./configure: line 3119: syntax error near unexpected token `share'

./configure: line 3119: `AM_ACLOCAL_INCLUDE(share)'

  注释 3119行

  就可以了

   然后make && make install

 就完成了