yahoo / mdbm

MDBM a very fast memory-mapped key/value store.
BSD 3-Clause "New" or "Revised" License
992 stars 111 forks source link

Error building on Ubuntu 14.04 with gcc version 4.8.2 #29

Closed dazzag24 closed 9 years ago

dazzag24 commented 9 years ago

git clone https://github.com/yahoo/mdbm.git

cd mdbm

make

make -C unit-test default-make-target && make -C func-test default-make-target && make -C smoke-test default-make-target && make -C pool_test default-make-target && /bin/true make[3]: Entering directory `/home/user/code/mdbm/src/test/unit-test' /bin/true g++ -D_FILE_OFFSET_BITS=64 -DUSE_OPENSSL -DALLOW_MLOCK_RESET -DHAVE_ROBUST_PTHREADS -g -O2 -I/usr/include -I/usr/local/include -I/home/user/code/mdbm/include -I. -Wall -fPIC -DDISABLE_TSC -I/home/user/code/mdbm/src/lib -Wall -pedantic -Wno-variadic-macros -Wno-long-long -Wno-overlength-strings -Wno-format-security -Wno-unused-result -Werror -Wunreachable-code CppUnitTestRunnerLocal.cc TestBase.cc test_lockbase.cc test_align.cc -lm -lpthread -lcrypto -L/home/user/code/mdbm/src/lib/object -lmdbm -lpthread -lrt -lstdc++ -lreadline -lcppunit -lcppunit -L/home/user/code/mdbm/src/lib/object -fPIC -o object/test_align CppUnitTestRunnerLocal.cc:15:40: fatal error: cppunit/ui/text/TestRunner.h: No such file or directory #include ^ compilation terminated. TestBase.cc:10:32: fatal error: cppunit/TestAssert.h: No such file or directory #include ^ compilation terminated. test_lockbase.cc:24:32: fatal error: cppunit/TestAssert.h: No such file or directory #include ^ compilation terminated. test_align.cc:17:32: fatal error: cppunit/TestAssert.h: No such file or directory #include ^ compilation terminated. make[3]: *** [object/test_align] Error 1 make[3]: Leaving directory`/home/user/code/mdbm/src/test/unit-test' make[2]: **\* [make-recursive-default-make-target] Error 2 make[2]: Leaving directory `/home/user/code/mdbm/src/test' make[1]: *** [make-recursive-default-make-target] Error 2 make[1]: Leaving directory`/home/user/code/mdbm/src' make: **\* [make-recursive-default-make-target] Error 2 > uname -a > Linux hostname 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux > > cat /etc/issue > Ubuntu 14.04.1 LTS \n \l > > gcc -v > Using built-in specs. > COLLECT_GCC=/usr/bin/gcc > COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper > Target: x86_64-linux-gnu > Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu > Thread model: posix > gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
timrc-git commented 9 years ago

Hi,

In the README.build you'll see a few prerequisites listed. For this particular issue, you need cppunit and cppunit-devel installed. Thanks!

.timrc

yutannihilation commented 9 years ago

I got the same problem with Ubuntu 14.04. After sudo apt-get install libcppunit-dev, make succeeded.