g++ error ..... /lib/libcontrib.a: No such file or directory SOLVED

48 views
Skip to first unread message

Luis Ridao

unread,
Nov 28, 2016, 2:16:32 PM11/28/16
to Jim Ianelli, fromdust...@gmail.com, John Sibert, Johnoel Ancheta
Hi to all,

Thanks John and Johnoel for your answers.

I have my admb folder under ~/admb.
The permissions for the folder are OK (chmod 777 -R)
ADMB_HOME is set to: 

$ echo $ADMB_HOME
/home/luisr/admb

the result of 

$:~/admb/examples/admb/simple$ ~/admb/admb simple.tpl

*** Parse: simple.tpl
tpl2cpp simple || tpl2rem simple

Error: could not parse "simple.tpl".

/home/luisr/admb/admb: line 184: tpl2cpp: command not found
/home/luisr/admb/admb: line 184: tpl2rem: command not found

it's the same as $:~/admb/examples/admb/simple$ admb simple

And i don't seem to have the folder ~/admb/build/dist as Johnoel suggested:

The outcome of John are:

$:~/admb$ admb -h

Builds AD Model Builder executable or library.

Usage: admb [-c] [-d] [-g] [-r] [-f] model [src(s)]

Options:
 -c     Build only object file(s) (.obj).
 -d     Build a shared library (.so).
 -g     Build with debug symbols.
 -r     Build with Random effects library (ADMB-RE).
 -f     Build with Fast optimized mode library (no bounds checking).
        By default, admb script builds with bounds checking.
 model  TPL file (ie simple.tpl or the filename simple with no .tpl
        extension)
 src(s) C/C++ Source file(s) containing classes, methods and variables that
        are used in model.

$:~/admb$ ls -l $ADMB_HOME/lib

total 84136
-rwxrwxrwx 1 luisr luisr  9123024 Dec 11  2015 libadmb.a
-rwxrwxrwx 1 luisr luisr 10321726 Dec 11  2015 libadmb-contrib.a
-rwxrwxrwx 1 luisr luisr  8906220 Dec 11  2015 libadmb-contribo.a
-rwxrwxrwx 1 luisr luisr  8862162 Dec 11  2015 libadmb-contribo-shared.a
-rwxrwxrwx 1 luisr luisr  3857429 Dec 11  2015 libadmb-contribo.so
-rwxrwxrwx 1 luisr luisr  9915922 Dec 11  2015 libadmb-contrib-shared.a
-rwxrwxrwx 1 luisr luisr  4184559 Dec 11  2015 libadmb-contrib.so
-rwxrwxrwx 1 luisr luisr  7717616 Dec 11  2015 libadmbo.a
-rwxrwxrwx 1 luisr luisr  7637130 Dec 11  2015 libadmbo-shared.a
-rwxrwxrwx 1 luisr luisr  3295307 Dec 11  2015 libadmbo.so
-rwxrwxrwx 1 luisr luisr  8681048 Dec 11  2015 libadmb-shared.a
-rwxrwxrwx 1 luisr luisr  3630683 Dec 11  2015 libadmb.so

This is how my admb folder lokks like:

$:~/admb$ ls -l
total 76

drwxrwxrwx  2 luisr luisr 4096 Dec 11  2015 bin
drwxrwxrwx 18 luisr luisr 4096 Dec 11  2015 contrib
drwxrwxrwx  6 luisr luisr 4096 Dec 11  2015 examples
drwxrwxrwx  3 luisr luisr 4096 Dec 11  2015 include
drwxrwxrwx  2 luisr luisr 4096 Dec 11  2015 lib
drwxrwxrwx  6 luisr luisr 4096 Dec 11  2015 scripts
drwxrwxrwx  7 luisr luisr 4096 Dec 11  2015 src
drwxrwxrwx 38 luisr luisr 4096 Dec 11  2015 tests
drwxrwxrwx  2 luisr luisr 4096 Dec 11  2015 utilities
-rwxrwxrwx  1 luisr luisr 8495 Dec 11  2015 admb
-rwxrwxrwx  1 luisr luisr    5 Dec 11  2015 VERSION
-rwxrwxrwx  1 luisr luisr 6900 Dec 11  2015 CHANGES.txt
-rwxrwxrwx  1 luisr luisr 1691 Dec 11  2015 LICENSE.txt
-rwxrwxrwx  1 luisr luisr 7939 Dec 11  2015 Makefile
-rwxrwxrwx  1 luisr luisr 2866 Dec 11  2015 README.txt

best,
Luis


Johnoel Ancheta

unread,
Nov 28, 2016, 2:44:50 PM11/28/16
to Luis Ridao, Jim Ianelli, fromdust...@gmail.com, John Sibert
Hi Luis,

Sorry for the delay.

Lets start again, use the procedure from


Let me know which step it fails.

Johnoel

Luis Ridao

unread,
Nov 29, 2016, 2:23:11 PM11/29/16
to Jim Ianelli, fromdust...@gmail.com, John Sibert, Johnoel Ancheta
hi all,

Thanks to all for your helpful and prompt responses.
It seems that my admb installation is working again.
The problem was with $ADMB_HOME.
Although i have not seen it documented i set it to ~/admb/bin
and it just worked.
So thanks again to all and sorry for any inconvenience

best,
Luis




*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
*   Luis Ridao Cruz
*   Faroe Marine Research Institute
*   Nóatún 1, P.O. Box 3051
*   FO-110 Tórshavn
*   Faroe Islands
*   Tel    : (+298) 353900
*   Fax: : (+298) 353901
*   e-mail: lu...@hav.fo
*              lur...@gmail.com
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

paul.conn

unread,
Jun 11, 2020, 1:17:55 PM6/11/20
to ADMB Users
Just a quick note to say that this solution (setting ADMB_HOME to c:\admb\bin) worked for me to solve an error with my ADMB 12.1 installation on Windows (using either the self-extractor or the .zip procedures), in which running 'admb simple' couldn't find 'libadmb' .
Reply all
Reply to author
Forward
0 new messages