Discussion:
[igraph] Errors in igraph installation in Rstudio
Greta Romano
2018-02-12 14:41:36 UTC
Permalink
Dear igraph staff,

I'am Greta, a PhD student. I'm trying to install igraph on Rstudio but I have several errors in the log during the installation. I tried to install the most recent version of igraph through install.packages("igraph") but I obtain this error:
foreign-graphml.c: In function ‘igraph_write_graph_graphml’:
foreign-graphml.c:1408:46: error: expected ‘)’ before ‘GRAPHML_NAMESPACE_URI’
ret=fprintf(outstream, "<graphml xmlns=\"" GRAPHML_NAMESPACE_URI "\"\n");
^~~~~~~~~~~~~~~~~~~~~
foreign-graphml.c:1412:59: error: expected ‘)’ before ‘GRAPHML_NAMESPACE_URI’
ret=fprintf(outstream, " xsi:schemaLocation=\"" GRAPHML_NAMESPACE_URI "\n");
^~~~~~~~~~~~~~~~~~~~~
foreign-graphml.c:1414:38: error: expected ‘)’ before ‘GRAPHML_NAMESPACE_URI’
ret=fprintf(outstream, " " GRAPHML_NAMESPACE_URI "/1.0/graphml.xsd\">\n");
^~~~~~~~~~~~~~~~~~~~~
/usr/lib/R/etc/Makeconf:159: recipe for target 'foreign-graphml.o' failed
make: *** [foreign-graphml.o] Error 1
ERROR: compilation failed for package ‘igraph’
* removing ‘/home/gromano/R/x86_64-pc-linux-gnu-library/3.4/igraph’
Installation failed: Command failed (1)

Then I also tried to install an older version (1.1.1) but nothing changes.
Can you help me please?
Thank you

Greta Romano
Sent from Mailspring (https://link.getmailspring.com/link/local-7d8f7d1d-711c-v1.1.3-***@gromano/0?redirect=https%3A%2F%2Fgetmailspring.com%2F&recipient=igraph-help%40nongnu.org), the best free email app for work
Jannick
2018-02-12 16:02:42 UTC
Permalink
Hi Greta,
Post by Greta Romano
Dear igraph staff,
I'am Greta, a PhD student. I'm trying to install igraph on Rstudio but
I have several errors in the log during the installation. I tried to
install the most recent version of igraph through
foreign-graphml.c:1408:46: error: expected ‘)’ before
‘GRAPHML_NAMESPACE_URI’
ret=fprintf(outstream, "<graphml xmlns=\"" GRAPHML_NAMESPACE_URI
"\"\n"); ^~~~~~~~~~~~~~~~~~~~~
foreign-graphml.c:1412:59: error: expected ‘)’ before
‘GRAPHML_NAMESPACE_URI’
You could try to replace the file foreign-graphml.c with the latest version at https://github.com/igraph/igraph/blob/master/src/foreign-graphml.c (click 'Raw' to see the plain file for easy download) which contains an amendment regarding this kind of compilation error.

Best,
J.
Gábor Csárdi
2018-02-12 18:00:49 UTC
Permalink
This is a known issue, see e.g. https://github.com/igraph/rigraph/issues/234

Gabor
Post by Jannick
Hi Greta,
Post by Greta Romano
Dear igraph staff,
I'am Greta, a PhD student. I'm trying to install igraph on Rstudio but
I have several errors in the log during the installation. I tried to
install the most recent version of igraph through
foreign-graphml.c:1408:46: error: expected ‘)’ before
‘GRAPHML_NAMESPACE_URI’
ret=fprintf(outstream, "<graphml xmlns=\"" GRAPHML_NAMESPACE_URI
"\"\n"); ^~~~~~~~~~~~~~~~~~~~~
foreign-graphml.c:1412:59: error: expected ‘)’ before
‘GRAPHML_NAMESPACE_URI’
You could try to replace the file foreign-graphml.c with the latest version at https://github.com/igraph/igraph/blob/master/src/foreign-graphml.c (click 'Raw' to see the plain file for easy download) which contains an amendment regarding this kind of compilation error.
Best,
J.
_______________________________________________
igraph-help mailing list
https://lists.nongnu.org/mailman/listinfo/igraph-help
Loading...