baddstats / polyclip

R package polyclip: a port of the Clipper library for polygon geometry
19 stars 6 forks source link

conda install error #18

Open jianshu93 opened 1 year ago

jianshu93 commented 1 year ago

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 Seeconfig.log' for more details ERROR: configuration failed for package ‘polyclip’

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

Thanks,

Jianshu

baddstats commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Thanks!

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

Jianshu

dbrookeUAB commented 1 year ago

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.