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

failed to install igraph #335

Closed
xiwa2006 opened this issue Apr 5, 2019 · 6 comments
Closed

failed to install igraph #335

xiwa2006 opened this issue Apr 5, 2019 · 6 comments

Comments

@xiwa2006
Copy link

xiwa2006 commented Apr 5, 2019

I tried to install.packages("igraph") and got below errors.

installing to /home/xwang/R/x86_64-pc-linux-gnu-library/3.4/igraph/libs
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/xwang/R/x86_64-pc-linux-gnu-library/3.4/igraph/libs/igraph.so':
libgfortran.so.4: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed

  • removing ‘/home/xwang/R/x86_64-pc-linux-gnu-library/3.4/igraph’
    The downloaded source packages are in
    ‘/tmp/RtmpyOUq7X/downloaded_packages’
    Warning message:
    In install.packages("igraph") :
    installation of package ‘igraph’ had non-zero exit status

My environment is as below.
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /opt/sw/R/3.4.4/lib/R/lib/libRblas.so
LAPACK: /opt/sw/R/3.4.4/lib/R/lib/libRlapack.so

@xiwa2006 xiwa2006 changed the title failed to install graph failed to install igraph Apr 5, 2019
@harryprince
Copy link

@xiwa2006
it is your fortran problem on your system.

@matteodelucchi
Copy link

same issue as #275

@960801
Copy link

960801 commented Jun 18, 2021

I have a similar issue on my ubuntu 20.04 with R version 4.1.0 and I get the error below:

Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/eric/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-igraph/00new/igraph/libs/igraph.so':
libmkl_rt.so: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed

  • removing ‘/home/eric/R/x86_64-pc-linux-gnu-library/4.1/igraph’
    Warning message:
    In i.p(...) :
    installation of package ‘/tmp/RtmpVqyzxf/file58a6db5e9bc/igraph_1.2.6.9118.tar.gz’ had non-zero exit status

one solution suggested creating "~/.R/Makevar" and setting:
CC = clang
CXX = clang++
this doesn't seem to work or I'm doing something wrong.
is there a way of handling this error?
Thanks in advance

@ntamas
Copy link
Member

ntamas commented Jun 18, 2021

Try installing the libmkl-rt package; this is the one that contains libmkl_rt.so: https://packages.ubuntu.com/search?searchon=contents&keywords=libmkl_rt&mode=filename&suite=hirsute&arch=any

@960801
Copy link

960801 commented Jun 18, 2021

Try installing the libmkl-rt package; this is the one that contains libmkl_rt.so: https://packages.ubuntu.com/search?searchon=contents&keywords=libmkl_rt&mode=filename&suite=hirsute&arch=any

This worked perfectly. Thank you very much.

This is where I found the package (if anyone comes across the same problem):
https://www.ubuntuupdates.org/package/core/hirsute/multiverse/base/libmkl-rt

@FloHu
Copy link

FloHu commented Oct 20, 2021

I had a similar problem, I think the common denominator is the localization of .so files. See my answer here: #275 (comment)

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

6 participants