-
-
Notifications
You must be signed in to change notification settings - Fork 201
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 build issue on Ubuntu 16.04 #209
Comments
Hmm... it installed just fine on my personal Ubuntu box (17.04) $ gcc --version
gcc (Ubuntu 6.3.0-12ubuntu2) 6.3.0 20170406
...
$ R -e "install.packages('igraph', repos='http://cran.rstudio.com/')"
...
* installing *source* package ‘igraph’ ...
** package ‘igraph’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
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 accepts -g... yes
checking for gcc 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
checking how to run the C++ preprocessor... g++ -E
checking for rintf... yes
checking for finite... yes
checking for expm1... yes
checking for rint... yes
checking for log2... yes
checking for logbl... yes
checking for snprintf... yes
checking for log1p... yes
checking for round... yes
checking for fmin... yes
checking for stpcpy... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether stpcpy is declared... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking net/if.h usability... yes
checking net/if.h presence... yes
checking for net/if.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking net/if_dl.h usability... no
checking net/if_dl.h presence... no
checking for net/if_dl.h... no
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking for struct sockaddr.sa_len... no
checking for xml2-config... /usr/bin/xml2-config
checking for xmlSAXUserParseFile in -lxml2... yes
checking libxml/parser.h usability... yes
checking libxml/parser.h presence... yes
checking for libxml/parser.h... yes
checking for __gmpz_add in -lgmp... yes
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
...
* DONE (igraph)
$ Rscript -e 'packageVersion("igraph")'
[1] ‘1.1.1’ |
Also, the build of appears to have completed just fine on R-hub builder for Ubuntu 16.04 and R-release. I submitted the CRAN source of igraph 1.1.1 for that. |
I spoke too soon. The installation completed just fine, but an example failed. 5265#> * checking examples ... ERROR
5266#> Running examples in ‘igraph-Ex.R’ failed
5267#> The error most likely occurred in:
5268#> > ### Name: plot_dendrogram
5269#> > ### Title: Community structure dendrogram plots
5270#> > ### Aliases: plot_dendrogram dendPlot plot_dendrogram.communities
5271#> > ### Keywords: graphs
5272#> >
5273#> > ### ** Examples
5274#> >
5275#> >
5276#> > karate <- make_graph("Zachary")
5277#> > fc <- cluster_fast_greedy(karate)
5278#> > plot_dendrogram(fc)
5279#> Error in .reorder_ape(x, order, index.only, length(x$tip.label), io) :
5280#> object 'neworder_phylo' not found
5281#> Calls: plot_dendrogram ... as_phylo.communities -> -> .reorder_ape
5282#> Execution halted
5283#> * checking for unstated dependencies in ‘tests’ ... OK
5284#> * checking tests ...
5285#> Running ‘testthat.R’
5286#> OK
5287#> * checking PDF version of manual ... OK
5288#> * DONE
5289#> Status: 1 ERROR, 1 NOTE
5290#> See
5291#> ‘/home/docker/igraph.Rcheck/00check.log’
5292#> for details. |
@wlandau I think you don't have the ape package installed. But surely, this is a different error than the one in the original post. |
@ebridge2 I cannot reproduce this, unfortunately. You would need to give me a (simple) reproducible example, e.g. a Dockerfile. |
@gaborcsardi Yes, it was a different error, and far less serious. And to be clear, when I mentioned the failed example, I was talking about the R-hub builder results, not anything on my local machine. |
Hi, I am experiencing the exact same problem on a Fedora 25. Details: |
Here's a Dockerfile to reproduce FROM ubuntu:16.10
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
gcc make g++ gfortran r-cran-magrittr r-cran-matrix r-cran-nmf r-cran-irlba liblapack-dev libblas-dev \
&& echo 'install.packages(c("igraph"), repos="http://cran.uni-muenster.de")' | R --no-save |
I'm running into the exact error with the same versions of Ubuntu and R.
|
This is a closed issue, because the problem of the OP was solved. If you have other problems, please open another issue. |
Thanks for the comment @gaborcsardi - I had posted too soon - managed to install successfully from source. |
My problem was not solved, I just did't have time to debug it with you guys that week
so I just rolled back to 1.0.1 right after posting the original issue and by the time I was free again I had forgotten
…On Aug 4, 2017 12:23 PM, "Gábor Csárdi" ***@***.***> wrote:
This is a closed issue, because the problem of the OP was solved. If you
have other problems, please open another issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#209 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AIeNW1GZ36WkdjW987foh4tHUOu8wQHLks5sU0VngaJpZM4Oei3_>
.
|
@cchng @jonashaag @JeffRodrigo this might help you guys. Note you need devtools installed, but:
|
@gaborcsardi This issue should be reopened, see last comment by @ebridge2 |
It was solved by this: igraph/igraph#1020 |
Maybe it hasn't yet been added to repositories. This answer in Stack Overflow discusses how to install igraph straight from github. |
@JeffRodrigo which repositories do you think need to be updated? I just tried this
and I get one of the most common
|
Same issue. Mint 18.2, i.e. Ubuntu 16.04 LTS.
I tried installing the two listed system dependencies (libgmp3-dev libxml2), but it didn't change anything afaict. |
I got identical errors when I tried to install |
This is my Dockerfile, I got same error:
If I run
|
I find a method occasionally when I run
|
Confirm @OnlyBelter's solution works. It's also a second answer in @JeffRodrigo's stackoverflow link.
|
For what it's worth, I could reproduce the issue on a clean install of Ubuntu 16.04 and the above solution works. |
If it i can be of used to someone : Encounter close problem : igraph installed using Rstudio package manager UI but can not be loaded :
The solution founded is to install igraph using command line with :
The Linux version is : "Ubuntu 20.04 LTS" The Rstudio server version is :
|
This (namely |
@Kodiologist @bersbersbers I just tested this again, and I cannot reproduce this problem. If GLPK is not present when installing igraph, then GLPK support will simply be disabled in igraph. One way to get this error is if GLPK is present when installing igraph, but then later it is removed. That will break igraph. You must keep GLPK installed. Did you by any chance uninstall GLPK after installing igraph? If you see this error even though you've never had GLPK installed, it is possible that igraph picked up a different GLPK library at installation/compilation time, but it cannot find it at load time. This different GLPK library may have come from an active Anaconda environment. Did you have a conda environment active when you installed igraph? If you can answer these questions, it will help us improve the igraph installation experience for everyone. |
I couldn't install
No. |
Thanks for the response @Kodiologist ! Would you have the time to try a couple more things? Could you uninstall After running As you can see from this thread, many people encounter this problem, and it would be great if we could figure out why it happens! |
I've done so and it seems to work. I saw |
Not sure when I upvoted this, but I think I remember that it was the time I experimented with GHA. Conda and the like where never involved as far as I can tell. My current workflow is something like this: jobs:
cron:
runs-on: ubuntu-latest
steps:
- name: 1
uses: actions/checkout@v3
- name: 2
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: 3
uses: r-lib/actions/setup-r-dependencies@v2
- name: 4
run: sudo apt-get install -y libglpk40
- name: 5
run: pak::local_install()
shell: Rscript {0}
But I don't have logs from that time. Maybe a cache action interfered? That's hard for me to test right now, but if there is anything I shall run to get log output, I can do that. |
I think the build of |
Thanks for the hint @Kodiologist! This could indeed be the explanation for why this issue appears to be so common. The only other explanation I can think of is that people install igraph when GLPK is present, then they inadvertently uninstall GLPK (perhaps an |
@bersbersbers Are you compiling igraph from sources? If yes, for complete functionality, you need to install |
I've updated the troubleshooting document based on the information you provided here, see #584. Suggestions for improvements are welcome. Thanks again for all the help! |
@szhorvat as outlined above, I think I see this problem only when installing on GHA, via RSPM - but it's hard to know what exactly GHA does in the background. Job setup is reasonably fast, so I guess it's using binaries or an extensive cache (I guess, both, as I only ever used I never ever consciously uninstalled a library on GHA. |
Ultimately, I feel this is something |
@gaborcsardi Opinions on the above suggestion? |
After reading https://github.com/r-lib/actions/blob/v2/setup-r-dependencies/README.md, my impression is that system requirements are not explicitly installed by that action, but by And https://github.com/rstudio/r-system-requirements/tree/main/rules is maybe a good point to add |
Hi, I am experiencing the following error while trying to install igraph from CRAN in a docker container:
I had no issues the other day with this same docker file. R version is 3.4.1; OS is ubuntu 16.04. no issues when installing instead with:
any ideas where the issue could be?
The text was updated successfully, but these errors were encountered: