简体   繁体   中英

Can't install igraph package in R

I can't install igraph package for R, the error message is below

  • installing source package 'igraph' ...
    ** package 'igraph' successfully unpacked and MD5 sums checked
    checking for gcc... gcc -std=gnu99
    checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc -std=gnu99 accepts -g... yes
    checking for gcc -std=gnu99 option to accept ISO C89... none needed
    checking whether we are using the GNU Fortran compiler... yes
    checking whether gfortran accepts -g... yes
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    configure: error: no C++ compiler found or it cannot create executables
    ERROR: configuration failed for package 'igraph'

The g++ and gcc are installed.

If you are using Ubuntu linux (derivative) Install:

sudo apt-get install gfortan-7 libblas-dev liblapack-dev

I might suggest also checking:

gcc --version
g++ --version

To make sure you have these installed as well.

One rant: The error messages for installing igraph are horrid.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM