Jochen
November 16, 2020, 4:00pm
1
I followed the cmdstan guide and installed cmdstan on a Windows Server 2016 Datacenter with 64 Bit. After installing, I ran the example with “mingw32-make examples/bernoulli/bernoulli” and it tells me “mingw32-make: *** No rule to make target ‘built’. Stop.”.
I tried it with both rtools 4.0 and rtools 3.5, I get the same message. I also found some posts in the forum, but none of the proposed solution helped me to make it work.
Operating System: Windows Server 2016 Datacenter
CmdStan Version: Latest (Cloned from Github)
did it really say 'built"? not sure where that’s coming from?
> make build
> make examples/bernoulli/bernoulli
Jochen
November 16, 2020, 4:10pm
3
Ah sorry, this is because I ran both wingm32-make built
and mingw32-make examples/bernoulli/bernoulli
.
In both cases, I get the No rule to make target
error.
are you running these commands from the cmdstan directory?
it sounds like it’s not finding the Makefile
1 Like
Jochen
November 16, 2020, 4:17pm
5
are you running these commands from the cmdstan directory?
Yes, I am. I went there with cd cmdstan
Its
mingw32-make build
mingw32-make examples/bernoulli/bernoulli.exe
Note the .exe.
Jochen
November 16, 2020, 5:24pm
7
yields
INFORMATION: Es konnten keine Dateien mit dem angegebenen
Muster gefunden werden.
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 -Wno-int-in-bool-context -Wno-attributes -Wno-ignored-attributes -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.7 -I stan/lib/stan_math/lib/boost_1.72.0 -I stan/lib/stan_math/lib/sundials_5.2.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
what happens when you try:
g++ -v
??
1 Like
There is nothing wrong with this g++ call. Are there any subsequent g++ calls after the one you list?
Jochen
November 16, 2020, 6:01pm
12
rok_cesnovar:
mingw32-make build
This happens after this command:
curl -L https://github.com/stan-dev/stanc3/releases/download/nightly/windows-stanc -o bin/stanc.exe --retry 5 --retry-delay 10
process_begin: CreateProcess(NULL, curl -L https://github.com/stan-dev/stanc3/releases/download/nightly/windows-stanc -o bin/stanc.exe --retry 5 --retry-delay 10, …) failed.
make (e=2): Das System kann die angegebene Datei nicht finden.
make/stanc:69: recipe for target ‘bin/stanc.exe’ failed
mingw32-make: *** [bin/stanc.exe] Error 2
Oh, ok, that does say more. Windows 2016 does not seem to come with curl. The cloned Github version requires curl to download the stan compiler.
There are two solutions here:
If there is no specific reason you need the cloned version, I would go with the first option.
3 Likes
Jochen
November 16, 2020, 6:51pm
14
That’s great to know, thanks a lot. I will give it a try when I am back at the computer.
1 Like
Jochen
November 17, 2020, 3:05pm
15
Now that I am using it, it works perfectly, thanks!
2 Likes