Compilation of MCMCpack under freebsd 6.2 i386 fails because of the following cryptic error: * Installing *source* package 'MCMCpack' ... 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... grep: error while loading shared libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI invalid yes checking whether c++ accepts -g... grep: error while loading shared libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI invalid yes What should I do? Ciao Vittorio
vittorio wrote:> Compilation of MCMCpack under freebsd 6.2 i386 fails because of the following > cryptic error: > > * Installing *source* package 'MCMCpack' ... > 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... grep: error while > loading shared libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI > invalid > yes > checking whether c++ accepts -g... grep: error while loading shared > libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI invalid > yes > > What should I do? >First check whether this has anything to do with R at all. Does grep work from the command line? Looks like it is picking up a shared library in /usr/local/lib, which is not valid. Googling for the error message ("yes" is not part of it) suggests that this happens if you run something under Linux emulation but pick up a native BSD library, which in turn suggest that your path to binaries and/or libraries might be messed up. Does this ring any bells? -- O__ ---- Peter Dalgaard ?ster Farimagsgade 5, Entr.B c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Hello Vittorio, I am running FreeBSD 7.0-CURRENT (i386) from yesterday and I am able to compile MCMCpack_0.9-1.tar.gz without any problem on R-2.6.0 RC (2007-09-27 r43002). Native FreeBSD devel/pcre-7.3 and lang/gcc42 packages are installed. Please look if your library versions are ok. Regards, Rainer vittorio schrieb:> Compilation of MCMCpack under freebsd 6.2 i386 fails because of the following > cryptic error: > > * Installing *source* package 'MCMCpack' ... > 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... grep: error while > loading shared libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI > invalid > yes > checking whether c++ accepts -g... grep: error while loading shared > libraries: /usr/local/lib/libpcre.so.0: ELF file OS ABI invalid > yes > > What should I do? > > Ciao > Vittorio