I'm trying to install CUnit. I try to follow the instructions in README, but
I'm running into problems and 'make' generates an error. I have pasted the
terminal session below. The commands are run in the CUnit install dir,
CUnit-2.1-2 (the dir containing README, make, Makefile etc.).
I wish to install in /opt/CUnit/ (is this typical? Or what would you
recommend? I try not to have installed applications in my user dir.). My user
doesn't have write access to /opt/, but using 'sudo automake', 'sudo make'
etc. generates the same errors.
Thanks,
Carl
(I replaced the name of my home dir with "<user-dir>".)
$ aclocal
$ autoconf
$ automake
CUnit/Sources/Automated/Makefile.am:3: Libtool library used but `LIBTOOL' is undefinedCUnit/Sources/Automated/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'CUnit/Sources/Automated/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
CUnit/Sources/Automated/Makefile.am:3: If `LT_INIT' is in `configure.in', make sure
CUnit/Sources/Automated/Makefile.am:3: its definition is in aclocal's search path.CUnit/Sources/Basic/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
CUnit/Sources/Basic/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'
CUnit/Sources/Basic/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.CUnit/Sources/Basic/Makefile.am:3: If `LT_INIT' is in `configure.in', make sureCUnit/Sources/Basic/Makefile.am:3: its definition is in aclocal's search path.
CUnit/Sources/Console/Makefile.am:3: Libtool library used but `LIBTOOL' is undefinedCUnit/Sources/Console/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'CUnit/Sources/Console/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
CUnit/Sources/Console/Makefile.am:3: If `LT_INIT' is in `configure.in', make sure
CUnit/Sources/Console/Makefile.am:3: its definition is in aclocal's search path.CUnit/Sources/Curses/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
CUnit/Sources/Curses/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'
CUnit/Sources/Curses/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.CUnit/Sources/Curses/Makefile.am:3: If `LT_INIT' is in `configure.in', make sureCUnit/Sources/Curses/Makefile.am:3: its definition is in aclocal's search path.
CUnit/Sources/Framework/Makefile.am:18: `%'-style pattern rules are a GNU make extensionCUnit/Sources/Framework/Makefile.am:28: library used but `RANLIB' is undefined
CUnit/Sources/Framework/Makefile.am:28: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
CUnit/Sources/Framework/Makefile.am:28: to `configure.in' and run `autoconf' again.
CUnit/Sources/Framework/Makefile.am:10: Libtool library used but `LIBTOOL' is undefinedCUnit/Sources/Framework/Makefile.am:10: The usual way to define `LIBTOOL' is to add `LT_INIT'CUnit/Sources/Framework/Makefile.am:10: to `configure.in' and run `aclocal' and `autoconf' again.
CUnit/Sources/Framework/Makefile.am:10: If `LT_INIT' is in `configure.in', make sure
CUnit/Sources/Framework/Makefile.am:10: its definition is in aclocal's search path.CUnit/Sources/Makefile.am:74: library used but `RANLIB' is undefined
CUnit/Sources/Makefile.am:74: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
CUnit/Sources/Makefile.am:74: to `configure.in' and run `autoconf' again.
CUnit/Sources/Makefile.am:67: Libtool library used but `LIBTOOL' is undefinedCUnit/Sources/Makefile.am:67: The usual way to define `LIBTOOL' is to add `LT_INIT'CUnit/Sources/Makefile.am:67: to `configure.in' and run `aclocal' and `autoconf' again.
CUnit/Sources/Makefile.am:67: If `LT_INIT' is in `configure.in', make sure
CUnit/Sources/Makefile.am:67: its definition is in aclocal's search path.Examples/Makefile.am:26: library used but `RANLIB' is undefined
Examples/Makefile.am:26: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'
Examples/Makefile.am:26: to `configure.in' and run `autoconf' again.
$
$
$
$
$ ./configure --prefix /opt/CUnit/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/<user-dir>/misc/c_test/CUnit-2.1-2/missing: Unknown `--run' optionTry `/home/<user-dir>/misc/c_test/CUnit-2.1-2/missing --help'for more information
configure: WARNING: `missing' script is too old or missingchecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... nochecking for mawk... mawkchecking whether make sets $(MAKE)... yes---------- Disabling debug mode compilation.++++++++++ Enabling automated(XML) mode compilation++++++++++ Enabling basic mode compilation++++++++++ Enabling console mode compilation---------- Disabling curses mode compilation---------- Disabling examples mode compilation---------- Disabling test mode compilation---------- Disabling memtrace functionality at compile time---------- Disabling use of deprecated v1.1 nameschecking for gcc... gccchecking whether the C compiler works... yeschecking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... nochecking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of gcc... gcc3checking whether make sets $(MAKE)... (cached) yes./configure: line 3881: AC_PROG_LIBTOOL: command not foundchecking for main in -lc... yeschecking for malloc... yeschecking for free... yeschecking for calloc... yeschecking for realloc... yeschecking for strcpy... yeschecking for strerror... yeschecking for fopen... yeschecking for fclose... yeschecking for fprintf... yeschecking for setvbuf... yeschecking for time... yeschecking for ctime... yeschecking how to run the C preprocessor... gcc -Echecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ANSI C header files... yeschecking for sys/types.h... yeschecking for sys/stat.h... yeschecking for stdlib.h... yeschecking for string.h... yeschecking for memory.h... yeschecking for strings.h... yeschecking for inttypes.h... yeschecking for stdint.h... yeschecking for unistd.h... yeschecking assert.h usability... yeschecking assert.h presence... yeschecking for assert.h... yeschecking ctype.h usability... yeschecking ctype.h presence... yeschecking for ctype.h... yeschecking math.h usability... yeschecking math.h presence... yeschecking for math.h... yeschecking file.h usability... nochecking file.h presence... nochecking for file.h... nochecking stdio.h usability... yeschecking stdio.h presence... yeschecking for stdio.h... yeschecking for stdlib.h... (cached) yeschecking for string.h... (cached) yeschecking for an ANSI C-conforming const... yesconfigure: creating ./config.statusconfig.status: creating Jamrulesconfig.status: creating Makefileconfig.status: creating CUnit.specconfig.status: creating cunit.pcconfig.status: creating CUnit/Makefileconfig.status: creating CUnit/Headers/Makefileconfig.status: creating CUnit/Headers/CUnit.hconfig.status: creating CUnit/Sources/Makefileconfig.status: creating CUnit/Sources/Framework/Makefileconfig.status: creating CUnit/Sources/Automated/Makefileconfig.status: creating CUnit/Sources/Basic/Makefileconfig.status: creating CUnit/Sources/Console/Makefileconfig.status: creating CUnit/Sources/Curses/Makefileconfig.status: creating CUnit/Sources/Test/Makefileconfig.status: creating doc/Makefileconfig.status: creating doc/headers/Makefileconfig.status: creating Examples/Makefileconfig.status: creating Examples/AutomatedTest/Makefileconfig.status: creating Examples/BasicTest/Makefileconfig.status: creating Examples/ConsoleTest/Makefileconfig.status: creating Examples/CursesTest/Makefileconfig.status: creating Man/Makefileconfig.status: creating Man/man3/Makefileconfig.status: creating Share/Makefileconfig.status: creating config.hconfig.status: config.h is unchangedconfig.status: executing depfiles commands$ $ $ $ sudo make[sudo] password for carl: cd . && automake-1.11 --gnuCUnit/Sources/Automated/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
CUnit/Sources/Automated/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'
CUnit/Sources/Automated/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.CUnit/Sources/Automated/Makefile.am:3: If `LT_INIT' is in `configure.in', make sureCUnit/Sources/Automated/Makefile.am:3: its definition is in aclocal's search path.
CUnit/Sources/Basic/Makefile.am:3: Libtool library used but `LIBTOOL' is undefinedCUnit/Sources/Basic/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'CUnit/Sources/Basic/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
CUnit/Sources/Basic/Makefile.am:3: If `LT_INIT' is in `configure.in', make sure
CUnit/Sources/Basic/Makefile.am:3: its definition is in aclocal's search path.CUnit/Sources/Console/Makefile.am:3: Libtool library used but `LIBTOOL' is undefined
CUnit/Sources/Console/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'
CUnit/Sources/Console/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.CUnit/Sources/Console/Makefile.am:3: If `LT_INIT' is in `configure.in', make sureCUnit/Sources/Console/Makefile.am:3: its definition is in aclocal's search path.
CUnit/Sources/Curses/Makefile.am:3: Libtool library used but `LIBTOOL' is undefinedCUnit/Sources/Curses/Makefile.am:3: The usual way to define `LIBTOOL' is to add `LT_INIT'CUnit/Sources/Curses/Makefile.am:3: to `configure.in' and run `aclocal' and `autoconf' again.
CUnit/Sources/Curses/Makefile.am:3: If `LT_INIT' is in `configure.in', make sure
CUnit/Sources/Curses/Makefile.am:3: its definition is in aclocal's search path.CUnit/Sources/Framework/Makefile.am:18: `%'-style pattern rules are a GNU make extension
CUnit/Sources/Framework/Makefile.am:28: library used but `RANLIB' is undefinedCUnit/Sources/Framework/Makefile.am:28: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'CUnit/Sources/Framework/Makefile.am:28: to `configure.in' and run `autoconf' again.CUnit/Sources/Framework/Makefile.am:10: Libtool library used but `LIBTOOL' is undefined
CUnit/Sources/Framework/Makefile.am:10: The usual way to define `LIBTOOL' is to add `LT_INIT'
CUnit/Sources/Framework/Makefile.am:10: to `configure.in' and run `aclocal' and `autoconf' again.CUnit/Sources/Framework/Makefile.am:10: If `LT_INIT' is in `configure.in', make sureCUnit/Sources/Framework/Makefile.am:10: its definition is in aclocal's search path.
CUnit/Sources/Makefile.am:74: library used but `RANLIB' is undefinedCUnit/Sources/Makefile.am:74: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'CUnit/Sources/Makefile.am:74: to `configure.in' and run `autoconf' again.CUnit/Sources/Makefile.am:67: Libtool library used but `LIBTOOL' is undefined
CUnit/Sources/Makefile.am:67: The usual way to define `LIBTOOL' is to add `LT_INIT'
CUnit/Sources/Makefile.am:67: to `configure.in' and run `aclocal' and `autoconf' again.CUnit/Sources/Makefile.am:67: If `LT_INIT' is in `configure.in', make sureCUnit/Sources/Makefile.am:67: its definition is in aclocal's search path.
Examples/Makefile.am:26: library used but `RANLIB' is undefinedExamples/Makefile.am:26: The usual way to define `RANLIB' is to add `AC_PROG_RANLIB'Examples/Makefile.am:26: to `configure.in' and run `autoconf' again.
make: *** [Makefile.in] Error 1
$
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I encountered an issue while running make after installing libtools, where I received the following error:
mv: cannot stat `.deps/CUError.Tpo': No such file or directory
After researching the problem, I [[discovered] that running autoreconf before make resolved the issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I'm running Ubuntu 12.04.
I'm trying to install CUnit. I try to follow the instructions in README, but
I'm running into problems and 'make' generates an error. I have pasted the
terminal session below. The commands are run in the CUnit install dir,
CUnit-2.1-2 (the dir containing README, make, Makefile etc.).
I wish to install in /opt/CUnit/ (is this typical? Or what would you
recommend? I try not to have installed applications in my user dir.). My user
doesn't have write access to /opt/, but using 'sudo automake', 'sudo make'
etc. generates the same errors.
Thanks,
Carl
(I replaced the name of my home dir with "<user-dir>".)
I solved it.
I installed libtools. When running make, I then got:
After some googling I tried running autoreconf before make, and then it
worked.
I encountered an issue while running make after installing libtools, where I received the following error:
mv: cannot stat `.deps/CUError.Tpo': No such file or directory
After researching the problem, I [[discovered] that running autoreconf before make resolved the issue.