Skip to content

could not run examples #59

@linfanluntan

Description

@linfanluntan

I tried to run examples but got errors as:

rats
We have to compile the model first...
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: File not found - cvodes.hpp
compile: File not found - idas.hpp
compile: File not found - kinsol.hpp
compile: File not found - *_inst.cpp
compile: File not found - *_def.cpp
compile: INFO: Could not find files for the given pattern(s).
compile: File not found - *.hpp
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: g++ -std=c++1y -m64 -D_REENTRANT -Wall -Wno-unused-function
-Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-sign-compare -Wno-unused-local-typedefs -I
stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I
lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I
stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.72.0 -I
stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES
-DBOOST_DISABLE_ASSERTS -c -MT src/cmdstan/stanc.o -M -E -MG -MP -MF
src/cmdstan/stanc.d src/cmdstan/stanc.cpp
compile: g++ -std=c++1y -m64 -D_REENTRANT -Wall -Wno-unused-function
-Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-sign-compare -Wno-unused-local-typedefs -I
stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I
lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I
stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.72.0 -I
stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES
-DBOOST_DISABLE_ASSERTS -c -MT src/cmdstan/main.o -M -E -MG -MP -MF
src/cmdstan/main.d src/cmdstan/main.cpp
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: g++ -std=c++1y -m64 -D_REENTRANT -Wall -Wno-unused-function
-Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-sign-compare -Wno-unused-local-typedefs -I
stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I
lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I
stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.72.0 -I
stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES
-DBOOST_DISABLE_ASSERTS -c -MT D:/MatlabStan/Examples/rats.o -MT
D:/MatlabStan/Examples/rats.exe -include D:/MatlabStan/Examples/rats.hpp
-include src/cmdstan/main.cpp -M -E -MG -MP -MF D:/MatlabStan/Examples/rats.d
D:/MatlabStan/Examples/rats.hpp
compile: make: *** No rule to make target 'D:/MatlabStan/Examples/rats.d',
needed by 'D:/MatlabStan/Examples/rats.exe'. Stop.
Compile failed with exit value: 2
Error using StanModel/compile (line 1014)
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: File not found - cvodes.hpp
compile: File not found - idas.hpp
compile: File not found - kinsol.hpp
compile: File not found - *_inst.cpp
compile: File not found - *_def.cpp
compile: INFO: Could not find files for the given pattern(s).
compile: File not found - *.hpp
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: make: *** No rule to make target 'D:/MatlabStan/Examples/rats.d',
needed by 'D:/MatlabStan/Examples/rats.exe'. Stop.

Error in StanModel/sampling (line 778)
self.compile('model');

Error in stan (line 146)
fit = model.sampling(p.Unmatched);

Error in rats (line 20)
fit = stan('file','rats.stan','data',rats_dat,'verbose',true);

variational
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: File not found - cvodes.hpp
compile: File not found - idas.hpp
compile: File not found - kinsol.hpp
compile: File not found - *_inst.cpp
compile: File not found - *_def.cpp
compile: INFO: Could not find files for the given pattern(s).
compile: File not found - *.hpp
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: g++ -std=c++1y -m64 -D_REENTRANT -Wall -Wno-unused-function
-Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-sign-compare -Wno-unused-local-typedefs -I
stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I
lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I
stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.72.0 -I
stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES
-DBOOST_DISABLE_ASSERTS -c -MT src/cmdstan/stanc.o -M -E -MG -MP -MF
src/cmdstan/stanc.d src/cmdstan/stanc.cpp
compile: g++ -std=c++1y -m64 -D_REENTRANT -Wall -Wno-unused-function
-Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-sign-compare -Wno-unused-local-typedefs -I
stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I
lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I
stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.72.0 -I
stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES
-DBOOST_DISABLE_ASSERTS -c -MT src/cmdstan/main.o -M -E -MG -MP -MF
src/cmdstan/main.d src/cmdstan/main.cpp
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: ''
compile: '--- Translating Stan model to C++ code ---'
compile: bin/stanc.exe --o=D:/MatlabStan/Examples/anon_model.hpp
D:/MatlabStan/Examples/anon_model.stan
compile: Warning: deprecated language construct used in
'D:/MatlabStan/Examples/anon_model.stan', line 14, column 14:
compile: -------------------------------------------------
compile: 12: real theta[J];
compile: 13: for (j in 1:J)
compile: 14: theta[j] <- mu + tau * eta[j];
compile: ^
compile: 15: }
compile: 16: model {
compile: -------------------------------------------------
compile: assignment operator <- is deprecated in the Stan language; use =
instead.
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: g++ -std=c++1y -m64 -D_REENTRANT -Wall -Wno-unused-function
-Wno-uninitialized -Wno-unused-but-set-variable -Wno-unused-variable
-Wno-sign-compare -Wno-unused-local-typedefs -I
stan/lib/stan_math/lib/tbb_2019_U8/include -O3 -I src -I stan/src -I
lib/rapidjson_1.1.0/ -I stan/lib/stan_math/ -I
stan/lib/stan_math/lib/eigen_3.3.3 -I stan/lib/stan_math/lib/boost_1.72.0 -I
stan/lib/stan_math/lib/sundials_4.1.0/include -D_USE_MATH_DEFINES
-DBOOST_DISABLE_ASSERTS -c -MT D:/MatlabStan/Examples/anon_model.o -MT
D:/MatlabStan/Examples/anon_model.exe -include
D:/MatlabStan/Examples/anon_model.hpp -include src/cmdstan/main.cpp -M -E -MG
-MP -MF D:/MatlabStan/Examples/anon_model.d
D:/MatlabStan/Examples/anon_model.hpp
Compile failed with exit value: 2
Error using StanModel/compile (line 1014)
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: 'cut' is not recognized as an internal or external command,
compile: operable program or batch file.
compile: File not found - cvodes.hpp
compile: File not found - idas.hpp
compile: File not found - kinsol.hpp
compile: File not found - *_inst.cpp
compile: File not found - *_def.cpp
compile: INFO: Could not find files for the given pattern(s).
compile: File not found - *.hpp
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in
compile: Warning: deprecated language construct used in
'D:/MatlabStan/Examples/anon_model.stan', line 14, column 14:
compile: -------------------------------------------------
compile: 12: real theta[J];
compile: 13: for (j in 1:J)
compile: 14: theta[j] <- mu + tau * eta[j];
compile: ^
compile: 15: }
compile: 16: model {
compile: -------------------------------------------------
compile: assignment operator <- is deprecated in the Stan language; use =
instead.
compile: cc1plus.exe: sorry, unimplemented: 64-bit mode not compiled in

Error in variational (line 28)
model.compile();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions