Skip to content

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

@monis4567

Description

@monis4567

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions