installing cppunit 1.12.1 on ubuntu 13.10 in vmware player

Discussion in 'Command Line' started by linuxuser2324, Jan 13, 2014.

  1. linuxuser2324

    linuxuser2324 New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    I am trying to install cppunit 1.12.1 on my unbutu(13.10) in my vmware.
    I followed the instructions

    1) run the command ./configure
    2) run the command make
    3) run the command make install

    However I seem to get errors after I run the command 'make' and 'make install'

    Below are the full outputs after I ran the the commands


    The output after I ran ./configure

    Code:
    hecking for a BSD-compatible install... /usr/bin/install -c
        checking whether build environment is sane... yes
        checking for a thread-safe mkdir -p... /bin/mkdir -p
        checking for gawk... no
        checking for mawk... mawk
        checking whether make sets $(MAKE)... yes
        checking whether make sets $(MAKE)... (cached) yes
        checking for a BSD-compatible install... /usr/bin/install -c
        checking for gcc... gcc
        checking for C compiler default output file name... a.out
        checking whether the C compiler works... yes
        checking whether we are cross compiling... no
        checking for suffix of executables...
        checking for suffix of object files... o
        checking whether we are using the GNU C compiler... yes
        checking whether gcc accepts -g... yes
        checking for gcc option to accept ISO C89... none needed
        checking for style of include used by make... GNU
        checking dependency style of gcc... gcc3
        checking for g++... no
        checking for c++... no
        checking for gpp... no
        checking for aCC... no
        checking for CC... no
        checking for cxx... no
        checking for cc++... no
        checking for cl.exe... no
        checking for FCC... no
        checking for KCC... no
        checking for RCC... no
        checking for xlC_r... no
        checking for xlC... no
        checking whether we are using the GNU C++ compiler... no
        checking whether g++ accepts -g... no
        checking dependency style of g++... none
        checking build system type... i686-pc-linux-gnu
        checking host system type... i686-pc-linux-gnu
        checking for a sed that does not truncate output... /bin/sed
        checking for grep that handles long lines and -e... /bin/grep
        checking for egrep... /bin/grep -E
        checking for ld used by gcc... /usr/bin/ld
        checking if the linker (/usr/bin/ld) is GNU ld... yes
        checking for /usr/bin/ld option to reload object files... -r
        checking for BSD-compatible nm... /usr/bin/nm -B
        checking whether ln -s works... yes
        checking how to recognize dependent libraries... pass_all
        checking how to run the C preprocessor... gcc -E
        checking for ANSI C header files... yes
        checking for sys/types.h... yes
        checking for sys/stat.h... yes
        checking for stdlib.h... yes
        checking for string.h... yes
        checking for memory.h... yes
        checking for strings.h... yes
        checking for inttypes.h... yes
        checking for stdint.h... yes
        checking for unistd.h... yes
        checking dlfcn.h usability... yes
        checking dlfcn.h presence... yes
        checking for dlfcn.h... yes
        checking for g77... no
        checking for xlf... no
        checking for f77... no
        checking for frt... no
        checking for pgf77... no
        checking for cf77... no
        checking for fort77... no
        checking for fl32... no
        checking for af77... no
        checking for xlf90... no
        checking for f90... no
        checking for pgf90... no
        checking for pghpf... no
        checking for epcf90... no
        checking for gfortran... no
        checking for g95... no
        checking for xlf95... no
        checking for f95... no
        checking for fort... no
        checking for ifort... no
        checking for ifc... no
        checking for efc... no
        checking for pgf95... no
        checking for lf95... no
        checking for ftn... no
        checking whether we are using the GNU Fortran 77 compiler... no
        checking whether  accepts -g... no
        checking the maximum length of command line arguments... 1572864
        checking command to parse /usr/bin/nm -B output from gcc object... failed
        checking for objdir... .libs
        checking for ar... ar
        checking for ranlib... ranlib
        checking for strip... strip
        checking if gcc supports -fno-rtti -fno-exceptions... no
        checking for gcc option to produce PIC... -fPIC
        checking if gcc PIC flag -fPIC works... yes
        checking if gcc static flag -static works... yes
        checking if gcc supports -c -o file.o... yes
        checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
        checking whether -lc should be explicitly linked in... no
        checking dynamic linker characteristics... GNU/Linux ld.so
        checking how to hardcode library paths into programs... immediate
        checking whether stripping libraries is possible... yes
        checking if libtool supports shared libraries... yes
        checking whether to build shared libraries... yes
        checking whether to build static libraries... yes
        configure: creating libtool
        appending configuration tag "CXX" to libtool
        appending configuration tag "F77" to libtool
        checking for shl_load... no
        checking for shl_load in -ldld... no
        checking for dlopen in -ldl... no
        checking for dlopen in -lsvld... no
        checking for dld_link in -ldld... no
        checking for doxygen... no
        checking for cmath... no
        checking whether the compiler supports Run-Time Type Identification... no
        checking whether the compiler supports GCC C++ ABI name demangling... no
        checking whether the compiler implements namespaces... no
        checking whether std::string::compare takes a string in argument 1... no
        checking whether the compiler has stringstream... no
        checking whether the library defines class strstream... checking strstream usability... no
        checking strstream presence... no
        checking for strstream... no
        no
        checking for isfinite... no
        checking for finite... no
        configure: creating ./config.status
        config.status: creating Makefile
        config.status: creating cppunit.pc
        config.status: creating cppunit.spec
        config.status: creating cppunit-config
        config.status: creating src/Makefile
        config.status: creating src/DllPlugInTester/Makefile
        config.status: creating src/cppunit/Makefile
        config.status: creating include/Makefile
        config.status: creating include/cppunit/Makefile
        config.status: creating include/cppunit/config/Makefile
        config.status: creating include/cppunit/extensions/Makefile
        config.status: creating include/cppunit/plugin/Makefile
        config.status: creating include/cppunit/portability/Makefile
        config.status: creating include/cppunit/tools/Makefile
        config.status: creating include/cppunit/ui/Makefile
        config.status: creating include/cppunit/ui/mfc/Makefile
        config.status: creating include/cppunit/ui/qt/Makefile
        config.status: creating include/cppunit/ui/text/Makefile
        config.status: creating doc/Makefile
        config.status: creating doc/Doxyfile
        config.status: creating examples/Makefile
        config.status: creating examples/simple/Makefile
        config.status: creating examples/hierarchy/Makefile
        config.status: creating examples/cppunittest/Makefile
        config.status: creating examples/ClockerPlugIn/Makefile
        config.status: creating examples/DumperPlugIn/Makefile
        config.status: creating examples/money/Makefile
        config.status: creating config/config.h
        config.status: config/config.h is unchanged
        config.status: executing depfiles commands
        config.status: executing default commands
        creating include/cppunit/config-auto.h - prefix CPPUNIT for config/config.h defines
    The output after after run the command make

    Code:
    libtool: ignoring unknown tag CXX
        env: g++: No such file or directory
        make[2]: *** [AdditionalMessage.lo] Error 1
        make[1]: *** [all-recursive] Error 1
        make: *** [all-recursive] Error 1Making all in src
        make[1]: Entering directory `/home/jeremy/Desktop/cppunit-1.12.1/src'
        Making all in cppunit
        make[2]: Entering directory `/home/jeremy/Desktop/cppunit-1.12.1/src/cppunit'
        source='AdditionalMessage.cpp' object='AdditionalMessage.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../../config/depcomp \
        /bin/bash ../../libtool --tag=CXX  --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..  /config -I../../include -I../../include    -c -o AdditionalMessage.lo    AdditionalMessage.cpp
        libtool: ignoring unknown tag CXX
        g++ -DHAVE_CONFIG_H -I. -I../../config -I../../include -I../../include -c      AdditionalMessage.cpp  -fPIC -DPIC -o .libs/AdditionalMessage.o
        env: g++: No such file or directory
        make[2]: *** [AdditionalMessage.lo] Error 1
        make[2]: Leaving directory `/home/jeremy/Desktop/cppunit-1.12.1/src/cppunit'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/home/jeremy/Desktop/cppunit-1.12.1/src'
        make: *** [all-recursive] Error 1
    the output after I ran make install

    Code:
    Making install in cppunit
        make[2]: Entering directory `/home/jeremy/Desktop/cppunit-1.12.1/src/cppunit'
        source='AdditionalMessage.cpp' object='AdditionalMessage.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ../../config/depcomp \
        /bin/bash ../../libtool --tag=CXX  --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../config -I../../include -I../../include    -c -o AdditionalMessage.lo AdditionalMessage.cpp
        libtool: ignoring unknown tag CXX
        g++ -DHAVE_CONFIG_H -I. -I../../config -I../../include -I../../include -c    AdditionalMessage.cpp  -fPIC -DPIC -o .libs/AdditionalMessage.o
        env: g++: No such file or directory
        make[2]: *** [AdditionalMessage.lo] Error 1
        make[2]: Leaving directory `/home/jeremy/Desktop/cppunit-1.12.1/src/cppunit'
        make[1]: *** [install-recursive] Error 1
        make[1]: Leaving directory `/home/jeremy/Desktop/cppunit-1.12.1/src'
        make: *** [install-recursive] Error 1

    How do I resolve the error?Please help thanks.
    DevynCJohnson likes this.
  2. arochester

    arochester Active Member

    Messages:
    613
    Likes Received:
    193
    Trophy Points:
    43
    Have you installed the development library?

    sudo apt-get install libcppunit-dev
    DevynCJohnson likes this.
  3. linuxuser2324

    linuxuser2324 New Member

    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    thanks for your suggestions. I it's workng now

Share This Page