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

conda install error #18

Open
jianshu93 opened this issue Feb 3, 2023 · 6 comments
Open

conda install error #18

jianshu93 opened this issue Feb 3, 2023 · 6 comments

Comments

@jianshu93
Copy link

Hello Team,

It seems under conda environment, it cannot be installed:

installing source package ‘polyclip’ ...
** using staged installation
compiling under C++11
checking whether the C++ compiler works... no
configure: error: in /tmp/RtmpX79Rc1/R.INSTALL7dc05967a6f2/polyclip': configure: error: C++ compiler cannot create executables See config.log' for more details
ERROR: configuration failed for package ‘polyclip’

  • removing ‘/condo/ieg/jianshu/miniconda3_new2/lib/R/library/polyclip’
    Warning message:
    In i.p(...) :
    installation of package ‘/tmp/Rtmp8cATiW/file7d4f6b03cf34/polyclip_1.10-4.tar.gz’ had non-zero exit status

I do have everything including gcc, g++, C++, c++, CC, CC in my conda environment.

Thanks,

Jianshu

@baddstats
Copy link
Owner

The message says that the C++ compiler cannot create executable files. This probably means there is a problem with file permissions.

The message also says "See config.log" for more details. Perhaps this would provide further information, such as the pathname of the directory where C++ was trying to create files.

@rubak
Copy link
Collaborator

rubak commented Feb 3, 2023

@jianshu93 this could be related to the permission problem in #14. A workaround that seems to work for some people is in this comment.

@jianshu93
Copy link
Author

Hello,

Thanks for the response. However,it is a computer cluster,which I do not have sudo access but only a conda environment with R installed,I can have access to everything in this environment. I do not understand why C++ compliler is not available. I do have system level installation and conda level. I will add the config log file you mentioned soon.

Thanks,

Jianshu

@rubak
Copy link
Collaborator

rubak commented Feb 3, 2023

You don't necessarily need sudo access. The workaround I mentioned is:

wget https://cran.r-project.org/src/contrib/polyclip_1.10-4.tar.gz
tar -zxvf polyclip_1.10-4.tar.gz
Rscript -e "library('devtools'); devtools::install('polyclip')"

@jianshu93
Copy link
Author

Thanks!

Oh I missed it. I will try and get back.

Jianshu

@dbrookeUAB
Copy link

You don't necessarily need sudo access. The workaround I mentioned is:

wget https://cran.r-project.org/src/contrib/polyclip_1.10-4.tar.gz
tar -zxvf polyclip_1.10-4.tar.gz
Rscript -e "library('devtools'); devtools::install('polyclip')"

This may be the most helpful github comment of all time.

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

4 participants