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