<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Subject: </th>
<td>Re: [ADMB Users] macos weird install</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">Date: </th>
<td>Thu, 30 Jun 2011 13:29:27 -1000</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">From: </th>
<td>Johnoel Ancheta <a class="moz-txt-link-rfc2396E" href="mailto:johnoel@hawaii.edu"><johnoel@hawaii.edu></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">To: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:jbrandon@gmail.com">jbrandon@gmail.com</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
$ cp -R /usr/local/admb/examples/admb/simple ~/simple<br>
$ cd ~/simple<br>
$ admb simple<br>
$ ./simple<br>
<br>
On 6/30/11 1:02 PM, John Brandon wrote:
<blockquote cite="mid:4E0D00A0.2000203@gmail.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
Hi All,<br>
<br>
Following up on this thread: I've been having some trouble
compiling *.tpl files on MacOS 10.6.7, Xcode 3.2.6 (the machine
came with Xcode 4 installed, but I installed v.3.2 following ADMB
install documentation). <br>
<br>
I've installed ADMB 10.0 (64bit for MacOS) and I can type the
'admb' command at the prompt and see the usage options. <br>
<br>
However, when I try to compile 'simple.tpl' by typing 'admb
simple' (from the directory: .../examples/admb/simple) I get the
following error message:<br>
<br>
"<br>
*** Parsing: tpl2cpp simple <br>
Error trying to open file xxhtop.tmp <br>
Error trying to open file xxglobal.tmp <br>
Error trying to open file simple.htp <br>
Error trying to open file xxalloc.tmp <br>
/usr/local/admb/bin/admb: line 64: 8137 Segmentation fault
tpl2cpp simple <br>
<br>
Error: Failed to build executable. <br>
"<br>
<br>
Does this look familiar to anyone? I've looked through all
documentation and the threads I could find online, but haven't
been able to find an example like this and am now stumped. I'd be
happy to provide more information if needed. Any ideas
appreciated.<br>
<br>
Thanks,<br>
John Brandon<br>
<br>
PS: Here's what I get when I type the 'set' command (with
.../admb/bin added to PATH).<br>
<br>
<div class="moz-text-flowed" style="font-family: -moz-fixed;
font-size: 13px;" lang="x-western">ADMB_HOME=/usr/local/admb <br>
Apple_PubSub_Socket_Render=/tmp/launch-k7pxh0/Render <br>
BASH=/bin/bash <br>
BASH_ARGC=() <br>
BASH_ARGV=() <br>
BASH_LINENO=() <br>
BASH_SOURCE=() <br>
BASH_VERSINFO=([0]="3" [1]="2" [2]="48" [3]="1" [4]="release"
[5]="x86_64-apple-darwin10.0") <br>
BASH_VERSION='3.2.48(1)-release' <br>
COLUMNS=117 <br>
COMMAND_MODE=unix2003 <br>
DIRSTACK=() <br>
DISPLAY=/tmp/launch-BjDWdl/org.x:0 <br>
EUID=501 <br>
GROUPS=() <br>
HISTFILE=<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>Users/johnbrandon<span
class="moz-txt-tag">/</span></i>.bash_history <br>
HISTFILESIZE=500 <br>
HISTSIZE=500 <br>
HOME=/Users/johnbrandon <br>
HOSTNAME=John-Brandons-MacBook-Pro.local <br>
HOSTTYPE=x86_64 <br>
IFS=$' \t\n' <br>
LANG=en_US.UTF-8 <br>
LINES=61 <br>
LOGNAME=johnbrandon <br>
MACHTYPE=x86_64-apple-darwin10.0 <br>
MAILCHECK=60 <br>
OLDPWD=/Users/johnbrandon <br>
OPTERR=1 <br>
OPTIND=1 <br>
OSTYPE=darwin10.0 <br>
PATH=/usr/local/admb/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
<br>
PIPESTATUS=([0]="0") <br>
PPID=8314 <br>
PS1='\h:\W \u\$ ' <br>
PS2='> ' <br>
PS4='+ ' <br>
PWD=/usr/local/admb/examples/admb/simple <br>
SHELL=/bin/bash <br>
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
<br>
SHLVL=1 <br>
SSH_AUTH_SOCK=/tmp/launch-MMbOnL/Listeners <br>
TERM=xterm-color <br>
TERM_PROGRAM=Apple_Terminal <br>
TERM_PROGRAM_VERSION=273.1 <br>
TMPDIR=<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>var/folders/0l/0l8ZAOWKEVe5r8btcKMQg++++TI<span
class="moz-txt-tag">/</span></i>-Tmp-/ <br>
UID=501 <br>
USER=johnbrandon <br>
_=simple <br>
__CF_USER_TEXT_ENCODING=0x1F5:0:0 <br>
<br>
<br>
</div>
<br>
<br>
<br>
On 6/30/2011 10:46 AM, John Sibert wrote:
<blockquote cite="mid:4E0CB659.4030807@hawaii.edu" type="cite">Nice
discussion, Mollie. You might want to export ADMB_HOME though <br>
<br>
It is possible to have multiple copies of ADMB installed on a
single computer. It is not really necessary to install in
/urs/local. It can be installed anywhere, eg ~/myadmb. All you
need to do is to set ADMB_HOME to point to the directory where
it is installed. <br>
<br>
John <br>
<br>
On 06/30/2011 06:42 AM, Mollie Brooks wrote: <br>
<blockquote type="cite">This isn't a problem; it's more of a
surprise issue that I wanted to be sure was documented for the
next person... <br>
<br>
I unknowingly had an old version of admb in /usr/local/bin
that my computer was using. I could have found this out by
typing in the terminal <br>
<br>
which admb <br>
<br>
This says where the computer goes to get admb. <br>
<br>
I noticed it the hard way when an old bug wasn't going away
when I installed the new version. I deleted all existing
versions, installed from scratch and then my computer didn't
recognize the command admb because it was looking in the wrong
place. <br>
<br>
I had ADMB_HOME=/usr/local/admb and path defined in .bashrc,
but the default terminal shell window on macs doesn't read
.bashrc automatically. I had to add the info to a file
.bash_profile which does get automatically read. <br>
<br>
So if, after correctly installing, your computer doesn't
recognize the command admb, you may need to do the following
in the terminal <br>
<br>
cd <br>
nano .bash_profile <br>
<br>
ADMB_HOME=/usr/local/admb <br>
export PATH=$ADMB_HOME/bin:$PATH <br>
<br>
hit Control+X then yes to save <br>
<br>
<br>
<br>
<br>
_______________________________________________ <br>
Users mailing list <br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Users@admb-project.org">Users@admb-project.org</a>
<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a>
<br>
</blockquote>
<br>
</blockquote>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@admb-project.org">Users@admb-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>