Elementary OS 0.3.2下LiberoSoC_V11_8_SP2_Lin安装报错求助
Hey there, let's work through this LiberoSoC installation snag together. I’ve debugged quite a few FPGA tool installation issues on older Ubuntu-based distros (Elementary OS 0.3.2 is built on Ubuntu 14.04, after all), so let’s break this down step by step.
First, clarify the core installation requirement
The README mentions running the installer from a directory at the same level as adm, bin, data, etc—this doesn’t mean system directories like /usr/local or /opt. Instead, it refers to the directory structure created when you extract the LiberoSoC tarball:
- When you unpack
LiberoSoC_V11_8_SP2_Lin.tar.gz, you’ll get a top-level folder (usually named the same as the tarball) that directly contains thoseadm,bin,data,etcsubfolders. That top-level folder is the correct directory to run the installer from.
Step 1: Properly extract and navigate to the correct directory
- Open a terminal and navigate to where you saved the tarball (e.g.,
~/Downloads):cd ~/Downloads - Extract the tarball without modifying its structure:
tar -xvf LiberoSoC_V11_8_SP2_Lin.tar.gz - Enter the extracted top-level directory—verify you see the required subfolders:
You should seecd LiberoSoC_V11_8_SP2_Lin lsadm,bin,data,etclisted here. If not, you might have extracted the files incorrectly (e.g., using a GUI tool that flattened the structure).
Step 2: Fix common permission and dependency issues
Older FPGA tools often require specific system libraries and root privileges to install correctly:
- First, install critical dependencies for Ubuntu 14.04/Elementary OS 0.3.2:
These libraries are frequently missing on newer (or stripped-down) distros and cause silent or cryptic installation errors.sudo apt-get update && sudo apt-get install libpng12-0 libncurses5 libstdc++6 libx11-dev - Run the installer with root privileges (most FPGA tools need this to write to system directories or set up environment links):
(If your installer script has a different name, check the README—common alternatives aresudo ./setup.shinstall.shorlibero_install.sh.)
Why your previous attempts failed
When you moved the installer files to /usr/local, /opt, or your home directory, you likely broke the relative path references built into Libero’s installation script. The script expects to find adm, bin, etc., in the same directory it’s run from—not in some system folder. Flattening the directory structure or moving files away from their original extracted location will almost always trigger errors.
Post-installation tip
Once installed, add Libero’s binary directory to your PATH so you can launch it from any terminal:
- Open your
~/.bashrcfile in a text editor:nano ~/.bashrc - Add this line at the end (replace
/opt/microsemi/liberowith your actual installation path):export PATH=/opt/microsemi/libero/bin:$PATH - Save and exit, then reload the bashrc:
source ~/.bashrc
内容的提问来源于stack exchange,提问作者cps

