DocJon / pbs-admb

Automatically exported from code.google.com/p/pbs-admb
0 stars 0 forks source link

Bash scipts for Linux analogous to the batch scripts for Windows in ADMtools #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I recently discovered that Ubuntu is configured to include $Home/bin on the 
path if such a directory exists. This appears to be the Linux standard for 
enabling a user to supply customised scripte and executable files.

I found it very awkward today getting ADMB working from my own build, which I 
finally added as a subdirectory of $Home. If I had bash files, comparable to 
the DOS batch files, I would have put them in $Home/bin and had everything 
working at the OS level quickly.

I wasted a lot of time on the relatively simple task of converting the current 
DOS scripts to bash scripts. The problem is that I'm still a complete novice 
with bash.

Alex, could you please write these conversions, and add them to inst/ADMtools? 
I think this is an important tool for testing ADMB independently from PBSadmb.

Original issue reported on code.google.com by schnu...@shaw.ca on 6 Mar 2011 at 6:47

GoogleCodeExporter commented 9 years ago
Would it not be easier to just add something like:

PATH=/home/$USER/admb/admb-10.0/build/admb-10.0-linux-gcc4.4.5-64bit/admb-10.0-l
inux-gcc4.4.5-64bit/bin/:$PATH
ADMB_HOME=/home/$USER/admb/admb-10.0/build/admb-10.0-linux-gcc4.4.5-64bit/admb-1
0.0-linux-gcc4.4.5-64bit

to your .profile file? Then admb will also be found when you login.

Original comment by alex_goo...@mofo.ca on 6 Mar 2011 at 8:35

GoogleCodeExporter commented 9 years ago
Otherwise, you can look into creating symbolic links with "ln -s"

Original comment by alex_goo...@mofo.ca on 15 Mar 2011 at 7:21