emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#49314: closed (Stan package broken)


From: GNU bug Tracking System
Subject: bug#49314: closed (Stan package broken)
Date: Tue, 12 Jul 2022 13:15:02 +0000

Your message dated Tue, 12 Jul 2022 09:14:29 -0400
with message-id <8735f6a2x6.fsf@gmail.com>
and subject line Re: bug#49314: Stan package broken
has caused the debbugs.gnu.org bug report #49314,
regarding Stan package broken
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
49314: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49314
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Stan package broken Date: Thu, 01 Jul 2021 07:06:39 -0400 User-agent: mu4e 1.4.15; emacs 27.2
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




--- End Message ---
--- Begin Message --- Subject: Re: bug#49314: Stan package broken Date: Tue, 12 Jul 2022 09:14:29 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)
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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]