Install package igraph on MacOSX or in Ubuntu

I fail to install this package from source. However the macbinary can be installed fine.

> library(HelpersMG)
Le chargement a nécessité le package : coda
> wget("https://cran.r-project.org/bin/macosx/el-capitan/contrib/3.4/igraph_1.1.2.tgz")
essai de l'URL 'https://cran.r-project.org/bin/macosx/el-capitan/contrib/3.4/igraph_1.1.2.tgz'
Content type 'application/x-gzip' length 6928223 bytes (6.6 MB)
==================================================
downloaded 6.6 MB

> install.packages("igraph_1.1.2.tgz", repos=NULL)
* installing *binary* package ‘igraph’ ...
* DONE (igraph)

For Ubuntu 16.04:

apt-get update     # refresh
apt-get install software-properties-common
add-apt-repository -y "ppa:marutter/rrutter"
add-apt-repository -y "ppa:marutter/c2d4u"
apt-get update     # now with new repos
apt-get install r-cran-igraph

News: 
In ubuntu 22.04:
sudo apt-get install libglpk-dev
In MacOSX:
On Macs with glpk homebrew install, which puts glpk in /usr/local/lib set export CPATH=/usr/local/includethen it works :)

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04