all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Kyle Andrews <kyle.c.andrews@gmail.com>
Cc: 49314-done@debbugs.gnu.org
Subject: bug#49314: Stan package broken
Date: Tue, 12 Jul 2022 09:14:29 -0400	[thread overview]
Message-ID: <8735f6a2x6.fsf@gmail.com> (raw)
In-Reply-To: <878s2q1ef4.fsf@gmail.com> (Kyle Andrews's message of "Thu, 01 Jul 2021 07:06:39 -0400")

Hi,

Kyle Andrews <kyle.c.andrews@gmail.com> writes:

> Hello,
>
> I tried to run a "Hello World" stan model using the r-rstan package.
>
> #+BEGIN_SRC R
> stancode="data {
>   int<lower=0> N;
>   vector[N] x;
>   vector[N] y;
> }
> parameters {
>   real alpha;
>   real beta;
>   real<lower=0> sigma;
> }
> model {
>   y ~ normal(alpha + beta * x, sigma);
> }
> "
> stan_lm = stan(model_code = stancode)
> #+END_SRC
>
>
> Running that code I get the error:
>
> #+BEGIN_EXAMPLE
> Error in dyn.load(libLFile) : 
>   unable to load shared object '/tmp/Rtmp1AXXXr/file1ffd36a95fa3.so':
>   /gnu/store/741057r2x06zwg6zcmqmdyv51spm6n9i-gfortran-7.5.0-lib/lib/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /tmp/Rtmp1AXXXr/file1ffd36a95fa3.so)
> Error in sink(type = "output") : invalid connection
> #+END_EXAMPLE
>
> I setup my environment with:
>
> : guix environment --ad-hoc r-rstan r-rstanarm r

I've tried exercising some of the things shown at
https://github.com/stan-dev/rstan/wiki/RStan-Getting-Started in 'guix
shell r-rstan r-rstanarm r-minimal' and it seems to work.  I'm on Guix
commit 17892c5.

Closing.

Thanks for the report!

Maxim




      parent reply	other threads:[~2022-07-12 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-01 11:06 bug#49314: Stan package broken Kyle Andrews
2021-07-23  5:25 ` Sarah Morgensen
2022-07-12 13:14 ` Maxim Cournoyer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735f6a2x6.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=49314-done@debbugs.gnu.org \
    --cc=kyle.c.andrews@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.