<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE : [ADMB Users] emacs configuration to use with ADMB</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I created a .gnomerc file with ADMB_HOME and PATH stuff in it and now emacs seems to works prefectly. Thanks!<BR>
<BR>
(Although it do not like ~/... and prefer /home/myname/...)<BR>
<BR>
Mathieu Desgagnés<BR>
<BR>
<BR>
<BR>
-------- Message d'origine--------<BR>
De: Ian Taylor [<A HREF="mailto:ian.taylor@noaa.gov">mailto:ian.taylor@noaa.gov</A>]<BR>
Date: lun. 04/06/2012 17:07<BR>
À: Desgagnés, Mathieu<BR>
Cc: users@admb-project.org<BR>
Objet : Re: [ADMB Users] emacs configuration to use with ADMB<BR>
<BR>
Hi Mathieu,<BR>
I'm glad at least some of the installation process went smoothly.<BR>
<BR>
The PATH that Emacs is seeing seems to be different than what is being seen<BR>
by BASH.<BR>
In my case, I defined ADMB_HOME and appended the PATH in .gnomerc, which<BR>
seems to be run at login. If you put that stuff in .bashrc, I think it<BR>
doesn't get run by Emacs, only when opening a terminal. So, assuming you<BR>
define those things in .bashrc, try copying them into a new file<BR>
~/.gnomerc, or appending them to that file if it exists already. Then<BR>
logout and login and see Emacs find the tpl2cpp.<BR>
-Ian<BR>
<BR>
On Mon, Jun 4, 2012 at 1:52 PM, Desgagnés, Mathieu <<BR>
Mathieu.Desgagnes@dfo-mpo.gc.ca> wrote:<BR>
<BR>
> **<BR>
><BR>
><BR>
> Hi,<BR>
><BR>
> I had no problem installing ADMB, (following instruction at<BR>
> <A HREF="http://www.admb-project.org/documentation/installation/admb-installation-linux">http://www.admb-project.org/documentation/installation/admb-installation-linux</A>,<BR>
> and at <A HREF="http://www.admb-project.org/community/tutorials-and-e">http://www.admb-project.org/community/tutorials-and-e</A><<A HREF="http://www.admb-project.org/community/tutorials-and-examples/using-admb-on-linux">http://www.admb-project.org/community/tutorials-and-examples/using-admb-on-linux</A>><BR>
> *Mathieu*xamples/using-admb-on-linux<<A HREF="http://www.admb-project.org/community/tutorials-and-examples/using-admb-on-linux">http://www.admb-project.org/community/tutorials-and-examples/using-admb-on-linux</A>>)<BR>
> and it works perfectly with command line (BASH). Thanks!<BR>
><BR>
><BR>
> To use it with emacs, I installed Arni Magnusson 'admb.el' and modified<BR>
> .emacs file as mentioned.<BR>
><BR>
> But when I try to run the 'simple.tpl' example, I obtain:<BR>
><BR>
><BR>
> tpl2cpp simple<BR>
> /bin/bash: tpl2cpp : commande introuvable<BR>
><BR>
> Compilation exited abnormally with code 127 at ...<BR>
><BR>
> (where 'commande introuvable' translates to 'command not found')<BR>
><BR>
><BR>
> As I said, I can compute 'simple.tpl' exemple using the BASH. What I<BR>
> should do is probably simple, but out of my current knowledge.<BR>
><BR>
><BR>
> Thanks,<BR>
><BR>
> Mathieu Desgagnés<BR>
><BR>
> Ubuntu 12.04, emacs 23.3.1, admb 10.1, gcc 4.4<BR>
><BR>
> _______________________________________________<BR>
> Users mailing list<BR>
> Users@admb-project.org<BR>
> <A HREF="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</A><BR>
><BR>
><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>