我正在通过setup.sh文件安装Quartus软件套件。最初我试图运行chmod,然后尝试运行shell可执行文件。
通过./setup.sh
bash: ./setup.sh: /bin/env: bad interpreter: No such file or directory然后通过sudo ./setup.sh。
sudo: unable to execute ./setup.sh: No such file or directory最后,在终端中使用sudo bash setup.sh命令会产生一个有用的错误:
You must have the 32-bit compatibility libraries installed for the Quartus II installer and software to operate properly.
setup.sh: line 106: /home/matt/Downloads/Software Packages/Quartus-web-13.1.0.162-linux/components/QuartusSetupWeb-13.1.0.162.run: Permission denied
setup.sh: line 106: exec: /home/matt/Downloads/Software Packages/Quartus-web-13.1.0.162-linux/components/QuartusSetupWeb-13.1.0.162.run: cannot execute: Permission denied`我已经尝试下载这些库,如Quartus在线安装和许可手册中所列出的。这涉及安装以下必需的库,分别列出了ModelSim软件(64位)和Quartus (32位依赖)的库:
sudo apt-get install
提供下列信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
libasound2 is already the newest version (1.1.0-0ubuntu1).
libncurses5-dev is already the newest version (6.0+20160213-1ubuntu1).
libx11-6 is already the newest version (2:1.6.3-1ubuntu2).
libxext6 is already the newest version (2:1.3.3-1).
libxi6 is already the newest version (2:1.7.6-1).
libxtst6 is already the newest version (2:1.2.2-1).
unixodbc is already the newest version (2.3.1-4.1).
unixodbc-dev is already the newest version (2.3.1-4.1).
libx11-6:i386 is already the newest version (2:1.6.3-1ubuntu2).
libxau6:i386 is already the newest version (1:1.0.8-1).
libxdmcp6:i386 is already the newest version (1:1.1.2-1.1).
libxext6:i386 is already the newest version (2:1.3.3-1).
libxft-dev:i386 is already the newest version (2.3.2-1).
libxrender-dev:i386 is already the newest version (1:0.9.9-0ubuntu1).
libxt6:i386 is already the newest version (1:1.1.5-0ubuntu1).
libxtst6:i386 is already the newest version (2:1.2.2-1).
libzmq3-dev is already the newest version (4.1.4-7).
libxml2 is already the newest version (2.9.3+dfsg1-1ubuntu0.2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libxft-dev : Conflicts: libxft-dev:i386 but 2.3.2-1 is to be installed
libxft-dev:i386 : Conflicts: libxft-dev but 2.3.2-1 is to be installed
E: Unable to correct problems, you have held broken packages.无论我安装了哪种体系结构libxft,在使用bash命令运行时都会发生相同的错误消息。知道我错过了什么,以及如何解决这场冲突吗?
发布于 2017-07-13 15:13:33
有一点信心,你有能力解决一个问题,并深入一点!
通过查看(即使用vim setup.sh) shell文件,可以获得它检查的依赖项的列表。在shell脚本中,我发现:
for item in libstdc++ glibc libX11 libXext libXau libXdmcp freetype fontconfig expat已安装等效Ubuntu库:
sudo apt-get install libstdc++6:i386 libc6:i386 libx11-dev:i386 libxext-dev:i386 libxau-dev:i386 libxdmcp-dev:i386 libfreetype6:i386 fontconfig:i386 expat:i386在更多地查看了脚本,并认识到32位库依赖将打印,无论模块是否存在,从观察外壳代码,我回到了实际的错误,如上。
setup.sh: line .../QuartusSetupWeb-13.1.0.162.run: Permission denied
setup.sh: line 106 exec: ... 162.run: cannot execute: Permission denied特别是,使用bash setup.sh或sudo bash setup.sh的命令无法执行.run文件,因为这些文件的权限属性。一个简单的修复,允许这些列出的文件可执行权限,解决了所有的问题。
chmod +x QuartusSetupWeb-13.1.0.162.run发布于 2018-02-07 10:03:31
检查shebang解释器指令,查看实际用于setup.sh的sh解释器。在Quartus 9.0的情况下,它是"#!/bin/csh",它表示C-shell,默认情况下未在Ubuntu中安装。
https://askubuntu.com/questions/934997
复制相似问题