pfmc-assessments / geostatistical_delta-GLMM

Tool for geostatistical analysis of survey data, for use when estimating an index of abundance
20 stars 17 forks source link

Return status 1 from the TMB example #52

Open mingsun opened 4 years ago

mingsun commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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++.