I restarted my computer, removed older cmdstanr installation and installed everything again, and now install_cmdstan
gives a few pages of warning messages (pasted a part below), but it does seems to sample.
Thanks a lot !
FWIW, here’s the screenshot of PATH (in case someone has the same problem).
and here’s a random selection of the warning message that I get before it starts working:
In file included from stan/lib/stan_math/lib/eigen_3.3.3/Eigen/Core:420,
from stan/lib/stan_math/lib/eigen_3.3.3/Eigen/Dense:1,
from stan/lib/stan_math/stan/math/prim/fun/Eigen.hpp:22,
from stan/lib/stan_math/stan/math/rev.hpp:4,
from stan/lib/stan_math/stan/math.hpp:19,
from stan/src/stan/model/model_header.hpp:4,
from examples/bernoulli/bernoulli.hpp:3:
stan/lib/stan_math/lib/eigen_3.3.3/Eigen/src/Core/AssignEvaluator.h:90:50: warning: enum constant in boolean context [-Wint-in-bool-context]
MaySliceVectorize = bool(MightVectorize) && bool(DstHasDirectAccess)
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from stan/lib/stan_math/lib/eigen_3.3.3/Eigen/Core:420,
from stan/lib/stan_math/lib/eigen_3.3.3/Eigen/Dense:1,
from stan/lib/stan_math/stan/math/prim/fun/Eigen.hpp:22,
from stan/lib/stan_math/stan/math/rev.hpp:4,
from stan/lib/stan_math/stan/math.hpp:19,
from stan/src/stan/model/model_header.hpp:4,
from examples/bernoulli/bernoulli.hpp:3:
stan/lib/stan_math/lib/eigen_3.3.3/Eigen/src/Core/AssignEvaluator.h: In instantiation of 'struct Eigen::internal::copy_using_evaluator_traits<Eigen::internal::evaluator<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> >, Eigen::internal::evaluator<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> >, Eigen::internal::assign_op<double, double> >':
stan/lib/stan_math/lib/eigen_3.3.3/Eigen/src/Core/AssignEvaluator.h:607:49: required from 'class Eigen::internal::generic_dense_assignment_kernel<Eigen::internal::evaluator<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> >, Eigen::internal::evaluator<Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false> >, Eigen::internal::assign_op<double, double>, 0>'
stan/lib/stan_math/lib/eigen_3.3.3/Eigen/src/Core/AssignEvaluator.h:739:10: required from 'void Eigen::internal::call_dense_assignment_loop(DstXprType&, const SrcXprType&, const Functor&) [with DstXprType = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false>; SrcXprType = Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, -1, false>; Functor = Eigen::internal::assign_op<double, double>]'