我一直尝试安装ghdl
,gtkwave
但至今未能成功。
以下是我得到的信息:
sudo apt-get install ghdl
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ghdl is not available, but is referred to by another package. This may mean that the package is missing,has been obsoleted, or
is only available from another source
答案1
我用了这个脚本直接从 github 存储库安装它,该存储库于昨天最后更新...
#!/bin/bash
# First get the file from github
git clone https://github.com/tgingold/ghdl
cd ghdl
./configure --prefix=/usr/local
#In case you get the error "Sorry, you need GNAT to build GHDL. See the README" do `sudo apt install gnat`
# fatal error: zlib.h: No such file or directory include <zlib.h>
sudo apt-get -y install libz-dev
make
make install
sudo apt-get -y install gtkwave
# Usage instructions:
printf "\n\n\nUsage instructions:\n"
wget -qO- https://github.com/chGoodchild/setup_scripts/raw/master/using_ghdl.sh
您可以通过将以下命令复制到终端来执行脚本:
wget https://raw.githubusercontent.com/chGoodchild/setup_scripts/master/ghdl.sh
chmod +x ghdl.sh
sudo ./ghdl.sh