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

install issue #11

Open
xueweic opened this issue May 28, 2020 · 1 comment
Open

install issue #11

xueweic opened this issue May 28, 2020 · 1 comment

Comments

@xueweic
Copy link

xueweic commented May 28, 2020

Hi,

I would like to install the package "seqminer" in HPC where I did not have the manager permisson.
The R version is 3.2.5 in HPC.
When I installed it, it showed the following error message.
Could you help me to solve this issue? Thank you.

install.packages("seqminer", lib = "..../library", repos = "http://cran.us.r-project.org")
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.0; need R 3.5.0 or newer
trying URL 'http://cran.us.r-project.org/src/contrib/seqminer_8.0.tar.gz'
Content type 'application/x-gzip' length 4055251 bytes (3.9 MB)
==================================================
downloaded 3.9 MB

  • installing source package 'seqminer' ...
    ** package 'seqminer' successfully unpacked and MD5 sums checked
    configure: CC = icc -std=gnu99
    configure: CFLAGS = -g -O2 -std=c99
    configure: CXX = ERROR: no information for variable 'CXX11' ERROR: no information for variable 'CXX11STD'
    configure: CXXFLAGS = ERROR: no information for variable 'CXX11FLAGS'
    checking whether the C++ compiler works... no
    configure: error: in /tmp/2967577.1.long.q/RtmpXlvYqd/R.INSTALL1ee473a5617c6/seqminer': configure: error: C++ compiler cannot create executables See config.log' for more details
    ERROR: configuration failed for package 'seqminer'
  • removing '.../library/seqminer'

The downloaded source packages are in
'/tmp/2967577.1.long.q/RtmpJkxLe0/downloaded_packages'
Warning message:
In install.packages("seqminer", lib = ".../library", :
installation of package 'seqminer' had non-zero exit status

@ahstram
Copy link

ahstram commented Jan 15, 2021

I'm experiencing similar issues with R-3.3.0...

if you type

/path/to/R CMD config

it appears that the relevant variables used to be known as:

CXX1X compiler command for C++11 code
CXX1XSTD flag used with CXX1X to enable C++11 support
CXX1XFLAGS further compiler flags for CXX1X
CXX1XPICFLAGS special flags for compiling C++11 code to be included in a shared library

So, it appears you should either update your version of R to one which uses the CXX11 variables, or modify the configure script in this package's source code to point at CXX1X instead of CXX11, etc.

Here's an example patch:

index 8097f58..a22a183 100755
--- a/configure
+++ b/configure
@@ -2045,9 +2045,9 @@ fi

 CC=`"${R_HOME}/bin/R" CMD config CC`
 CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
-CXX11=`"${R_HOME}/bin/R" CMD config CXX11`
-CXX11STD=`"${R_HOME}/bin/R" CMD config CXX11STD`
-CXX11FLAGS=`"${R_HOME}/bin/R" CMD config CXX11FLAGS`
+CXX11=`"${R_HOME}/bin/R" CMD config CXX1X`
+CXX11STD=`"${R_HOME}/bin/R" CMD config CXX1XSTD`
+CXX11FLAGS=`"${R_HOME}/bin/R" CMD config CXX1XFLAGS`
 CXX="${CXX11} ${CXX11STD}"

 { $as_echo "$as_me:${as_lineno-$LINENO}: CC = $CC" >&5

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

2 participants