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

igraph installation error #452

Closed
BenxiaHu opened this issue Mar 3, 2021 · 4 comments
Closed

igraph installation error #452

BenxiaHu opened this issue Mar 3, 2021 · 4 comments

Comments

@BenxiaHu
Copy link

BenxiaHu commented Mar 3, 2021

Hi,
I try to install igraph using install.packages("igraph") and remotes::install_github("igraph/rigraph@master"). However, these 2 ways do not work. Here is the error I got:

Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/nas/longleaf/home/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-igraph/00new/igraph/libs/igraph.so':
  libicui18n.so.58: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/nas/longleaf/home/R/x86_64-pc-linux-gnu-library/3.6/igraph’
Error: Failed to install 'igraph' from GitHub:
  (converted from warning) installation of package ‘/tmp/RtmpTXE5ir/file19093a3dd010/igraph_1.2.5.tar.gz’ had non-zero exit status

Do you have any suggestions for this issue?
Best,

@vtraag
Copy link
Member

vtraag commented Mar 4, 2021

This looks like error that you get when you try library(igraph). Do you also get any error during compilation? Presumably you are missing the libicu-dev package? igraph does not have this dependency immediately, but libxml2 does have this dependency (on which igraph does depend). Perhaps you have two versions of libxml2 installed somehow, with conflicting libicu versions?

@vtraag
Copy link
Member

vtraag commented Mar 5, 2021

The version on the master branch was just updated, so you can also retry with remotes::install_github("igraph/rigraph@master").

@vtraag
Copy link
Member

vtraag commented Mar 7, 2021

Note that this looks like a duplicate of issue #274.

@ntamas
Copy link
Member

ntamas commented Oct 26, 2021

Duplicate of #274; also it seems to be an undesired interplay with an Anaconda environment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants