[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[igraph] compiling igraph C under linux

From: Francois Bastardie
Subject: [igraph] compiling igraph C under linux
Date: Tue, 15 Feb 2011 16:25:37 +0100


It does not appear I am lucky.


I tried to install the last nightly built igraph (igraph-nightly-0.6-2340-20110215.tar.gz) under linux ubuntu this time...And this below what I got back.

Can I ask you what do you think of this?


address@hidden:/home/fba/igraph-0.6# make install

Making install in src

make[1]: Entering directory `/home/fba/igraph-0.6/src'

make  install-am

make[2]: Entering directory `/home/fba/igraph-0.6/src'

make[2]: *** No rule to make target `f2c/arithchk.c', needed by `f2c/arith.h'.  Stop.

make[2]: Leaving directory `/home/fba/igraph-0.6/src'

make[1]: *** [install] Error 2

make[1]: Leaving directory `/home/fba/igraph-0.6/src'

make: *** [install-recursive] Error 1




Just before I tried to run the igraph-0.5.4 and it compiled OK but afterward I was unable to run the example of the tutorial igraph_test.c:



Because typing:

 gcc igraph_test.c -I/usr/local/include/igraph -L/usr/local/lib -ligraph -o igraph_test

I got back:

Undefined reference to _intel_fast_memcpy and _intel_fast_memset


address@hidden:/home/fba/igraph-0.6# gcc --version

gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3


Regards, Francois




#include <igraph.h>


int main(void)


     igraph_real_t diameter;

     igraph_t graph;

     igraph_erdos_renyi_game(&graph, IGRAPH_ERDOS_RENYI_GNP, 1000, 5.0/1000,

                             IGRAPH_UNDIRECTED, IGRAPH_NO_LOOPS);

     igraph_diameter(&graph, &diameter, 0, 0, 0, IGRAPH_UNDIRECTED, 1);

     printf("Diameter of a random graph with average degree 5: %f\n",

             (double) diameter);


     return 0;




Francois Bastardie, Ph.D.

Department of Marine Fisheries,

Danish Institute for Fisheries Research (DTU-Aqua),

Charlottenlund Castle,

Technical University of Denmark,

DK-2920, Charlottenlund, Denmark

Phone: +45 3588 3398


reply via email to

[Prev in Thread] Current Thread [Next in Thread]