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

configure: error: C++ compiler cannot create executables #19

Open
monis4567 opened this issue Mar 28, 2023 · 1 comment
Open

configure: error: C++ compiler cannot create executables #19

monis4567 opened this issue Mar 28, 2023 · 1 comment

Comments

@monis4567
Copy link

In "R version 4.2.3 (2023-03-15)" on Ubuntu 22.04.2 LTS, with 'GNU Fortran (Ubuntu 11.3.0-1ubuntu122.04) 11.3.0' and g++ (Ubuntu 11.3.0-1ubuntu122.04) 11.3.0 and gcc (Ubuntu 11.3.0-1ubuntu122.04) 11.3.0 and c++ (Ubuntu 11.3.0-1ubuntu122.04) 11.3.0.
I am trying to install 'polyclip' using these commands in R

require(remotes)
install_github('baddstats/polyclip')

But I get this error message:

install_github('baddstats/polyclip')
Downloading GitHub repo baddstats/polyclip@HEAD
── R CMD build ───────────────────────────────────────────────────────────────────────────
✔ checking for file ‘/tmp/RtmpVrDvtR/remotes2736c10a23e2/baddstats-polyclip-5c5404a/DESCRIPTION’ ...
─ preparing ‘polyclip’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ running ‘cleanup’
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘polyclip_1.10-4.tar.gz’

Installing package into ‘/home/hal9000/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)

  • installing source package ‘polyclip’ ...
    ** using staged installation
    Rscript execution error: No such file or directory
    compiling under C++11
    checking whether the C++ compiler works... no
    configure: error: in /tmp/Rtmp9wfYJH/R.INSTALL27ff8776a7b3e/polyclip': configure: error: C++ compiler cannot create executables See config.log' for more details
    ERROR: configuration failed for package ‘polyclip’
  • removing ‘/home/hal9000/R/x86_64-pc-linux-gnu-library/4.2/polyclip’
  • restoring previous ‘/home/hal9000/R/x86_64-pc-linux-gnu-library/4.2/polyclip’
    Warning message:
    In i.p(...) :
    installation of package ‘/tmp/RtmpVrDvtR/file2736ccf8cfeb/polyclip_1.10-4.tar.gz’ had non-zero exit status
@rubak
Copy link
Collaborator

rubak commented Mar 30, 2023

I think this is basically the same issue as #14 and #18. It is very annoying, but an updated version of this comment seems to be a workaround on systems with this issue:

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')"

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