[ADMB Users] New Linux user

Johnoel Ancheta johnoel at hawaii.edu
Mon Feb 15 12:33:57 PST 2010


Hi Iago,

The installation procedure that Arni has written below
is the typical way to install ADMB in read only folder
like /usr/local.  I'm not too sure why tpl2cpp is trying
to write to ADMB_HOME.  Can you show the output
for the following commands?

$ echo $ADMB_HOME
$ which admb
$ ls -lh $ADMB_HOME/bin
$ admb your-tpl-file

This should help find the problem.

Thanks,
Johnoel
 
----- Original Message -----
From: Iago Mosqueira <iago.mosqueira at gmail.com>
Date: Monday, February 15, 2010 2:08 am
Subject: Re: [ADMB Users] New Linux user
To: Arni Magnusson <arnima at hafro.is>
Cc: users at admb-project.org

> On Thu, Feb 11, 2010 at 10:57 PM, Arni Magnusson 
> <arnima at hafro.is> wrote:
> > Welcome aboard, Iago! Coming from R and C, I'm sure you will 
> find ADMB
> > useful. For me, they form a triangle covering just about all my
> > number-crunching needs.
> >
> > To install ADMB inside /usr/local/admb, you shouldn't need to 
> modify the
> > 'admb' script, since tpl2cpp should create the tmp files in 
> the current
> > directory.
> >
> > Until now, I have installed ADMB inside ~/admb, but I just 
> tried installing
> > inside /usr/local/admb (on my home computer running Kubuntu 
> 8.04) and it
> > works fine. This is how I do it:
> >
> >  sudo mkdir /usr/local/admb
> >  cd /usr/local/admb
> >  sudo wget \
> >  http://admb-project.googlecode.com/files/admb-9.1-linux-
> gcc4.1-64bit.zip
> >  sudo unzip admb-9.1-linux-gcc4.1-64bit.zip
> >
> > Now all that remains is to set two environment variables:
> >
> >  export ADMB_HOME=/usr/local/admb/admb-9.1-linux-gcc4.1-64bit
> >  export PATH=$ADMB_HOME/bin:$PATH
> >
> > Now test it:
> >
> >  cp -r $ADMB_HOME/examples/admb/simple ~
> >  chmod 755 ~/simple
> >  cd ~/simple
> >  admb simple
> >  ./simple
> >  cat simple.par
> >
> > Hope this helps,
> >
> > Arni
> 
> Hello,
> 
> Thanks for your help. I'll try your suggestion, but my 
> experience was
> that having ADMB_HOME pointing towards a folder where normal 
> users had
> no write persmissions, such as /usr/local/*, forced me to use 
> sudo as
> tpl2cpp was trying to write tmp files over there. Having to chmod
> folders inside /usr/local is not ideal, and maybe imposible in
> multi-user systems where admins do not allow it.
> 
> Cheers,
> 
> 
> Iago
> 
> >
> >
> > On Mon, 8 Feb 2010, Iago Mosqueira wrote:
> >
> >> Hello,
> >>
> >> I am a new user of ADMB, coming mostly from R and C. I use 
> Linux and tried
> >> to find a good way of installing it in my machine, either 
> from the
> >> executables or the compiled source code.
> >>
> >> I wanted to have the contents lib, include and bin folders 
> into my
> >> /usr/local/, a typical way in Linux to get this installed for 
> all users. The
> >> only problem I found was that tpl2cpp tries to create the tmp 
> files and the
> >> cpp file in the location marked by ADMB_HOME. But in my case 
> that is
> >> somewhere where only su can write.
> >>
> >> The solution I found, to get admb to run in whatever folder I 
> happen to
> >> have the tpl file, is to add
> >>
> >> export ADMB_HOME=$PWD
> >>
> >> to the admb script, in my case in line 31. This seems to do 
> the trick.
> >> Would be useful to streamline the instalation procedure for 
> Linux, though,
> >> with an install option to the makefile maybe?
> >>
> >> Cheers,
> >>
> >> Iago
> >>
> >
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20100215/33c699b0/attachment.html>


More information about the Users mailing list