charlesm93 / StanCon2020

Code for the talk "Approximate Bayesian inference for latent Gaussian models in Stan"
13 stars 1 forks source link

Can not install cmdstan with prototype functions #1

Open emilijapur opened 2 years ago

emilijapur commented 2 years ago

Hello I ran bash file script/install.sh and got an error:

r: creating stan/lib/stan_math/lib/sundials_5.2.0/lib/libsundials_kinsol.a
cd ../stanc3 && echo "--- Rebuilding stanc ---\n" && dune build @install
--- Rebuilding stanc ---\n
/bin/bash: dune: command not found
make: *** [make/stanc:53: bin/stanc] Error 127

I installed dune with command

apt-get install dune

However later I got error:

cd ../stanc3 && echo "--- Rebuilding stanc ---\n" && dune build @install
--- Rebuilding stanc ---\n
Error: Program ocamlc not found in the tree or in PATH
 (context: default)
make: *** [make/stanc:53: bin/stanc] Error 1

then installed ocalm:

apt install ocaml

After this I get error:

--- Rebuilding stanc ---\n
test -f ../stanc3/_build/default/src/stanc/stanc.exe && rm -f bin/stanc && cp ../stanc3/_build/default/src/stanc/stanc.exe bin/stanc || exit 1
make: *** [make/stanc:54: bin/stanc] Error 1

I am currently using ubuntu 20.04.

charlesm93 commented 2 years ago

Hi, ocaml can be tricky, so I'm going to try and find a workaround. Moving the conversation to https://discourse.mc-stan.org/t/nested-laplace-approximation-roadmap/8594/29 so that I can get input from other Stan developers.

charlesm93 commented 2 years ago

Hi! A draft of the new notebook is now available on GitHub. I'm releasing it publically for a two weeks trial during which we'll collect feedback. You can follow the installation instructions on the ReadMe and report any issue you encounter.