[ADMB Users] installing ADMB linux

Arni Magnusson arnima at hafro.is
Sat Oct 2 05:19:10 PDT 2010


Hi Ian,

These may be symptoms of silly shell, as Ubuntu uses Dash as the default 
shell. Dash is a poor imitation of Bash, and it's nothing but trouble.

The shell command

   echo $0

should tell you what kind of shell you're running. In a Bash shell, the 
command

   echo $BASH_VERSION

should display the version number.

My recommendation is to (1) try to set Bash as the default shell, and (2) 
try putting #!/bin/bash at the top of all scripts, as well as the file 
where you define ADMB_HOME=~/admb/gcc440.

I do this inside .bashrc,

   export ADMB_HOME=~/admb

and Bash automatically expands the tilde, so echo $ADMB_HOME displays the 
full path. [No need for a gcc440 subdirectory, as I have only one compiler 
in Linux.] I make ~/.kde/Autostart/startup.sh run .bashrc, so ADMB_HOME is 
defined at startup, even before any shell is opened.

Arni



On Fri, 1 Oct 2010, Ian Taylor wrote:

> Arni (and Johnoel),
>
> I got a new laptop a few days ago, installed Ubuntu 10.04 and went about 
> installing ADMB (and assembling some elements of your IDE), without 
> reading any instructions, thinking I knew what I was doing. It did not 
> work so well.
>
> Eventually, I got things going properly, first by reading the 
> instructions, and then by making the seemingly inconsequential change of 
> switching ADMB_HOME from
>
>    ~/admb/gcc440
> to
>    /home/ian/admb/gcc440
>
> My problems may have been idiosyncratic to my particular setup, but I'm 
> writing in case something like this happens again so you can be aware of 
> the strange behavior I was seeing.
>
> There were two strange things, first, when I tried to compile within 
> Emacs, admodel.h wasn't showing up, but in the terminal it worked fine 
> (see attached screenshot).
>
> Second, some operations related to ADMB_HOME weren't working (see 
> example pasted below). This led to to try spelling out the full path for 
> ADMB_HOME and now I can compile fine in Emacs and the terminal and do ls 
> -lh $ADMB_HOME/bin without problems.
>
> I'll chalk this up to gremlins in my machine unless you have a better 
> explanation.
>
> -Ian
>
> ian at ian-laptop:~/admb$ ls -lh $ADMB_HOME/bin
> ls: cannot access ~/admb/gcc440/bin: No such file or directory
> ian at ian-laptop:~/admb$ ls -lh ~/admb/gcc440/bin
> total 2.6M
> -rwxrwxrwx 1 ian ian 3.1K 2009-12-28 16:30 adcomp
> -rwxrwxrwx 1 ian ian 3.3K 2009-12-28 16:30 adlink
> -rwxrwxrwx 1 ian ian 3.1K 2009-12-28 16:30 admb
> -rwxrwxrwx 1 ian ian  301 2009-12-28 16:30 check-expected-results
> -rwxrwxrwx 1 ian ian  470 2009-12-28 16:30 linkadm
> -rwxrwxrwx 1 ian ian   93 2009-12-28 16:30 linkadms
> -rwxrwxrwx 1 ian ian   33 2009-12-28 16:30 makeadm
> -rwxrwxrwx 1 ian ian   33 2009-12-28 16:30 makeadms
> -rwxrwxrwx 1 ian ian  416 2009-12-28 16:30 mygcco
> -rwxrwxrwx 1 ian ian  222 2009-12-28 16:30 mygccopt
> -rwxrwxrwx 1 ian ian  307 2009-12-28 16:30 mygcco-re
> -rwxrwxrwx 1 ian ian  302 2009-12-28 16:30 mygccs
> -rwxrwxrwx 1 ian ian  49K 2009-12-28 16:30 sed1.exe
> -rwxrwxrwx 1 ian ian  245 2009-12-28 16:30 sedcmd
> -rwxrwxrwx 1 ian ian  319 2009-12-28 16:30 sedcmd2
> -rwxrwxrwx 1 ian ian  305 2009-12-28 16:30 sedcmd3
> -rwxrwxrwx 1 ian ian 2.1K 2009-12-28 16:30 seddf1b2
> -rwxrwxrwx 1 ian ian  661 2009-12-28 16:30 seddf1b3
> -rwxrwxrwx 1 ian ian  433 2009-12-28 16:30 seddf1b4
> -rwxrwxrwx 1 ian ian  49K 2009-12-28 16:30 sed.exe
> -rwxrwxrwx 1 ian ian 1.4K 2009-12-28 16:30 sedf1b2a
> -rwxrwxrwx 1 ian ian  171 2009-12-28 16:30 sedf1b2c
> -rwxrwxrwx 1 ian ian  257 2009-12-28 16:30 sedf1b2d
> -rwxrwxrwx 1 ian ian  222 2009-12-28 16:30 sedflex
> -rwxrwxrwx 1 ian ian 805K 2009-12-28 16:30 tpl2cpp
> -rwxrwxrwx 1 ian ian 1.6M 2009-12-28 16:30 tpl2rem
>



More information about the Users mailing list