[Rivet] Rivet Installation error

Swasti Belwal swasti at th.physik.uni-bonn.de
Thu Jan 30 20:16:01 GMT 2014


Dear Developers,

I am trying to install the latest version of Rivet (available in Hepforge)
in Ubuntu 13.10. First I tried using the installation instruction on the
webpage (https://rivet.hepforge.org/trac/wiki/GettingStarted) as it
downloads all the dependencies itself but I got the following error in end:

{
$ ./rivet-2-bootstrap
Running Rivet 2.x bootstrap script

Building m4
checking 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 for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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 ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for gcc option to accept ISO C99... -std=gnu99
checking for gcc -std=gnu99 option to accept ISO Standard C... (cached)
-std=gnu99
configure: autobuild project... GNU M4
configure: autobuild revision... 1.4.16
configure: autobuild hostname... swasti-Inspiron-5521
configure: autobuild timestamp... 20140130T195542Z
checking for unsigned long long int... yes
checking for long long int... yes
checking for unsigned long long int... (cached) yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether <wchar.h> uses 'inline' correctly... yes
checking for btowc... yes
checking for setrlimit... yes
checking for sigaltstack... yes
checking for canonicalize_file_name... yes
checking for getcwd... yes
checking for readlink... yes
checking for realpath... yes
checking for dup2... yes
checking for fcntl... yes
checking for mempcpy... yes
checking for __fpending... yes
checking for fpurge... no
checking for __fpurge... yes
checking for __freading... yes
checking for getdtablesize... yes
checking for gettimeofday... yes
checking for lstat... yes
checking for mbsinit... yes
checking for mbrtowc... yes
checking for mprotect... yes
checking for memchr... yes
checking for mkstemp... yes
checking for nl_langinfo... yes
checking for pathconf... yes
checking for pipe2... yes
checking for posix_spawn... yes
checking for isblank... yes
checking for iswctype... yes
checking for wcscoll... yes
checking for sigaction... yes
checking for siginterrupt... yes
checking for strndup... yes
checking for pipe... yes
checking for vasnprintf... no
checking for wcrtomb... yes
checking for iswcntrl... yes
checking for link... yes
checking for newlocale... yes
checking for setenv... yes
checking for strdup... yes
checking for symlink... yes
checking for wctob... yes
checking for nl_langinfo and CODESET... yes
checking for a traditional french locale... none
checking for ucontext.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for stdio_ext.h... yes
checking for getopt.h... yes
checking for sys/time.h... yes
checking for langinfo.h... yes
checking for math.h... yes
checking for sys/mman.h... yes
checking for sched.h... yes
checking for spawn.h... yes
checking for wchar.h... yes
checking for stdint.h... (cached) yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/wait.h... yes
checking for features.h... yes
checking for wctype.h... yes
checking for xlocale.h... yes
checking for working C stack overflow detection... yes
checking for correct stack_t interpretation... yes
checking for precise C stack overflow detection... no
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for libsigsegv... no, consider installing GNU libsigsegv
checking whether // is distinct from /... no
checking whether realpath works... yes
checking if environ is properly declared... yes
checking whether the preprocessor supports include_next... yes
checking whether system header files limit the line length... no
checking for complete errno.h... yes
checking whether strerror_r is declared... yes
checking for strerror_r... yes
checking whether strerror_r returns char *... yes
checking for inline... inline
checking for mode_t... yes
checking for sig_atomic_t... yes
checking for working fcntl.h... yes
checking for fseeko... yes
checking whether frexp() can be used without linking with libm... yes
checking whether stdin defaults to large file offsets... yes
checking whether fseeko is declared... yes
checking whether ftello is declared... yes
checking for getopt.h... (cached) yes
checking for getopt_long_only... yes
checking whether getopt is POSIX compatible... yes
checking for working GNU getopt function... yes
checking whether getenv is declared... yes
checking for C/C++ restrict keyword... __restrict
checking for struct timeval... yes
checking where to find the exponent in a 'float'... word 0 bit 23
checking whether byte ordering is bigendian... no
checking whether getc_unlocked is declared... yes
checking whether we are using the GNU C Library >= 2.1 or uClibc... yes
checking for multithread API to use... none
checking whether lstat correctly handles trailing slash... yes
checking whether malloc, realloc, calloc are POSIX compliant... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for mbstate_t... yes
checking for a traditional japanese locale... none
checking for a transitional chinese locale... none
checking for a french Unicode locale... none
checking for mmap... yes
checking for MAP_ANONYMOUS... yes
checking whether memchr works... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for promoted mode_t type... mode_t
checking whether posix_spawn works... yes
checking whether posix_spawnattr_setschedpolicy is supported... yes
checking whether posix_spawnattr_setschedparam is supported... yes
checking for uid_t in sys/types.h... yes
checking whether snprintf returns a byte count as in C99... yes
checking whether snprintf is declared... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for wchar_t... yes
checking for working strerror function... yes
checking whether strndup is declared... yes
checking whether strnlen is declared... yes
checking whether strsignal is declared... yes
checking whether sys_siglist is declared... yes
checking whether strstr works... yes
checking whether strtod is declared... yes
checking whether ldexp() can be used without linking with libm... yes
checking whether stat file-mode macros are broken... no
checking for struct timespec in <time.h>... yes
checking whether clearerr_unlocked is declared... yes
checking whether feof_unlocked is declared... yes
checking whether ferror_unlocked is declared... yes
checking whether fflush_unlocked is declared... yes
checking whether fgets_unlocked is declared... yes
checking whether fputc_unlocked is declared... yes
checking whether fputs_unlocked is declared... yes
checking whether fread_unlocked is declared... yes
checking whether fwrite_unlocked is declared... yes
checking whether getchar_unlocked is declared... yes
checking whether putc_unlocked is declared... yes
checking whether putchar_unlocked is declared... yes
checking for wint_t... yes
checking for size_t... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for intmax_t... yes
checking for snprintf... yes
checking for strnlen... yes
checking for wcslen... yes
checking for wcsnlen... yes
checking for mbrtowc... (cached) yes
checking for wcrtomb... (cached) yes
checking whether _snprintf is declared... no
checking whether printf supports size specifiers as in C99... yes
checking whether printf supports 'long double' arguments... yes
checking whether printf supports infinite 'double' arguments... yes
checking whether printf supports infinite 'long double' arguments... no
checking whether printf supports the 'a' and 'A' directives... yes
checking whether printf supports the 'F' directive... yes
checking whether printf supports the 'n' directive... no
checking whether printf supports the 'ls' directive... yes
checking whether printf supports POSIX/XSI format strings with positions...
yes
checking whether printf supports the grouping flag... yes
checking whether printf supports the left-adjust flag correctly... yes
checking whether printf supports the zero flag correctly... yes
checking whether printf supports large precisions... yes
checking whether printf survives out-of-memory conditions... yes
checking whether to use C++... no
checking whether ungetc works on arbitrary bytes... yes
checking for LC_MESSAGES... yes
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking whether setenv is declared... yes
checking whether setenv validates arguments... yes
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking for tsearch... yes
checking whether strdup is declared... yes
checking whether alarm is declared... yes
checking whether unsetenv is declared... yes
checking for alloca as a compiler built-in... yes
checking whether to enable assertions... yes
checking whether btowc(0) is correct... yes
checking whether btowc(EOF) is correct... guessing yes
checking whether sigaltstack is declared... yes
checking for stack_t... yes
checking whether // is distinct from /... (cached) no
checking whether dup2 works... yes
checking for error_at_line... yes
checking whether fcntl handles F_DUPFD correctly... yes
checking whether fcntl understands F_DUPFD_CLOEXEC... needs runtime check
checking whether fflush works on input streams... no
checking whether fopen recognizes a trailing slash... yes
checking whether __fpending is declared... yes
checking whether fpurge is declared... no
checking whether frexp works... yes
checking whether frexpl is declared... yes
checking whether frexpl() can be used without linking with libm... yes
checking whether frexpl works... yes
checking for ftello... yes
checking whether ftello works... yes
checking whether gettimeofday clobbers localtime buffer... no
checking for gettimeofday with POSIX signature... almost
checking whether the compiler generally respects inline... yes
checking whether isnan(double) can be used without linking with libm... yes
checking whether isnan(float) can be used without linking with libm... yes
checking whether isnan(float) works... yes
checking whether isnan(long double) can be used without linking with
libm... yes
checking whether isnanl works... no
checking where to find the exponent in a 'long double'... word 2 bit 0
checking whether langinfo.h defines CODESET... yes
checking whether langinfo.h defines T_FMT_AMPM... yes
checking whether langinfo.h defines ERA... yes
checking whether langinfo.h defines YESEXPR... yes
checking for libsigsegv... (cached) no, consider installing GNU libsigsegv
checking whether lseek detects pipes... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... (cached) yes
checking whether NAN macro works... yes
checking whether HUGE_VAL works... yes
checking whether mbrtowc handles incomplete characters... guessing yes
checking whether mbrtowc works as well as mbtowc... guessing yes
checking whether mbrtowc handles a NULL pwc argument... guessing yes
checking whether mbrtowc handles a NULL string argument... guessing yes
checking whether mbrtowc has a correct return value... guessing yes
checking whether mbrtowc returns 0 when parsing a NUL character... guessing
yes
checking whether mbrtowc handles incomplete characters... (cached) guessing
yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking for mkdtemp... yes
checking for working mkstemp... yes
checking whether YESEXPR works... yes
checking for obstacks... yes
checking whether open recognizes a trailing slash... yes
checking whether frexp works... (cached) yes
checking whether ldexp can be used without linking with libm... (cached) yes
checking whether frexpl() can be used without linking with libm... (cached)
yes
checking whether frexpl works... (cached) yes
checking whether frexpl is declared... (cached) yes
checking whether ldexpl() can be used without linking with libm... yes
checking whether ldexpl works... yes
checking whether ldexpl is declared... yes
checking whether program_invocation_name is declared... yes
checking whether program_invocation_short_name is declared... yes
checking for rawmemchr... yes
checking whether readlink signature is correct... yes
checking whether readlink handles trailing slash correctly... yes
checking for working re_compile_pattern... yes
checking whether rename honors trailing slash on destination... yes
checking whether rename honors trailing slash on source... yes
checking whether rename manages hard links correctly... yes
checking whether rename manages existing destinations correctly... yes
checking whether rmdir works... yes
checking for struct sigaction.sa_sigaction... yes
checking for volatile sig_atomic_t... yes
checking for signbit macro... yes
checking for signbit compiler built-ins... yes
checking for sigprocmask... yes
checking for stdint.h... (cached) yes
checking for SIZE_MAX... yes
checking for snprintf... (cached) yes
checking whether snprintf respects a size of 1... yes
checking for posix_spawnattr_t... yes
checking for posix_spawn_file_actions_t... yes
checking for ssize_t... yes
checking whether stat handles trailing slashes on directories... yes
checking whether stat handles trailing slashes on files... yes
checking for va_copy... yes
checking whether NULL can be used in arbitrary expressions... yes
checking whether stdint.h conforms to C99... yes
checking for strchrnul... yes
checking for working strndup... yes
checking for working strnlen... yes
checking for strsignal... yes
checking whether strsignal always returns a string... yes
checking whether strstr works in linear time... no
checking whether strstr works... (cached) yes
checking whether strtod obeys C99... yes
checking for strtol... yes
checking for nlink_t... yes
checking for __secure_getenv... no
checking for ptrdiff_t... yes
checking for vasprintf... yes
checking for vasprintf... (cached) yes
checking for ptrdiff_t... (cached) yes
checking for waitid... yes
checking whether mbrtowc handles incomplete characters... (cached) guessing
yes
checking whether mbrtowc works as well as mbtowc... (cached) guessing yes
checking whether wcrtomb return value is correct... guessing yes
checking whether iswcntrl works... yes
checking for wctype_t... yes
checking for wctrans_t... yes
checking for stdint.h... (cached) yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional french locale... (cached) none
checking for a turkish Unicode locale... none
checking for getpagesize... yes
checking whether getpagesize is declared... yes
checking where to find the exponent in a 'double'... word 1 bit 20
checking where to find the exponent in a 'float'... (cached) word 0 bit 23
checking where to find the exponent in a 'long double'... (cached) word 2
bit 0
checking whether link handles trailing slash correctly... yes
checking whether locale.h conforms to POSIX:2001... yes
checking whether locale.h defines locale_t... yes
checking for setlocale... yes
checking for uselocale... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for putenv compatible with GNU and SVID... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking for wchar_t... (cached) yes
checking for wint_t... (cached) yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking for mmap... (cached) yes
checking for MAP_ANONYMOUS... yes
checking whether symlink handles trailing slash correctly... yes
checking for unsetenv... yes
checking for unsetenv() return type... int
checking whether unsetenv obeys POSIX... yes
checking for a traditional french locale... (cached) none
checking for a french Unicode locale... (cached) none
checking for a traditional japanese locale... (cached) none
checking for a transitional chinese locale... (cached) none
checking whether wctob works... guessing yes
checking whether wctob is declared... yes
checking whether an open file can be renamed... yes
checking if changeword is wanted... no
checking which shell to use for syscmd... /bin/sh
checking if malloc debugging is wanted... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating lib/Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating checks/Makefile
config.status: creating examples/Makefile
config.status: creating lib/config.h
config.status: lib/config.h is unchanged
config.status: executing depfiles commands
config.status: executing stamp-h commands
make  all-recursive
make[1]: Entering directory `/home/swasti/Programs/rivet/m4-1.4.16'
Making all in .
make[2]: Entering directory `/home/swasti/Programs/rivet/m4-1.4.16'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/swasti/Programs/rivet/m4-1.4.16'
Making all in examples
make[2]: Entering directory `/home/swasti/Programs/rivet/m4-1.4.16/examples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/swasti/Programs/rivet/m4-1.4.16/examples'
Making all in lib
make[2]: Entering directory `/home/swasti/Programs/rivet/m4-1.4.16/lib'
rm -f configmake.h-t && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  echo '#define PREFIX "/home/swasti/Programs/rivet/local"'; \
  echo '#define EXEC_PREFIX "/home/swasti/Programs/rivet/local"'; \
  echo '#define BINDIR "/home/swasti/Programs/rivet/local/bin"'; \
  echo '#define SBINDIR "/home/swasti/Programs/rivet/local/sbin"'; \
  echo '#define LIBEXECDIR "/home/swasti/Programs/rivet/local/libexec"'; \
  echo '#define DATAROOTDIR "/home/swasti/Programs/rivet/local/share"'; \
  echo '#define DATADIR "/home/swasti/Programs/rivet/local/share"'; \
  echo '#define SYSCONFDIR "/home/swasti/Programs/rivet/local/etc"'; \
  echo '#define SHAREDSTATEDIR "/home/swasti/Programs/rivet/local/com"'; \
  echo '#define LOCALSTATEDIR "/home/swasti/Programs/rivet/local/var"'; \
  echo '#define INCLUDEDIR "/home/swasti/Programs/rivet/local/include"'; \
  echo '#define OLDINCLUDEDIR "/usr/include"'; \
  echo '#define DOCDIR "/home/swasti/Programs/rivet/local/share/doc/m4"'; \
  echo '#define INFODIR "/home/swasti/Programs/rivet/local/share/info"'; \
  echo '#define HTMLDIR "/home/swasti/Programs/rivet/local/share/doc/m4"'; \
  echo '#define DVIDIR "/home/swasti/Programs/rivet/local/share/doc/m4"'; \
  echo '#define PDFDIR "/home/swasti/Programs/rivet/local/share/doc/m4"'; \
  echo '#define PSDIR "/home/swasti/Programs/rivet/local/share/doc/m4"'; \
  echo '#define LIBDIR "/home/swasti/Programs/rivet/local/lib"'; \
  echo '#define LISPDIR
"/home/swasti/Programs/rivet/local/share/emacs/site-lisp"'; \
  echo '#define LOCALEDIR
"/home/swasti/Programs/rivet/local/share/locale"'; \
  echo '#define MANDIR "/home/swasti/Programs/rivet/local/share/man"'; \
  echo '#define MANEXT ""'; \
  echo '#define PKGDATADIR "/home/swasti/Programs/rivet/local/share/m4"'; \
  echo '#define PKGINCLUDEDIR
"/home/swasti/Programs/rivet/local/include/m4"'; \
  echo '#define PKGLIBDIR "/home/swasti/Programs/rivet/local/lib/m4"'; \
  echo '#define PKGLIBEXECDIR
"/home/swasti/Programs/rivet/local/libexec/m4"'; \
} | sed '/""/d' > configmake.h-t && \
if test -f configmake.h && cmp configmake.h-t configmake.h > /dev/null;
then \
  rm -f configmake.h-t; \
else \
  rm -f configmake.h; mv configmake.h-t configmake.h; \
fi
make  all-am
make[3]: Entering directory `/home/swasti/Programs/rivet/m4-1.4.16/lib'
gcc -std=gnu99  -I.     -g -O2 -MT clean-temp.o -MD -MP -MF
.deps/clean-temp.Tpo -c -o clean-temp.o clean-temp.c
gcc -std=gnu99  -I.     -g -O2 -MT freadahead.o -MD -MP -MF
.deps/freadahead.Tpo -c -o freadahead.o freadahead.c
gcc -std=gnu99  -I.     -g -O2 -MT freading.o -MD -MP -MF
.deps/freading.Tpo -c -o freading.o freading.c
In file included from freading.h:18:0,
                 from freading.c:20:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
In file included from freadahead.h:18:0,
                 from freadahead.c:20:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
In file included from clean-temp.h:22:0,
                 from clean-temp.c:23:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
make[3]: *** [freading.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [freadahead.o] Error 1
make[3]: *** [clean-temp.o] Error 1
make[3]: Leaving directory `/home/swasti/Programs/rivet/m4-1.4.16/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/swasti/Programs/rivet/m4-1.4.16/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/swasti/Programs/rivet/m4-1.4.16'
make: *** [all] Error 2
}


Then, I referred to the PDF manual (http://arxiv.org/abs/1003.0694) which I
found simpler. After downloading the script, I get following error during
installation of needed dependencies:

{
$ ./rivet-bootstrap --install-agile --install-boost --install-cython
--prefix=/home/swasti/Programs/rivetlocal/
Getting http://www.hepforge.org/archive/rivet/Rivet-1.8.3.tar.gz
Not overwriting tarball at
/home/swasti/Programs/rivetlocal/build/downloads/Rivet-1.8.3.tar.gz
Getting http://www.hepforge.org/archive/agile/AGILe-1.4.0.tar.gz
Not overwriting tarball at
/home/swasti/Programs/rivetlocal/build/downloads/AGILe-1.4.0.tar.gz
Installing a local copy of Boost
Downloading
http://downloads.sourceforge.net/boost/boost_1_50_0.tar.gz?use_mirror=mesh

Downloading http://www.cython.org/release/Cython-0.17.2.tar.gz
Traceback (most recent call last):
  File "./rivet-bootstrap", line 493, in <module>
    os.environ['PYTHONPATH'] = CYTHONPATH + ":" + os.environ['PYTHONPATH']
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'PYTHONPATH'



An error has occurred while bootstrapping Rivet or one of its dependencies.
Sorry!
Please contact the Rivet developers at rivet at projects.hepforge.org, with a
description of your problem, a copy of this script and any error trace that
may have appeared and we'll try to get it fixed as soon as possible. Thanks
for your help!
}

Please help in this regard.

Thanking you and obliged,
Swasti Belwal.

- - - - - - - - - - - - - - - - - - - - - - - - - - -
Bethe Center for Theoretical Physics,
Physikalisches Institut der Universität Bonn,
Nussallee 12,
53115 Bonn,
Germany.


-- 
With warm regards,
Swasti Belwal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.hepforge.org/lists-archive/rivet/attachments/20140130/99d1cd62/attachment.html>


More information about the Rivet mailing list