Rserve fails to start

  • Done
  • quality assurance status badge
Details
4 participants
  • awb99 via web
  • Tobias Geerinckx-Rice
  • Pink Gorilla
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Pink Gorilla
Severity
normal
P
P
Pink Gorilla wrote on 18 Feb 2021 20:47
r-rserve 1.8-6
(address . bug-guix@gnu.org)
CAEfBB79Qc2hYDp02tAmvYrB8bTWABsOOk8Kvpyed5Zmx1UxrMQ@mail.gmail.com
r-rserve 1.8-6 should compile a binary "RServ" which would be made
available for execution similar to "R"
It think it fails because it wants to save the binary to /gnu/store
where the package "r-minimal" is installed.
It might be also that r-minimal has to be installed with "
"--enable-R-shlib"

In gn/packages/statistics.scm there is "r-with-tests". Unfortunately it is
not a public package, so I cannot install it easily

RServ is quite important: any interop with R (on multiple languages) goes
via this socket-server.
Attachment: file
T
T
Tobias Geerinckx-Rice wrote on 18 Feb 2021 21:38
(no subject)
(address . control@debbugs.gnu.org)
878s7lm7qx.fsf@nckx
retitle 46622 Rserve fails to start
T
T
Tobias Geerinckx-Rice wrote on 18 Feb 2021 21:54
Re: bug#46622: r-rserve 1.8-6
(name . Pink Gorilla)(address . pinkgorillawb@gmail.com)
875z2pm70y.fsf@nckx
Hi,

Pink Gorilla ???
Toggle quote (4 lines)
> r-rserve 1.8-6 should compile a binary "RServ" which would be
> made
> available for execution similar to "R"

This was fixed during our conversation on #guix yesterday. Now
one gets the error I mentioned:

λ R_HOME=$(guix build r-minimal) \
guix environment --ad-hoc r-rserve --
Rserve
cannot find system Renviron
Fatal error: unable to open the base package

I haven't looked into it.

Toggle quote (4 lines)
> It think it fails because it wants to save the binary to
> /gnu/store
> where the package "r-minimal" is installed.

Correct. I patched R_HOME in Makevars.in to point to r-rserve's
/bin directory instead.

Toggle quote (3 lines)
> It might be also that r-minimal has to be installed with "
> "--enable-R-shlib"

What would that do?

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYC7T7Q0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15ez8BAPmbN3ngGcbEjRD7mVfPy8rG3jjCukz2sY8LGR51
bmoHAP0cQwXPllWX+dBiD61YRnZEkjGJbXEHFSOx0RdRqcOjBA==
=tNla
-----END PGP SIGNATURE-----

R
R
Ricardo Wurmus wrote on 18 Feb 2021 22:09
Rserve fails to start
(address . 46622@debbugs.gnu.org)
874ki9nkuz.fsf@elephly.net
Toggle quote (5 lines)
>> It might be also that r-minimal has to be installed with
>> "--enable-R-shlib"

> What would that do?

This is already done. “r-minimal” inherits from “r-with-tests” and
merely *adds* one configure flag. The “--enable-R-shlib” flag is
untouched.

--
Ricardo
R
R
Ricardo Wurmus wrote on 18 Feb 2021 22:13
(address . 46622@debbugs.gnu.org)(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)
871rddnkob.fsf@elephly.net
I don’t think there’s a bug here. It’s just that your value for R_HOME
is incorrect.

Toggle snippet (33 lines)
$ R_HOME=$(guix build r-minimal)/lib/R guix environment --ad-hoc r-rserve -- Rserve
The following derivation will be built:
/gnu/store/99sy2r53p2s4njm055xjq4j9q2bqrxq4-profile.drv

building CA certificate bundle...
building fonts directory...
building directory of Info manuals...
building database for manual pages...
building profile with 1 package...

R version 4.0.4 (2021-02-15) -- "Lost Library Book"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-unknown-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Rserv started in daemon mode.
$


--
Ricardo
T
T
Tobias Geerinckx-Rice wrote on 18 Feb 2021 22:34
(name . Ricardo Wurmus)(address . rekado@elephly.net)(address . 46622@debbugs.gnu.org)
87wnv5kql4.fsf@nckx
Ricardo Wurmus ???
Toggle quote (4 lines)
> I don’t think there’s a bug here. It’s just that your value for
> R_HOME
> is incorrect.

I have no clue how R works.

Kind regards,

T G-R
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYC7dZw0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15hEEBAL1W2YvkaLX4Jts80WszD/eregbWjtPsBbaG8OFP
SNPhAQChTNH5yPlCRBzA+Z1NBHiE/Zgop/uhqS4XhLpVbGkHAw==
=+N52
-----END PGP SIGNATURE-----

T
T
Tobias Geerinckx-Rice wrote on 18 Feb 2021 22:43
(name . Ricardo Wurmus)(address . rekado@elephly.net)(address . 46622-done@debbugs.gnu.org)
87tuq9kq6k.fsf@nckx
Ricardo Wurmus ???
Toggle quote (4 lines)
> I don’t think there’s a bug here. It’s just that your value for
> R_HOME
> is incorrect.

Since the reported bug was already fixed and I can start Rserve
with Ricardo's help, I'm closing this bug.

Thanks!

T G-R
-----BEGIN PGP SIGNATURE-----

iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYC7fdA0cbWVAdG9iaWFz
LmdyAAoJEA2w/4hPVW15V1YBAOlHFfVqS752o0iN22Z4LePhFTcrV2Bk3/HMd7M3
2QS1AP4pN9AhCSHym6uAccX8TzArwx6W4QoppcsoL3rFjeCVCw==
=55Pq
-----END PGP SIGNATURE-----

Closed
A
A
awb99 via web wrote on 18 Feb 2021 22:46
Rserve fails to start
(address . 46622@debbugs.gnu.org)
7f9bd990d620.87196f1d2aa9788@guile.gnu.org
How can I get it working?
?