Open mingsun opened 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.
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++.
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?