[ADMB Users] compiling ADMB | RHEL 5.5
John Sibert
sibert at hawaii.edu
Thu Mar 24 11:40:45 PDT 2011
Congrats.
On 03/24/2011 02:57 AM, Evan Cooch wrote:
> Done -- and success! (At least, configure/make/make install worked
> without failures).
>
> Many thanks to all for their help/guidance (patience!).
>
> On 3/23/2011 8:54 PM, Johnoel Ancheta wrote:
>> Replace the file scripts/configure/GNUmakefile.in with the attached file,
>> then configure,make,make install.
>>
>>
>> On 3/21/11 11:16 AM, Johnoel Ancheta wrote:
>>> Yes, it was fixed, but not yet released. After running configure,
>>> edit the generated GNUmakefile. Locate the line
>>>
>>> install -m 555 scripts/g++/admb-bin /usr/local/bin/admb
>>>
>>> and change to
>>>
>>> install -m 555 scripts/*admb*/admb-bin /usr/local/bin/admb
>>>
>>> then
>>>
>>> $ make install.
>>>
>>> An easier approach would be to just copy the distribution folder
>>> build/admb-*/admb-* to your home folder, then set ADMB_HOME
>>> to that.
>>>
>>> On 3/21/11 11:07 AM, aaron wrote:
>>>> Hum this is really interesting.
>>>> What were the warnings? It looks like the 32bit compile worked ok...
>>>> except that make looked for admb-bin in the wrong directory. This
>>>> could have been fixed recently.
>>>> The configure log would be good to see.
>>>>
>>>> Aaron
>>>>
>>>>
>>>>
>>>>
>>>> On 03/21/2011 01:18 PM, Evan Cooch wrote:
>>>>> As an attachment -- to you off-list, or to the list at large?
>>>>>
>>>>> On 3/21/2011 3:37 PM, Johnoel Ancheta wrote:
>>>>>> Can you send the config.log?
>>>>>>
>>>>>> On 3/20/11 7:24 AM, Evan Cooch wrote:
>>>>>>> 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).
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Users mailing list
>>>>>>> Users at admb-project.org
>>>>>>> http://lists.admb-project.org/mailman/listinfo/users
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at admb-project.org
>>>>>> http://lists.admb-project.org/mailman/listinfo/users
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at admb-project.org
>>>>> http://lists.admb-project.org/mailman/listinfo/users
>>>>
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at admb-project.org
>>>> http://lists.admb-project.org/mailman/listinfo/users
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at admb-project.org
>>> http://lists.admb-project.org/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
--
John Sibert
Emeritus Researcher, SOEST
University of Hawaii at Manoa
Visit the ADMB project http://admb-project.org/
More information about the Users
mailing list