Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation: big trouble in many packages #85

Open
wangzitiner opened this issue Apr 14, 2023 · 0 comments
Open

Installation: big trouble in many packages #85

wangzitiner opened this issue Apr 14, 2023 · 0 comments

Comments

@wangzitiner
Copy link

Hello! I have struggled for installation for so long, here are details:

1\ Install URD in R4.2.2:
source("https://raw.githubusercontent.com/farrellja/URD/master/URD-Install.R")
Installing required packages from Bioconductor (BiocManager).
Bioconductor version 3.16 (BiocManager 1.30.20), R 4.2.1 (2022-06-23)
Installing package(s) 'destiny'
还安装相依关系‘ranger’, ‘VIM’

installing source package ‘ranger’ ...
** 成功将‘ranger’程序包解包并MD5和检查
** using staged installation
** libs
g++ -std=gnu++11 -I"/bioware/source/R-4.2.1/include" -DNDEBUG -DR_BUILD -I'/bioware/source/R-4.2.1/library/Rcpp/include' -I'/bioware/source/R-4.2.1/library/RcppEigen/include' -I/usr/local/include -fpic -g -O2 -c AAA_check_cpp11.cpp -o AAA_check_cpp11.o
AAA_check_cpp11.cpp:3:2: error: #error Error: ranger requires a C++14 compiler, e.g., gcc >= 5 or Clang >= 3.4. You probably have to update your C++ compiler.
#error Error: ranger requires a C++14 compiler, e.g., gcc >= 5 or Clang >= 3.4. You probably have to update your C++ compiler.
^~~~~
make: *** [/bioware/source/R-4.2.1/etc/Makeconf:177: AAA_check_cpp11.o] Error 1
ERROR: compilation failed for package ‘ranger’
removing ‘/bioware/source/R-4.2.1/library/ranger’
ERROR: dependency ‘ranger’ is not available for package ‘VIM’
removing ‘/bioware/source/R-4.2.1/library/VIM’
ERROR: dependency ‘VIM’ is not available for package ‘destiny’
removing ‘/bioware/source/R-4.2.1/library/destiny’

2\ My gcc version:
g++ --version
g++ (GCC) 8.5.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

3\ I tried to install "ranger"by two ways:
one is install.packages("ranger"), but failed with the same error: ranger requires a C++14 compiler, e.g., gcc >= 5 or Clang >= 3.4. You probably have to update your C++ compiler.

the other is anaconda, which seems successful:
conda install -c conda-forge r-ranger
Collecting package metadata (current_repodata.json): done
Solving environment: done
...
Downloading and Extracting Packages
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

I'm really confused, and hope for your help, thank u!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant