Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Return status 1 from the TMB example #52

Open
mingsun opened this issue Mar 29, 2020 · 2 comments
Open

Return status 1 from the TMB example #52

mingsun opened this issue Mar 29, 2020 · 2 comments

Comments

@mingsun
Copy link

mingsun commented Mar 29, 2020

Hi Jim

When I try the code with the TMB example (https://github.com/nwfsc-assess/geostatistical_delta-GLMM/wiki/Steps-to-install-TMB), I get error 1, not 127.

The error looks like:
C:/Rtools/mingw_64/bin/g++ -I"D:/Program Files/R/R-3.5.3/include" -DNDEBUG -ID:/Program Files/R/R-3.5.3/library/TMB/include -ID:/Program Files/R/R-3.5.3/library/RcppEigen/include -DTMB_SAFEBOUNDS -DLIB_UNLOAD=R_unload_linear_mixed_model -DTMB_LIB_INIT=R_init_linear_mixed_model -O2 -Wall -mtune=generic -c linear_mixed_model.cpp -o linear_mixed_model.o
g++.exe: error: Files/R/R-3.5.3/library/TMB/include: No such file or directory
g++.exe: error: Files/R/R-3.5.3/library/RcppEigen/include: No such file or directory
make: *** [D:/Program Files/R/R-3.5.3/etc/x64/Makeconf:215: linear_mixed_model.o] Error 1

Do you have any idea what could be the problem here?

@James-Thorson-NOAA
Copy link
Contributor

Its definitely a problem with your installation of TMB and not an issue with VAST/FishStatsUtils, and so I'm closing the thread here. However, feel free to keep responding on this closed thread.

My guess is that either Rtools ins't installed, or your PATH (if on Windows) wasn't properly edited during the Rtools install to point to the CPP compiler.

@mingsun
Copy link
Author

mingsun commented Mar 31, 2020

I figured it out. Looks like I have to install R somewhere with no space its path. It was the "Program Files" folder where I put R. This is a classic issue with C++.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants