ArticlePairMatching icon indicating copy to clipboard operation
ArticlePairMatching copied to clipboard

Solution to install "graph_tool" on Ubuntu 16.04

Open ygjia opened this issue 6 years ago • 2 comments

As mentioned before #2, installing "graph_tool" may be very troublesome.

Here is my solution to install "graph_tool" on my ubuntu 16.04, hoping can be helpful to those still using ubuntu 16.04 as the server.

We could go to the Official Installation Guidance for debian&ubuntu, but only ubuntu 18.04(bionic), ubuntu 18.10(cosmic) and ubuntu 19.04(disco) are listed blow the instructions.

I tried to open the source url https://downloads.skewed.de/apt/ in my browser, and found there was still a folder "xenial" which is for ubuntu 16.04.

So, I just replace the DISTRIBUTION with xenial in the following lines, and added them to /etc/apt/sources.list.

deb http://downloads.skewed.de/apt/DISTRIBUTION DISTRIBUTION universe
deb-src http://downloads.skewed.de/apt/DISTRIBUTION DISTRIBUTION universe

Then follow the official guidance, I finally installed it successfully.

Note: The code may encounter a “Error”when import cairo, so the graph drawing will not work. But it can work normally if we don't use it for visualization.

ygjia avatar Aug 08 '19 07:08 ygjia

@ygjia Well done! Thanks!

BangLiu avatar Aug 08 '19 17:08 BangLiu

As mentioned before #2, installing "graph_tool" may be very troublesome.

Here is my solution to install "graph_tool" on my ubuntu 16.04, hoping can be helpful to those still using ubuntu 16.04 as the server.

We could go to the Official Installation Guidance for debian&ubuntu, but only ubuntu 18.04(bionic), ubuntu 18.10(cosmic) and ubuntu 19.04(disco) are listed blow the instructions.

I tried to open the source url https://downloads.skewed.de/apt/ in my browser, and found there was still a folder "xenial" which is for ubuntu 16.04.

So, I just replace the DISTRIBUTION with xenial in the following lines, and added them to /etc/apt/sources.list.

deb http://downloads.skewed.de/apt/DISTRIBUTION DISTRIBUTION universe
deb-src http://downloads.skewed.de/apt/DISTRIBUTION DISTRIBUTION universe

Then follow the official guidance, I finally installed it successfully.

Note: The code may encounter a “Error”when import cairo, so the graph drawing will not work. But it can work normally if we don't use it for visualization.

it seems donot work now.

shanekong avatar Jun 01 '20 10:06 shanekong