在15.04中使用14.04应用程序
我正在运行15.04。 我需要安装ghdl 。 然而,当我这样做之后添加存储库
apt-get update
我一直在
failed to fetch http://ppa.launchpad.net/pgavin/ghdl/ubuntu/dists/vivid/main/binary-i386/Packages
为什么是这样?
此ppa中没有15.04的软件包,但14.04(可信)的软件包可能有效。
您可以直接从PPA下载deb文件。
单击View Package details
并下载32或64位deb。
32位
64位
正如@ Pilot6所说,Trusty没有包。
在这种情况下 ,使用Trusty软件包并不是问题,可以使用Trusty软件包的list
文件来获取更新。 您需要的是安装一些额外的Trusty软件包。
这里以32位为例。 对于64位软件包,请从以下站点下载: libgnat-4.8
, gnat-4.8-base
-
libgnat-4.8
(32位)cd wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gnat-4.8/libgnat-4.8_4.8.2-8ubuntu3_i386.deb
-
gnat-4.8-base
(32位)cd wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gnat-4.8/gnat-4.8-base_4.8.2-8ubuntu3_i386.deb
-
安装deb文件
sudo dpkg -i ~/Downloads/gnat-4.8-base_4.8.2-8ubuntu3_i386.deb sudo dpkg -i ~/Downloads/libgnat-4.8_4.8.2-8ubuntu3_i386.deb
之后,在list
文件中用trusty
替换vivid
:
sudo nano /etc/apt/sources.list.d/pgavin-ubuntu-ghdl-vivid.list
或者作为一个class轮
sudo sed -i 's/vivid/trusty/' /etc/apt/sources.list.d/pgavin-ubuntu-ghdl-vivid.list
并安装ghdl
sudo apt-get update sudo apt-get install --reinstall ghdl
有时您应该检查PPA的Vivid包装。
从源代码安装非常简单
sudo apt-get install gnat-5 git clone https://github.com/tgingold/ghdl git checkout v0.33 cd ghdl ./configure --prefix=/usr/local make make install ghdl --version
现在你可以尝试记录下来的hello world: http : //ghdl.readthedocs.io/en/latest/Starting_with_GHDL.html#the-hello-world-program
在Ubuntu 16.04上测试过。
使用GCC后端进行编译更难,但可能具有仿真速度等优势。 程序和权衡讨论在: https : //github.com/tgingold/ghdl/blob/f2b83716c79e7c6123aa9b6215a6dc6ac1c9d83b/BUILD.txt