DescTools R Library can't install with ansible methode

263 views
Skip to first unread message

Marco Vinicio Gómez Gutiérrez

unread,
Nov 28, 2023, 8:33:29 PM11/28/23
to dataverse...@googlegroups.com, Marco Vinicio Gómez Gutiérrez
Good Morning, we are trying to install Dataverse with ansible methode but it is not possible. The error display shows problems related to DescTools and compilation with c++ 17. We are trying manual installation of DescTools executing R and  install.packages("DescTools", repos="https://cloud.r-project.org/", lib="/usr/lib64/R/library" )

I get this message :
aux_fct.cpp:48:10: error: ‘lcm’ is not a member of ‘std’
   48 |     std::lcm(a,b);
      |          ^~~
aux_fct.cpp: In function ‘long long int compute_GCD(long long int, long long int)’:
aux_fct.cpp:54:10: error: ‘gcd’ is not a member of ‘std’
   54 |     std::gcd(a,b);
      |          ^~~
make: *** [/usr/lib/R/etc/Makeconf:178: aux_fct.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package ‘DescTools’
* removing ‘/root/R/x86_64-pc-linux-gnu-library/4.2/DescTools’

The downloaded source packages are in
        ‘/tmp/Rtmp0YyyI1/downloaded_packages’
Warning message:
In install.packages("DescTools") :
  installation of package ‘DescTools’ had non-zero exit status


We are installing Debian 12.2 SO . 

How can We install dataverse with ansible? Is it possible to correct the problem in ansible installation? o How can I install DescTools manually?


att
Marco Vinicio Gomez Gutierrez
SIBITEC, TEC Costa Rica

Donald Sizemore II

unread,
Nov 29, 2023, 3:33:51 AM11/29/23
to dataverse...@googlegroups.com
hello,

if you’re using dataverse-ansible, it simply calls “install.packages(‘DescTools’)” which is how you would install the package manually.

the ansible wrapper bits are on lines 56-58 here:

I don’t expect a package compilation error will be specific to the installation method so much as the underlying OS; I’ll try to test under Debian 12 today or tomorrow.

If the problem turns out to be package installation order or something else which may be documented, we would love a pull request!

Don

p.s. unless you really want R, it isn’t required for normal Dataverse operation. if you’re on a deadline you can always set rserve.enabled == false in your group_vars file, then come back and troubleshoot R later.

painstakingly pecked on my iphone.

On Nov 28, 2023, at 20:33, Marco Vinicio Gómez Gutiérrez <marcog...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dataverse-community/CAC91annBgd6aLDwS4%2B6BVTZ2c1eWrJqe--_MT4g-7wWALq_8zQ%40mail.gmail.com.

Patrick

unread,
Nov 29, 2023, 6:39:01 AM11/29/23
to Dataverse Users Community
Dear Marco and Don,

I faced the same problem on SLES 15 with the ansible role. What helped in the end was adding

CXXFLAGS = -std=c++17 to ~root/.R/Makevars

after that I could manually install DescTools (and probably the Ansible Role would've managed it, too)


I hope that helps,
Patrick
Reply all
Reply to author
Forward
0 new messages