Yes, you are right. After install cppunit. "ant test" succeed. Thank you so much~
At 2012-01-05 01:11:25,"Patrick Hunt" <[email protected]> wrote: >Seems you don't have cppunit installed? This is what I have on my machine: > >libcppunit-1.12-1 install >libcppunit-dev install > >Try installing those and see if it helps. > >Patrick > >On Wed, Jan 4, 2012 at 2:21 AM, lulynn_2008 <[email protected]> wrote: >> Hello, >> I am running "ant test" to zookeeper-3.4.2 and failed with the following >> informantion: >> Could you please help to check what the problem is? Thank you. >> [exec] then mv -f ".deps/zktest_st-TestDriver.Tpo" >> ".deps/zktest_st-TestDriver.Po"; else rm -f >> ".deps/zktest_st-TestDriver.Tpo"; exit 1; fi >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:20:32: >> error: cppunit/TestRunner.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:21:39: >> error: cppunit/CompilerOutputter.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:22:32: >> error: cppunit/TestResult.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:23:41: >> error: cppunit/TestResultCollector.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:24:46: >> error: cppunit/TextTestProgressListener.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:25:47: >> error: cppunit/BriefTestProgressListener.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:26:52: >> error: cppunit/extensions/TestFactoryRegistry.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:32:31: >> error: cppunit/Exception.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:33:33: >> error: cppunit/TestFailure.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:34:34: >> error: cppunit/XmlOutputter.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:35:32: >> error: cppunit/TestAssert.h: No such file or directory >> [exec] >> /root/zookeeper-3.4.1/zookeeper-3.4.2/src/c/tests/TestDriver.cc:46: error: >> expected constructor, destructor, or type conversion before âclassâ >> [exec] make[1]: Leaving directory >> `/root/zookeeper-3.4.1/zookeeper-3.4.2/build/test/test-cppunit' >> [exec] make[1]: *** [zktest_st-TestDriver.o] Error 1 >> [exec] make: *** [check-am] Error 2 >> >> BUILD FAILED >> /root/zookeeper-3.4.1/zookeeper-3.4.2/build.xml:1288: The following error >> occurred while executing this line: >> /root/zookeeper-3.4.1/zookeeper-3.4.2/build.xml:1248: The following error >> occurred while executing this line: >> /root/zookeeper-3.4.1/zookeeper-3.4.2/build.xml:1258: exec returned: 2
