how to install the pre-compiled files?

Hi,

I'm thinking to re-install the graph-tool. I've downloaded the precompiled files but don't know how to install them. can anyone tell me how?

thanks!

Dan

attachment.html (747 Bytes)

Hi Dan,
you don't really need to install them.
The library can be in any directory in your python module path. However, the
simplest thing is to have it in the same directory as graph-tool

Then, if the directory is not in your path, you call the program from inside
that directory with ./graph-tool or giving the complete path to that
directory

Otherwise you can put the executable and the library in a directory that is in
your path (if you type echo $PATH in a terminal window you have the list),
for instance you can put both in /home/Dan(or whichever your home dir is)/bin
This way you will be able to call the executable with graph-tool, instead
of ./graph-tool

If you want them to be accessible to every user you will choose /usr/local/bin
(and again you can put the library in this same directory or in a different
one as long as the other directory is in the python module path)

At least, this works for me.

Cheers,
Andrea

Hi Andrea,

I copied the precompiled files in my graph-tool folder (the folder where I
unpacked the files into). When I run './graph-tool', I got the error:

dan(a)dan-ubuntu:~/graph-tool-1.1.2$ ./graph-tool
Traceback (most recent call last):
  File "./graph-tool", line 24, in <module>
    from libgraph_tool import *
ImportError: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found
(required by /home/dan/graph-tool-1.1.2/libgraph_tool.so)

I've no idea how to deal with it.

Many thanks!

Dan

<html><DIV><FONT face="Geneva, Arial, Sans-serif"
size=2><STRONG><EM>Dan</EM></STRONG></FONT><IMG height=2
src="http://graphics.hotmail.com/greypixel.gif&quot; width="100%" vspace=9></DIV>
<DIV><FONT size=1>MIT.Engineering.MelbUni</FONT></DIV>
<DIV><FONT size=1>Welcome to my homepage:</FONT></DIV>
<DIV><A href="http://www.student.unimelb.edu.au/xiaodanl/&quot;&gt;&lt;FONT
size=1>http://www.student.unimelb.edu.au/xiaodanl/&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;
<DIV><A href="http://ariport.unimelb.edu.au/blog/&quot;&gt;&lt;FONT
size=1>http;//ariport.unimelb.edu.au/blog/</FONT></A></DIV>
<DIV>
<DIV><FONT size=1>"It is a testament of esteem."</FONT></DIV>
<DIV><FONT size=1>"Self-discovery."</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV></DIV></html>

I don't have any idea. Do you have libstdc++ installed? (I guess yes).
For simplicity, have you tried the precompiled static version of graph-tool?
Cheers,
Andrea

Hi Dan.

Which version of GCC do you have installed?

Cheers,
Tiago

dan(a)dan-ubuntu:~$ gcc --version
gcc.real (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Thanks.

Dan

<html><DIV><FONT face="Geneva, Arial, Sans-serif"
size=2><STRONG><EM>Dan</EM></STRONG></FONT><IMG height=2
src="http://graphics.hotmail.com/greypixel.gif&quot; width="100%" vspace=9></DIV>
<DIV><FONT size=1>MIT.Engineering.MelbUni</FONT></DIV>
<DIV><FONT size=1>Welcome to my homepage:</FONT></DIV>
<DIV><A href="http://www.student.unimelb.edu.au/xiaodanl/&quot;&gt;&lt;FONT
size=1>http://www.student.unimelb.edu.au/xiaodanl/&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;
<DIV><A href="http://ariport.unimelb.edu.au/blog/&quot;&gt;&lt;FONT
size=1>http;//ariport.unimelb.edu.au/blog/</FONT></A></DIV>
<DIV>
<DIV><FONT size=1>"It is a testament of esteem."</FONT></DIV>
<DIV><FONT size=1>"Self-discovery."</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV></DIV></html>

I used GCC 4.2.0 for the pre-compiled release, and that must be why it
doesn't find the correct symbols. I'm afraid you'll either have to try
the statically compiled version, or compile your own, which shouldn't be
too hard (provided you have enough ram).

Cheers.