[ADMB Users] R2admb compile problem
bbolker at gmail.com
Mon Oct 21 06:56:27 PDT 2013
On 13-10-21 09:53 AM, Arni Magnusson wrote:
> I've seen similar linking errors when there's more than one compiler in
> the PATH, causing a version conflict. In this case, the solution is to
> remove all but one compiler from the PATH.
So in this respect, to see what's going on in the within-R2admb/R
context, you should run
and compare it with whatever the equivalent command for examining the
PATH environment variable is in Windows (I don't know, my Windows skills
are really rusty)
>> On 13-10-21 05:48 AM, Ben Stevenson wrote:
>>> Hi Allan,
>>> Given that ADMB seems to be working fine on its own, you're probably
>>> better off asking this question to an R2admb package maintainer as
>>> only a few people here use R2admb.
>>> R2admb uses the system() R function to in order to compile the .tpl
>>> file. My guess is that it is not finding the admb command, and this
>>> will be something to do with environment variables. What happens when
>>> you run system("admb") in R? Do you get an error saying about the
>>> admb command not being found? This would confirm my suspicion.
>>> If this is the case, find where the admb binary is on your system.
>>> From the output of setup_admb, my guess is that it's in
>>> c:\\ADMB\\admb101-gcc452-win64\\bin. If you call Sys.getenv("PATH"),
>>> does this directory appear?
>> On Mon, 21 Oct 2013, Ben Bolker wrote:
>> I am the R2admb package maintainer -- I saw this message go by on the
>> R mailing list as well.
>> The only clue I have here is that something is going wrong with the
>> linking -- that's what's indicated by the last line you included in
>> your R-help message,
>> 'collect2: ld returned 1 exit status'
>> Can you provide more of the 'verbose' output? I wonder if there is an
>> environment variable related to linking that's set in your external
>> environment but not within R. (Do you have spaces in any of your path
>> names ... ?)
>> You can respond to the list or e-mail me off-list (my e-mail is
>> available via maintainer("R2admb") ...
> Users mailing list
> Users at admb-project.org
More information about the Users