I am trying to install python-pygoocanvas in order to run old ns-3 projects. How can I install it on Ubuntu 20.04.3 LTS? I have read this: Unable to locate package python-pygoocanvas I cannot say it helped me :-( Any better idea how to install it?
Asked
Active
Viewed 814 times
0
1 Answers
1
Ubuntu 20.04, example building pygoocanvas
sudo apt install libgtk2.0-dev python-gobject-2-dev python-cairo-dev python-numpy libglade2-dev
wget http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2-dev_2.24.0-5.1ubuntu2_all.deb
sudo gdebi python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
sudo gdebi python-gtk2-dev_2.24.0-5.1ubuntu2_all.deb
wget https://download.gnome.org/sources/goocanvas/1.0/goocanvas-1.0.0.tar.gz
[goocanvas-1.0.0]$ ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu/
make && sudo make install
wget http://archive.debian.org/debian-archive/debian/pool/main/p/pygoocanvas/pygoocanvas_0.14.1.orig.tar.gz
[pygoocanvas-0.14.1]$ ./configure --prefix=/usr --libdir=/usr/lib/x86_64-linux-gnu/
make && sudo make install

Knud Larsen
- 3,084
python-pygoocanvas
package was removed from the Ubuntu repositories after 16.04. I suppose you could try installing the 16.04 package. It requires some knowledge about the differences between Python2 packages and Python3 packages. But if you're patient and willing to learn, you might get it to work. Alternately, you might have better luck learning how to install such old software from source. – user535733 Jan 21 '22 at 04:48