On 02.10.2014 16:01, Ács Judit wrote:
> I wanted to try graph-tool on my laptop before asking the sysadmin to install a newer gcc. I'm using Linux Mint with gcc4.8.2.
>
> There were two problems:
> I installed both libsparsehash-dev and sparsehash from the official
> ubuntu repos but configure still can't find it. I could sidestep this
> by disabling sparsehash.
Take a look at config.log to see why it is failing. In some versions of
ubuntu/debian, you need to pass the following option to configure:
--with-sparsehash-prefix=google
> The more important problem is that make runs out of memory. I have 4GB
> RAM + 2GB swap in my laptop.
You need slightly more than 4GB to compile graph-tool, unfortunately. If
you have around 6GB with swap, make sure there is nothing else consuming
much memory, and that the compilation is not being done in parallel
(i.e. do not use make -j2 or similar).
If you still cannot compile it, you can try using the clang compiler. It
is also available for ubuntu, and it should use only about half as much
ram.