|
From: | harun pirim |
Subject: | [igraph] C library Install on OS X |
Date: | Fri, 3 Sep 2010 07:28:48 -0500 |
Hi All, I can't install C library to OS X Snow Leopard. I followed the steps in the manuel like configure, make, make install. At the make install step on terminal I get the following error: Making install in src make install-am test -z "/usr/local/lib" || .././install-sh -c -d "/usr/local/lib" /bin/sh ../libtool --mode=install /usr/bin/install -c libigraph.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libigraph.0.dylib /usr/local/lib/libigraph.0.dylib install: /usr/local/lib/libigraph.0.dylib: Permission denied make[3]: *** [install-libLTLIBRARIES] Error 71 make[2]: *** [install-am] Error 2 make[1]: *** [install] Error 2 make: *** [install-recursive] Error 1 At the same time I try to compile and run the following code using Xcode. Apparently it doesn't work. #include <iostream> #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); igraph_destroy(&graph); return 0; } Any help? Thank you. Harun |
[Prev in Thread] | Current Thread | [Next in Thread] |