如何安装 python-pygoocanvas,因为我需要它来运行旧的 ns-3.24 项目

如何安装 python-pygoocanvas,因为我需要它来运行旧的 ns-3.24 项目

我正在尝试安装 python-pygoocanvas 以运行旧的 ns-3 项目。如何在 Ubuntu 20.04.3 LTS 上安装它?我读过这篇文章:无法找到包 python-pygoocanvas我不能说它对我有帮助:-(还有更好的想法如何安装它吗?

答案1

Ubuntu 20.04,构建 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

相关内容