我尝试在 Ubuntu 18.04 中执行 Mentor Modelsim/Questa,但它返回以下错误消息:
Error in startup script:
Initialization problem, exiting.
Initialization problem, exiting.
while executing
"InitializeINIFile quietly"
invoked from within
"ncFyP12 -+"
(file "/mtitcl/vsim/vsim" line 1)
** Fatal: Read failure in vlm process (0,0)
这是因为所需的库依赖项在 Ubuntu 18.04 中是最新的。我尝试应用以下一些建议:
以及其他类似的建议。但是,这些都不适用于 Ubuntu 18.04 LTS。
答案1
解决该问题的方法是安装 libfreetype6 和 libpng12。首先,您需要添加 32 位库选项:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential
# You already had build-essential and gcc, g++ etc. But you will also need to install the 32 bit versions.
这些库在 Ubuntu 18.04 中是最新的,所以我们需要下载 Modelsim/Questa 兼容库:
MODELSIM 扩展库
wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/libp/libpng/libpng12-0_1.2.54-1ubuntu1.1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/f/freetype/libfreetype6_2.6.1-0.1ubuntu2_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/f/freetype/libfreetype6_2.6.1-0.1ubuntu2_amd64.deb
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1_i386.deb
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1.1_amd64.deb
sudo dpkg -i libfreetype6_2.6.1-0.1ubuntu2_i386.deb
sudo dpkg -i libfreetype6_2.6.1-0.1ubuntu2_amd64.deb
观察:确保所有库都已成功安装。
此外,您必须保证安装以下库:
sudo apt-get install gcc-multilib g++-multilib \
lib32z1 lib32stdc++6 lib32gcc1 \
expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 libgtk-3-0:i386 \
libcanberra0:i386 libpng12-0:i386 libice6:i386 libsm6:i386 libncurses5:i386 zlib1g:i386 \
libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386 \
libxt6:i386 libxtst6:i386
此后,Modelsim/Questa 可以正常工作。