[ADMB Users] compiling ADMB | RHEL 5.5

Evan Cooch evan.cooch at gmail.com
Sun Mar 20 10:24:53 PDT 2011


Greetings --

I've been trying (without success) to compile ADMB (10.x) from source on 
a machine  running x86_64 RHEL (which, as many or you might know, uses 
gcc 4.1.2).  I'm hoping the solution isn't as simple as 'you have to 
have gcc 4.4.x to compile ADMB -- if so, then this lets out RHEL, 
CentOS, and Scientific Linux, all of whom stay far from the bleeding 
edge and use 4.1.x).

So, here is what I've tried -- followed the basic instructions in the 
README file -- downloaded latest admb-10.0.zip. Extracted, then (from 
bash shell) run ./configure BUILD_64BIT=yes


While the screen dump didn't indicate any problems, looking deeper into 
the configure.log showed multiple 'issues'. First, picks up gcc fine

configure:2117: checking for gcc
configure:2133: found /usr/bin/gcc
configure:2144: result: gcc
configure:2373: checking for C compiler version
configure:2382: gcc --version >&5
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)


First errors show up when looking at C++ preprocessor:

configure:3128: checking how to run the C++ preprocessor
configure:3155: g++ -E  conftest.cpp
configure:3155: $? = 0
configure:3169: g++ -E  conftest.cpp
conftest.cpp:9:28: error: ac_nonexistent.h: No such file or directory
configure:3169: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ADMB"
| #define PACKAGE_TARNAME "admb"
| #define PACKAGE_VERSION "10.0"
| #define PACKAGE_STRING "ADMB 10.0"
| #define PACKAGE_BUGREPORT "users at admb-project.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:3194: result: g++ -E
configure:3214: g++ -E  conftest.cpp
configure:3214: $? = 0
configure:3228: g++ -E  conftest.cpp
conftest.cpp:9:28: error: ac_nonexistent.h: No such file or directory
configure:3228: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ADMB"
| #define PACKAGE_TARNAME "admb"
| #define PACKAGE_VERSION "10.0"
| #define PACKAGE_STRING "ADMB 10.0"
| #define PACKAGE_BUGREPORT "users at admb-project.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */

and later on

configure:3621: checking lex library
configure:3635: g++ -o conftest -g -O2   conftest.cpp >&5
conftest.l: In function 'int yylex()':
conftest.l:6: error: 'input' was not declared in this scope
configure:3635: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ADMB"
| #define PACKAGE_TARNAME "admb"
| #define PACKAGE_VERSION "10.0"
| #define PACKAGE_STRING "ADMB 10.0"
| #define PACKAGE_BUGREPORT "users at admb-project.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_IOSTREAM 1
| /* end confdefs.h.  */
| /* A lexical scanner generated by flex*/
|
| /* Scanner skeleton version:
|  * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 
16:58:48 vern Exp $
|  */


Tried a 32-bit build -- same errors.

Now, I did proceed and try make, lots of warnings, but no outright 
fails. However, make install crashed and burned:

install -d -m 555 /usr/local/admb/bin /usr/local/admb/include 
/usr/local/admb/lib /usr/local/admb/docs /usr/local/admb/examples
install -m 555 
build/admb-10.0-linux-gcc4.1.2-64bit/admb-10.0-linux-gcc4.1.2-64bit/bin/* /usr/local/admb/bin
install -m 444 
build/admb-10.0-linux-gcc4.1.2-64bit/admb-10.0-linux-gcc4.1.2-64bit/include/* 
/usr/local/admb/include
install -m 444 
build/admb-10.0-linux-gcc4.1.2-64bit/admb-10.0-linux-gcc4.1.2-64bit/lib/* /usr/local/admb/lib
install -m 444 LICENSE /usr/local/admb
install -m 444 README.txt /usr/local/admb
install -m 444 Makefile /usr/local/admb
install -m 555 scripts/g++/admb-bin /usr/local/bin/admb
install: cannot stat `scripts/g++/admb-bin': No such file or directory
make: *** [install] Error 1


At this point, I'll take any and all suggestions, no matter how trivial 
(save for installing gcc 4.4.x).




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20110320/a9cd67df/attachment.html>


More information about the Users mailing list