Hi,

I had the same problem trying to compile graph-tool in Ubuntu. At first I tried to simply buy more memory, and went all the way up to 12 G.

Unfortunately the exhausted memory problem was still there (so this might more be some kind of a bug, no?). I then followed the advice given in jully on a similar thread: 
g.venkatasubramaniyan | 1 Jul 23:52

I noticed that the temp file( ccwxyz.s) getting bigger and bigger  before shooting this error.
So i did a "make -n" in the directory were did this error is reported to get the exact compilation syntax and hand created the .lo file myself (maually) for that file alone.

After that I was able to proceed with compilation successfully and able to do examples. seems to a problem with the tools libtool, etc ...
May be you can also try that way.
So I did this and it worked. More precisely, in the graph-tool directory (after a make clean or on a fresh copy of the source):

graph-tool $ ./autogen.sh
graph-tool $ ./configure
graph-tool $ cd src/graph/layout/
graph-tool $ make -n


This last command issues several chunks of bash code (one for each .cc files). Just copy-paste the section corresponding to sfdp_layout and wait until it compiles that part. After that go back to the source tree root and

graph-tool $ make && sudo make install

It worked for me. I haven't tried with less memory of course, but I suspect it should work.


Hope this helps,

Cheers

Guillaume

Le 18/10/2012 21:28, Tiago de Paula Peixoto a écrit :
Hi,

On 10/17/2012 04:34 AM, Qiang Ren wrote:
Hi ,all
  I have been using graph_tool for a few months.
  I finished compiling it in Archlinux in 4G memory, but failed to compile in Ubuntu linux in 4G memory.
  I wonder if there exists some way to directly use the library without compiling source code.
  Or , what have been done during the compiling of graph_tool?
  How can we use the post-compile files in another computer?
  Advise on same operating system or different operating system are both OK.  
Precompiled packages are available for certain distributions at the
website. Other than this, copying the files over from another
distribution will only work if you have exactly the same version of the
libraries, with the same name, which is unlikely.

Cheers,
Tiago



_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool