[ADMB Users] Compilation script fix.

aaron jaguar.smart at gmail.com
Sat Mar 5 12:11:38 PST 2011


Hello good people at ADMB,
As I have been toying around trying to get a Debian package together I 
have had to compile ADMB from source several times. I have also compiled 
ADMB from source on a older Apple computer, with some strange CPU.  In 
all cases it appears that Make looks for admb-bin in the wrong directory.
The file admb-bin isn't in /scripts/g++, it is in /scripts/admb.  I am 
not sure how the ADMB community wants this fixed.   Aside from this the 
build process is
very smooth from a users prospective!

As a partial fix, if after running configure I change line 34 of 
GNUmakefile, to look for the correct directory, it installs without 
problem.   GNUmakefile is written by the configure script. The configure 
script also seems automatically generated by Autoconf.

I think that this is an easy fix, and  will make installing ADMB from 
source less intimidating.
I really appreciate the work people put in on improving the build 
process, version 10.0 build process is vastly superior to 9.0!

Best regards,
Aaron Greenberg
>
> #make install fails
> debian:/home/daft/Desktop/admb-10.0# make install
> 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.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/bin/* 
> /usr/local/admb/bin
> install -m 444 
> build/admb-10.0-linux-gcc4.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/include/* 
> /usr/local/admb/include
> install -m 444 
> build/admb-10.0-linux-gcc4.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/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
>
> #See admb-bin is in scripts/admb/admb
> debian:/home/daft/Desktop/admb-10.0# cd scripts/admb/admb
> admb         admb.bat     admb-bin     admb-bin.in
>
>
> #need to copy admb-bin into correct directory
> debian:/home/daft/Desktop/admb-10.0# cp  scripts/admb/admb-bin 
> scripts/g++/
>
> #now it works.
>
> debian:/home/daft/Desktop/admb-10.0# make install
> 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.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/bin/* 
> /usr/local/admb/bin
> install -m 444 
> build/admb-10.0-linux-gcc4.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/include/* 
> /usr/local/admb/include
> install -m 444 
> build/admb-10.0-linux-gcc4.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/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
> cp -Rf 
> build/admb-10.0-linux-gcc4.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/docs/* 
> /usr/local/admb/docs
> cp -Rf 
> build/admb-10.0-linux-gcc4.3.2-32bit/admb-10.0-linux-gcc4.3.2-32bit/examples/* 
> /usr/local/admb/examples
>




More information about the Users mailing list