# Installation

**URL:** https://igraph.discourse.group/c/installation/10.md

[Latest](https://igraph.discourse.group/latest.md) · [Categories](https://igraph.discourse.group/categories.md) · [Tags](https://igraph.discourse.group/tags.md)

---

## [About the Installation category](https://igraph.discourse.group/t/about-the-installation-category/29)

<div class="topic-metadata">

**Author:** [@vtraag](https://igraph.discourse.group/u/vtraag)\
**Replies:** 0\
**Last updated:** [27 January 2020 12:50 UTC](https://igraph.discourse.group/t/about-the-installation-category/29 "2020-01-27T12:50:13Z")

</div>

Questions about installing or compiling igraph. Be sure to review to installation instructions before posting: C | R | Python | Mathematica Since igraph is available in several different languages, you are asked to tag…

---

## [R package igraph 2.2.1 failed installation, undefined symbol: glp\_at\_error](https://igraph.discourse.group/t/r-package-igraph-2-2-1-failed-installation-undefined-symbol-glp-at-error/2208)

<div class="topic-metadata">

**Author:** [@RAYMOND\_BENITEZ](https://igraph.discourse.group/u/RAYMOND_BENITEZ)\
**Replies:** 3\
**Last updated:** [1 December 2025 21:07 UTC](https://igraph.discourse.group/t/r-package-igraph-2-2-1-failed-installation-undefined-symbol-glp-at-error/2208 "2025-12-01T21:07:08Z")

</div>

When I try to install igraph 2.2.1 in R on a cluster (CentOS Linux), I receive the following error. Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, …): unable to load shared obj…

---

## [installation of package ‘igraph’ had non-zero exit status](https://igraph.discourse.group/t/installation-of-package-igraph-had-non-zero-exit-status/1923)

<div class="topic-metadata">

**Author:** [@JohannesWiesner](https://igraph.discourse.group/u/JohannesWiesner)\
**Replies:** 4\
**Last updated:** [16 January 2025 10:34 UTC](https://igraph.discourse.group/t/installation-of-package-igraph-had-non-zero-exit-status/1923 "2025-01-16T10:34:45Z")

</div>

I use R 4.3.3 in a micromamba environment. install.packages('igraph') currently gives me: /zi/home/johannes.wiesner/micromamba/envs/project\_mase/bin/../lib/gcc/x86\_64-conda-linux-gnu/14.2.0/../../../../x86\_64-conda-lin…

---

## [Installation issue on Mac](https://igraph.discourse.group/t/installation-issue-on-mac/1909)

<div class="topic-metadata">

**Author:** [@Salvo\_Lac](https://igraph.discourse.group/u/Salvo_Lac)\
**Replies:** 1\
**Last updated:** [12 December 2024 18:37 UTC](https://igraph.discourse.group/t/installation-issue-on-mac/1909 "2024-12-12T18:37:31Z")

</div>

Hello, I am trying to install igraph in R via terminal by typing “install.packages(“igraph”, type = “source”)”. I am using MacBook Air Ventura 13.0, and I just install R latest version (4.4.2\_2). But I get the error belo…

---

## [Error occurs when input "sc.tl.leiden(adata)" after !pip install leidenalg and !pip install igraph both return "Requirement already satisfied""](https://igraph.discourse.group/t/error-occurs-when-input-sc-tl-leiden-adata-after-pip-install-leidenalg-and-pip-install-igraph-both-return-requirement-already-satisfied/1905)

<div class="topic-metadata">

**Author:** [@Lirneot\_Couritz](https://igraph.discourse.group/u/Lirneot_Couritz)\
**Replies:** 1\
**Last updated:** [11 December 2024 19:17 UTC](https://igraph.discourse.group/t/error-occurs-when-input-sc-tl-leiden-adata-after-pip-install-leidenalg-and-pip-install-igraph-both-return-requirement-already-satisfied/1905 "2024-12-11T19:17:06Z")

</div>

Hi, I’m new to the single cell sequencing analysis using python via igraph. After I followed some tutorial online I encountered error after my input of “sc.tl.leiden(adata)” that presents as a really long text (I put it…

---

## [igraph installation from source in R - compilation failed](https://igraph.discourse.group/t/igraph-installation-from-source-in-r-compilation-failed/1483)

<div class="topic-metadata">

**Author:** [@csrvermaak](https://igraph.discourse.group/u/csrvermaak)\
**Replies:** 8\
**Last updated:** [29 August 2024 23:06 UTC](https://igraph.discourse.group/t/igraph-installation-from-source-in-r-compilation-failed/1483 "2024-08-29T23:06:35Z")

</div>

Installing igraph from source (1.3.0) gives me the following error: \> install.packages("igraph") Installing package into ‘C:/Users/b420054/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) There is a binary vers…

---

## [Installation failed due to "unable to access any URL"](https://igraph.discourse.group/t/installation-failed-due-to-unable-to-access-any-url/1797)

<div class="topic-metadata">

**Author:** [@rushi](https://igraph.discourse.group/u/rushi)\
**Replies:** 5\
**Last updated:** [30 March 2024 17:52 UTC](https://igraph.discourse.group/t/installation-failed-due-to-unable-to-access-any-url/1797 "2024-03-30T17:52:26Z")

</div>

Could anyone explain why this error is occuring and how to troubleshoot? I am controlling my school’s computer remotely and installed R 4.1.3 from the package in the school’s computer. This is my session info: sessio…

---

## [Installation fails due to undefined symbol: \_\_builtin\_add\_overflow](https://igraph.discourse.group/t/installation-fails-due-to-undefined-symbol-builtin-add-overflow/1784)

<div class="topic-metadata">

**Author:** [@ShixiangWang](https://igraph.discourse.group/u/ShixiangWang)\
**Replies:** 2\
**Last updated:** [20 March 2024 12:27 UTC](https://igraph.discourse.group/t/installation-fails-due-to-undefined-symbol-builtin-add-overflow/1784 "2024-03-20T12:27:11Z")

</div>

Hi, I cannot find a way to fix the install issue. \*\*\* copying figures \*\* building package indices \*\* installing vignettes \*\* testing if installed package can be loaded from temporary location Error: package or namespace…

---

## [Installation failed on R on HPC: Compilation terminated](https://igraph.discourse.group/t/installation-failed-on-r-on-hpc-compilation-terminated/1773)

<div class="topic-metadata">

**Author:** [@timz0605](https://igraph.discourse.group/u/timz0605)\
**Replies:** 0\
**Last updated:** [4 March 2024 06:05 UTC](https://igraph.discourse.group/t/installation-failed-on-r-on-hpc-compilation-terminated/1773 "2024-03-04T06:05:45Z")

</div>

Hello, I am trying to install the igraph package onto the HPC, but am encountering some issues. Interestingly, the installation was a success in R/4.0.4 but failed in R/4.2.1. Would greatly appreciate any help! Below is…

---

## [error: ‘constexpr bool std::isnan(double)’ conflicts with a previous declaration](https://igraph.discourse.group/t/error-constexpr-bool-std-isnan-double-conflicts-with-a-previous-declaration/1765)

<div class="topic-metadata">

**Author:** [@Ming\_Sun](https://igraph.discourse.group/u/Ming_Sun)\
**Replies:** 2\
**Last updated:** [29 February 2024 11:16 UTC](https://igraph.discourse.group/t/error-constexpr-bool-std-isnan-double-conflicts-with-a-previous-declaration/1765 "2024-02-29T11:16:48Z")

</div>

Hi, I’m trying to update my igraph but end up with this error. it is killing me. Thank you so much in advance for the help!!! install.packages(“igraph”) Installing package into ‘/data/msun/tools/R\_lib’ (as ‘lib’ i…

---

## [Fatal error: glpk.h: No such file or directory during the installation #1273](https://igraph.discourse.group/t/fatal-error-glpk-h-no-such-file-or-directory-during-the-installation-1273/1762)

<div class="topic-metadata">

**Author:** [@jessijessi92](https://igraph.discourse.group/u/jessijessi92)\
**Replies:** 3\
**Last updated:** [29 February 2024 10:10 UTC](https://igraph.discourse.group/t/fatal-error-glpk-h-no-such-file-or-directory-during-the-installation-1273/1762 "2024-02-29T10:10:14Z")

</div>

Hi, I’m trying to install igraph package in R 4.3.1 inside Centos/Red Hat 8 through install.packages(‘igraph’) but I have encountered this error: vendor/cigraph/src/internal/glpk\_support.h:39:10: fatal error: glpk.h: …

---

## [Cannot compile R igraph 1.4.1 despite all satisfied dependencie](https://igraph.discourse.group/t/cannot-compile-r-igraph-1-4-1-despite-all-satisfied-dependencie/1495)

<div class="topic-metadata">

**Author:** [@Fifis](https://igraph.discourse.group/u/Fifis)\
**Replies:** 10\
**Last updated:** [10 February 2024 00:13 UTC](https://igraph.discourse.group/t/cannot-compile-r-igraph-1-4-1-despite-all-satisfied-dependencie/1495 "2024-02-10T00:13:29Z")

</div>

Dear all, I followed the GitHub instrusctions and installed all the necessary dependencies on Linux Mint 21.1 (same as Ubuntu), i.e. build-essential, gfortran, g++, libxml2-dev, libglpk-dev. However, it fails with this …

---

## [R Igraph 2.0.1.1 installation fails on ubuntu 20.04.06 desktop](https://igraph.discourse.group/t/r-igraph-2-0-1-1-installation-fails-on-ubuntu-20-04-06-desktop/1740)

<div class="topic-metadata">

**Author:** [@lghunsicker](https://igraph.discourse.group/u/lghunsicker)\
**Replies:** 6\
**Last updated:** [8 February 2024 20:43 UTC](https://igraph.discourse.group/t/r-igraph-2-0-1-1-installation-fails-on-ubuntu-20-04-06-desktop/1740 "2024-02-08T20:43:38Z")

</div>

As above. I am running an ubuntu 20.04 LT desktop on a university research computer on which I do not have administrator rights. install.packages(‘igraph’) runs for quite a while, but then abends (on several attempts) …

---

## [Failures in installing igraph on Google Colab for R](https://igraph.discourse.group/t/failures-in-installing-igraph-on-google-colab-for-r/1745)

<div class="topic-metadata">

**Author:** [@Mingtao\_Lu](https://igraph.discourse.group/u/Mingtao_Lu)\
**Replies:** 2\
**Last updated:** [7 February 2024 09:21 UTC](https://igraph.discourse.group/t/failures-in-installing-igraph-on-google-colab-for-r/1745 "2024-02-07T09:21:37Z")

</div>

I tried several times in installing igraph on Google Colab for R in an ipynb notebook, but keep receiving warning: Installing package into ‘/usr/local/lib/R/site-library’ (as ‘lib’ is unspecified) Warning message in …

---

## [Cannot open include file: 'igraph\_version.h'](https://igraph.discourse.group/t/cannot-open-include-file-igraph-version-h/1717)

<div class="topic-metadata">

**Author:** [@David\_Cambre](https://igraph.discourse.group/u/David_Cambre)\
**Replies:** 3\
**Last updated:** [9 December 2023 12:07 UTC](https://igraph.discourse.group/t/cannot-open-include-file-igraph-version-h/1717 "2023-12-09T12:07:58Z")

</div>

Hello, I am struggling to implement iGraph in my Godot Module. (cpp project using SCons compiler) \`… fatal error C1083: Cannot open include file: ‘igraph\_version.h’: No such file or directory The include directory has …

---

## [Unable to install igraph on Mac for R](https://igraph.discourse.group/t/unable-to-install-igraph-on-mac-for-r/1626)

<div class="topic-metadata">

**Author:** [@springc](https://igraph.discourse.group/u/springc)\
**Replies:** 7\
**Last updated:** [8 August 2023 23:40 UTC](https://igraph.discourse.group/t/unable-to-install-igraph-on-mac-for-r/1626 "2023-08-08T23:40:31Z")

</div>

I’m getting the same error regardless of the version I attempt to install and whether I attempt to install via CRAN or github. I’d ideally like to install the most recent version via CRAN. I’m on an M1 mac with OS Monter…

---

## [quadmath\_snprintf could not be located - secure AWS environment with old CRAN snapshot](https://igraph.discourse.group/t/quadmath-snprintf-could-not-be-located-secure-aws-environment-with-old-cran-snapshot/1624)

<div class="topic-metadata">

**Author:** [@vacine](https://igraph.discourse.group/u/vacine)\
**Replies:** 2\
**Last updated:** [4 August 2023 10:22 UTC](https://igraph.discourse.group/t/quadmath-snprintf-could-not-be-located-secure-aws-environment-with-old-cran-snapshot/1624 "2023-08-04T10:22:13Z")

</div>

Dear igraph team, I hope that you are well. I was wondering if would you have any advice on the issue of not being able to properly install and load igraph package. I am using the R environment in a secure AWS environme…

---

## [pip install igraph fails](https://igraph.discourse.group/t/pip-install-igraph-fails/1604)

<div class="topic-metadata">

**Author:** [@Aaa](https://igraph.discourse.group/u/Aaa)\
**Replies:** 6\
**Last updated:** [12 July 2023 21:24 UTC](https://igraph.discourse.group/t/pip-install-igraph-fails/1604 "2023-07-12T21:24:42Z")

</div>

Hi all, I was trying to install igraph in python. I followed the tutorial Installing igraph. I use a macbook, anaconda, python 3. Things I’ve tried: $pip install python-igraph $conda install -c conda-forge python-igr…

---

## [Locating tar.gz files igraph 1.4.3](https://igraph.discourse.group/t/locating-tar-gz-files-igraph-1-4-3/1594)

<div class="topic-metadata">

**Author:** [@zoqaiyum](https://igraph.discourse.group/u/zoqaiyum)\
**Replies:** 1\
**Last updated:** [22 June 2023 08:05 UTC](https://igraph.discourse.group/t/locating-tar-gz-files-igraph-1-4-3/1594 "2023-06-22T08:05:25Z")

</div>

Hi, I am searching for the macOS binaries that supports r-release (x86\_64) for igraph version 1.4.3. Could someone please tell me where to find the tar.gz file pertaining to this? The file on github archives for old re…

---

## [Issue installing igraph in Ubuntu 20.04](https://igraph.discourse.group/t/issue-installing-igraph-in-ubuntu-20-04/1583)

<div class="topic-metadata">

**Author:** [@Abraham\_Jaimes](https://igraph.discourse.group/u/Abraham_Jaimes)\
**Replies:** 1\
**Last updated:** [13 June 2023 09:52 UTC](https://igraph.discourse.group/t/issue-installing-igraph-in-ubuntu-20-04/1583 "2023-06-13T09:52:48Z")

</div>

Hello, everyone I have been trying to install the igraph library in Ubuntu 20.04 but I get this error: gfortran -fno-optimize-sibling-calls -fvisibility=hidden -fpic -g -O2 -c vendor/arpack/dgetv0.f -o vendor/arpack/…

---

## [include could not find load file](https://igraph.discourse.group/t/include-could-not-find-load-file/1554)

<div class="topic-metadata">

**Author:** [@valery\_tyan](https://igraph.discourse.group/u/valery_tyan)\
**Replies:** 3\
**Last updated:** [24 May 2023 20:56 UTC](https://igraph.discourse.group/t/include-could-not-find-load-file/1554 "2023-05-24T20:56:33Z")

</div>

I installed igraph on my Mac and tried build test program how it wrote in documentation with CMake. But when I write: cmake … -DCMAKE\_PREFIX\_PATH=/path, where the path is the same which installed with -DCMAKE\_INSTALL\_PRE…

---

## [c++ version requirement](https://igraph.discourse.group/t/c-version-requirement/1531)

<div class="topic-metadata">

**Author:** [@bge](https://igraph.discourse.group/u/bge)\
**Replies:** 6\
**Last updated:** [12 April 2023 14:53 UTC](https://igraph.discourse.group/t/c-version-requirement/1531 "2023-04-12T14:53:15Z")

</div>

Hi, It appears to me that the rigraph (and igraph) code requires a C++ version 11 compiler. I wonder if exactly C++ 11 is required, or if compilers for more recent C++ versions will compile the code correctly? I apprec…

---

## [igraph installation from binaries in R - unable to load shared object](https://igraph.discourse.group/t/igraph-installation-from-binaries-in-r-unable-to-load-shared-object/1481)

<div class="topic-metadata">

**Author:** [@csrvermaak](https://igraph.discourse.group/u/csrvermaak)\
**Replies:** 1\
**Last updated:** [6 March 2023 10:16 UTC](https://igraph.discourse.group/t/igraph-installation-from-binaries-in-r-unable-to-load-shared-object/1481 "2023-03-06T10:16:59Z")

</div>

Installing igraph from binaries (1.3.0) gives me the following error: \> install.packages("igraph") Installing package into ‘C:/Users/b420054/Documents/R/win-library/4.0’ (as ‘lib’ is unspecified) There is a binary ve…

---

## [Vscode Dll errors](https://igraph.discourse.group/t/vscode-dll-errors/1461)

<div class="topic-metadata">

**Author:** [@Qile0317](https://igraph.discourse.group/u/Qile0317)\
**Replies:** 2\
**Last updated:** [6 March 2023 09:23 UTC](https://igraph.discourse.group/t/vscode-dll-errors/1461 "2023-03-06T09:23:06Z")

</div>

When installing and loading igraph in Rstudio (R version 4.2.2), everything seems normal. However, when doing so in VScode, I get the following error: \> library(igraph) Error: package or namespace load failed for 'igrap…

---

## [Installation of igraph 1.4.0 fails with: undefined symbol: \_ZNSt13runtime\_errorC1EPKc](https://igraph.discourse.group/t/installation-of-igraph-1-4-0-fails-with-undefined-symbol-znst13runtime-errorc1epkc/1469)

<div class="topic-metadata">

**Author:** [@pgulikers](https://igraph.discourse.group/u/pgulikers)\
**Replies:** 1\
**Last updated:** [15 February 2023 15:22 UTC](https://igraph.discourse.group/t/installation-of-igraph-1-4-0-fails-with-undefined-symbol-znst13runtime-errorc1epkc/1469 "2023-02-15T15:22:46Z")

</div>

igraph 1.3.5 installs fine. The details for the failure with 1.4.0 unable to load shared object ‘…/igraph/libs/igraph.so’: undefined symbol: \_ZNSt13runtime\_errorC1EPKc sessionInfo() R version 3.6.0 (2019-04-26) Plat…

---

## [R installation fails on Ubuntu 22.04](https://igraph.discourse.group/t/r-installation-fails-on-ubuntu-22-04/1467)

<div class="topic-metadata">

**Author:** [@rbridgesds](https://igraph.discourse.group/u/rbridgesds)\
**Replies:** 5\
**Last updated:** [12 February 2023 23:27 UTC](https://igraph.discourse.group/t/r-installation-fails-on-ubuntu-22-04/1467 "2023-02-12T23:27:46Z")

</div>

This is the error message I get when the installation exits: Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, …): unable to load shared object ‘/home/richard/R/x86\_64-pc-linux-g…

---

## [sprintf error when compiling](https://igraph.discourse.group/t/sprintf-error-when-compiling/1434)

<div class="topic-metadata">

**Author:** [@Santiago\_Perez](https://igraph.discourse.group/u/Santiago_Perez)\
**Replies:** 1\
**Last updated:** [13 December 2022 09:40 UTC](https://igraph.discourse.group/t/sprintf-error-when-compiling/1434 "2022-12-13T09:40:01Z")

</div>

Hello, I had this same issue and then I followed these instructions, however, I am now getting a wierd error after I try to build. (I have installed bison and flex) I am on Mac.

---

## [CMake fails build from tarball; IGRAPH\_VERSION is missing.](https://igraph.discourse.group/t/cmake-fails-build-from-tarball-igraph-version-is-missing/1109)

<div class="topic-metadata">

**Author:** [@wcravens](https://igraph.discourse.group/u/wcravens)\
**Replies:** 1\
**Last updated:** [18 February 2022 07:10 UTC](https://igraph.discourse.group/t/cmake-fails-build-from-tarball-igraph-version-is-missing/1109 "2022-02-18T07:10:07Z")

</div>

I tried version 0.9.x tarballs from the release tags, and only 0.9.0 will build cleanly. The rest fail on an error “…IGRAPH\_VERSION is missing”.

---

## [Make changes locally on python igraph](https://igraph.discourse.group/t/make-changes-locally-on-python-igraph/1405)

<div class="topic-metadata">

**Author:** [@Krishna\_Sharma](https://igraph.discourse.group/u/Krishna_Sharma)\
**Replies:** 1\
**Last updated:** [7 November 2022 13:57 UTC](https://igraph.discourse.group/t/make-changes-locally-on-python-igraph/1405 "2022-11-07T13:57:24Z")

</div>

Dear all, I want to check a few functionalities I have created and add them in python igraph but I want to do it locally. But i am facing issues while doing it. I have done the following steps Created a venv Tried to…

---

## [download of package ‘igraph’ failed in R version 4.2.1](https://igraph.discourse.group/t/download-of-package-igraph-failed-in-r-version-4-2-1/1389)

<div class="topic-metadata">

**Author:** [@len](https://igraph.discourse.group/u/len)\
**Replies:** 2\
**Last updated:** [18 October 2022 00:33 UTC](https://igraph.discourse.group/t/download-of-package-igraph-failed-in-r-version-4-2-1/1389 "2022-10-18T00:33:48Z")

</div>

I am unable to install igraph on R version 4.2.1 running under macOS Monterey 12.6 When I try to install the package, I get an error “unable to access index for repository” : Please advise- thank you!

[Next page](https://igraph.discourse.group/c/installation/10.md?page=1)
