1../ConfigureMe configure

报错:configure: whether to enable the management tool... try
configure: error: The following required components noted earlier are missing:
     libnet
    Please supply them and try again.

解决办法:提示没有libnet这个包,要下载源码包libnet 安装。

2.make

报错:/libltdl.a(ltdl.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libltdl.a(ltdl.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

解决办法:yum install libtool-ltdl-devel
报错:pils.c:245: warning: initialization from incompatible pointer type
pils.c:246: warning: initialization from incompatible pointer type
gmake[2]: *** [pils.lo] Error 1
gmake[2]: Leaving directory `/usr/local/src/heartbeat-2.0.4/lib/pils'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/heartbeat-2.0.4/lib'
make: *** [all-recursive] Error 1
参考README里的方法:gmake DESTDIR="$PWD/heartbeat-2.0.4/=inst" distcheck后出现下面的错误
PIC -o .libs/pils.o
../../../lib/pils/pils.c:245: warning: initialization from incompatible pointer type
../../../lib/pils/pils.c:246: warning: initialization from incompatible pointer type
gmake[3]: *** [pils.lo] Error 1
gmake[3]: Leaving directory `/usr/local/src/heartbeat-2.0.4/heartbeat-2.0.4/_build/lib/pils'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/src/heartbeat-2.0.4/heartbeat-2.0.4/_build/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/heartbeat-2.0.4/heartbeat-2.0.4/_build'
gmake: *** [distcheck] Error 2
 

解决办法:./ConfigureMe configure --enable-fatal-warnings=no
./ConfigureMe make --enable-fatal-warnings=no
用这种方法能编译了