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

cannot install the rMVP package #38

Closed
yuluc opened this issue Aug 8, 2019 · 9 comments
Closed

cannot install the rMVP package #38

yuluc opened this issue Aug 8, 2019 · 9 comments
Labels
Installation error Errors in installing software or dependent library

Comments

@yuluc
Copy link

yuluc commented Aug 8, 2019

I tried the two methods you write on GitHub but both of them failed.

devtools::install_github("xiaoleiLiubio/rMVP@0.99.14.1")
Downloading GitHub repo xiaoleiLiubio/rMVP@0.99.14.1
Error: Failed to install 'rMVP' from GitHub:
Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.

install.packages("rMVP_0.99.14.1.tar.gz", repos=NULL)
Warning: invalid package ‘rMVP_0.99.14.1.tar.gz’
Error: ERROR: no packages specified

@hyacz
Copy link
Collaborator

hyacz commented Aug 8, 2019

  1. Some C++ code is included in rMVP to improve computational efficiency, so you need to compile C++ tools. If you use Windows, RTools can be found here. Mac needs CRAN's clang and gfortran, which can be downloaded from here. Linux usually includes the necessary C++ compiler tools, and if you don't have one, please contact your server administrator.

  2. This is an offline installation. You must correctly indicate the path to the local package. The package can be downloaded from the Release page.

@yuluc
Copy link
Author

yuluc commented Aug 8, 2019

Thank you for your quick response!
I installed the clang and gfortran but I still cannot install the package successfully.

devtools::install_github("xiaoleiLiubio/rMVP@0.99.14.1")
Downloading GitHub repo xiaoleiLiubio/rMVP@0.99.14.1
Your system is ready to build packages!
✔ checking for file ‘/private/var/folders/z8/41981c953kb8f2fk__vh8w500000gn/T/RtmpR5a9pR/remotes1c47ccf14e4/XiaoleiLiuBio-rMVP-c28e333/DESCRIPTION’ ...
─ preparing ‘rMVP’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
Removed empty directory ‘rMVP/vignettes’
─ looking to see if a ‘data/datalist’ file should be added
─ building ‘rMVP_0.99.14.1.tar.gz’

  • installing source package ‘rMVP’ ...
    ** using staged installation
    ** libs
    clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppArmadillo/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppEigen/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/RcppProgress/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/BH/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/bigmemory/include" -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fopenmp -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
    clang: error: unsupported option '-fopenmp'
    make: *** [RcppExports.o] Error 1
    ERROR: compilation failed for package ‘rMVP’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/rMVP’
    Error: Failed to install 'rMVP' from GitHub:
    (converted from warning) installation of package ‘/var/folders/z8/41981c953kb8f2fk__vh8w500000gn/T//RtmpR5a9pR/file1c430b118f0/rMVP_0.99.14.1.tar.gz’ had non-zero exit status

@Gill85
Copy link

Gill85 commented Oct 20, 2019

Hi, many thanks for building a great Script. I have an issue as I cant install rMVP and found error below..

install.packages("https://mran.microsoft.com/download/")
Installing package into ‘C:/Users/THINK/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘https://mran.microsoft.com/download/’ is not available (for R version 3.5.1)

install.packages("https://cran.r-project.org/bin/windows/testing/rtools40.html")
Installing package into ‘C:/Users/THINK/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘https://cran.r-project.org/bin/windows/testing/rtools40.html’ is not available (for R version 3.5.1).

I have even tried with latest version 3.6.1 but still have the same issue.

Sincerely

Gill

@XiaoleiLiuBio
Copy link
Collaborator

XiaoleiLiuBio commented Oct 21, 2019 via email

@hyacz hyacz added the Installation error Errors in installing software or dependent library label Oct 29, 2019
@xuefenfei712
Copy link

##install error
I tried to install rMVP in Linux system, but I got the problem showed below, I tried many ways in including modify Makeconf file of R. Thankyou for your help!

  • installing to library ?home/bin/R/x86_64-pc-linux-gnu-library/4.0?
  • installing source package 鈘MVP?...
    ** package 鈘MVP?successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    Error: C++11 standard requested but CXX11 is not defined
  • removing ?home/bin/R/x86_64-pc-linux-gnu-library/4.0/rMVP?

@XiaoleiLiuBio
Copy link
Collaborator

Please update your R to 3.6.2+ and install rMVP by install.packages("rMVP")

@xuefenfei712
Copy link

Thankyou for your reply, my R version is R-4.0, the latest version.

@XiaoleiLiuBio
Copy link
Collaborator

Does it work? If not, please also try to update the GCC in your computer.

@hyacz
Copy link
Collaborator

hyacz commented Nov 6, 2020

This issue is closed because it is no longer active.

@hyacz hyacz closed this as completed Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation error Errors in installing software or dependent library
Projects
None yet
Development

No branches or pull requests

5 participants