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.
Thank you all!
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
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 http://search.gmane.org/?author=g.venkatasubramaniyan&sort=date | 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
On 10/19/2012 09:05 AM, Guillaume Gay wrote:
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:
This is absolutely strange... I don't have that much memory on my laptop and I compile graph-tool just fine. I'm curious: What GCC version do you have in your ubuntu install (exact version, including ubuntu patches)? Did you try with different versions?
Does the compilation stay below 4G if you disable sfdp_layout? If not, what maximum value does it scale to?
Although this is almost certainly a problem with a specific version of GCC, I intend to modify sfdp_layout to use less memory during compilation in any case.
Cheers, Tiago
Le 19/10/2012 09:25, Tiago de Paula Peixoto a écrit :
On 10/19/2012 09:05 AM, Guillaume Gay wrote:
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:
This is absolutely strange... I don't have that much memory on my laptop and I compile graph-tool just fine. I'm curious: What GCC version do you have in your ubuntu install (exact version, including ubuntu patches)? Did you try with different versions?
"apt-cache show gcc" returns this on my box:
Package: gcc Priority: optional Section: devel Installed-Size: 41 Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Debian GCC Maintainers debian-gcc@lists.debian.org Architecture: i386 Source: gcc-defaults (1.112ubuntu5) Version: 4:4.6.3-1ubuntu5 Provides: c-compiler Depends: cpp (>= 4:4.6.3-1ubuntu5), gcc-4.6 (>= 4.6.3-1~) Recommends: libc6-dev | libc-dev Suggests: gcc-multilib, make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb, gcc-doc Conflicts: gcc-doc (<< 1:2.95.3) Filename: pool/main/g/gcc-defaults/gcc_4.6.3-1ubuntu5_i386.deb
That's the basic up-to-date gcc package provided by ubuntu. I didn't try any other version. On my 4G ram laptop, with sfdp_layout disabled (brutally taken away from source, though that leads to problems later on) it manages to compile, I remeber monitoring memory an it would seat around 3 G.
Does the compilation stay below 4G if you disable sfdp_layout? If not, what maximum value does it scale to?
Although this is almost certainly a problem with a specific version of GCC, I intend to modify sfdp_layout to use less memory during compilation in any case.
Cheers, Tiago
graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
On 10/19/2012 09:32 AM, Guillaume Gay wrote:
Le 19/10/2012 09:25, Tiago de Paula Peixoto a écrit :
On 10/19/2012 09:05 AM, Guillaume Gay wrote:
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:
This is absolutely strange... I don't have that much memory on my laptop and I compile graph-tool just fine. I'm curious: What GCC version do you have in your ubuntu install (exact version, including ubuntu patches)? Did you try with different versions?
"apt-cache show gcc" returns this on my box:
Package: gcc Priority: optional Section: devel Installed-Size: 41 Maintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com Original-Maintainer: Debian GCC Maintainers debian-gcc@lists.debian.org Architecture: i386 Source: gcc-defaults (1.112ubuntu5) Version: 4:4.6.3-1ubuntu5 Provides: c-compiler Depends: cpp (>= 4:4.6.3-1ubuntu5), gcc-4.6 (>= 4.6.3-1~) Recommends: libc6-dev | libc-dev Suggests: gcc-multilib, make, manpages-dev, autoconf, automake1.9, libtool, flex, bison, gdb, gcc-doc Conflicts: gcc-doc (<< 1:2.95.3) Filename: pool/main/g/gcc-defaults/gcc_4.6.3-1ubuntu5_i386.deb
That's the basic up-to-date gcc package provided by ubuntu. I didn't try any other version. On my 4G ram laptop, with sfdp_layout disabled (brutally taken away from source, though that leads to problems later on) it manages to compile, I remeber monitoring memory an it would seat around 3 G.
Ubuntu also offers GGC 4.7, although it is not the default. Could you please try with it and say if you encounter the same problem?
Cheers, Tiago
Hi,
On 10/19/2012 09:05 AM, Guillaume Gay wrote:
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.
This is just to say that I've modified the sfdp_layout code such that it should require less memory for compilation. The new code is in the git repository.
Cheers, Tiago
Hi,
I was absent last week so couldn't follow up on that.
I'll give it a try some time this week on my small laptop.
Guillaume
Le 27/10/2012 11:07, Tiago de Paula Peixoto a écrit :
Hi,
On 10/19/2012 09:05 AM, Guillaume Gay wrote:
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.
This is just to say that I've modified the sfdp_layout code such that it should require less memory for compilation. The new code is in the git repository.
Cheers, Tiago
graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool
Hi list, hi Tiago,
Just to conclude the thread: the latest git (release-2.2.18-2-g01d9c51) compiles like a charm under Ubuntu 12.10 with (the package manager default) gcc4.7
Cheers,
Guillaume
Le 27/10/2012 11:07, Tiago de Paula Peixoto a écrit :
Hi,
On 10/19/2012 09:05 AM, Guillaume Gay wrote:
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.
This is just to say that I've modified the sfdp_layout code such that it should require less memory for compilation. The new code is in the git repository.
Cheers, Tiago
graph-tool mailing list graph-tool@skewed.de http://lists.skewed.de/mailman/listinfo/graph-tool