zoukankan      html  css  js  c++  java
  • ubuntu 18.04 vcs2016 安装记录

    ubuntu 18.04  VCS2016.6  scl 2017

    资源地址

    http://www.ictown.com/forum.php?mod=viewthread&tid=195973&highlight=vcs

    友情提示  虚拟机硬盘空间 20G 不够  - - 

    对于新安装的 ubuntu 18.04 系统,获取mac 地址,和hostname,用于生成证书文件。

      hostname 获取名

      ifconfig 获取mac地址,如果没有 该命令  sudo apt install net-tools

      使用 破解器生成 证书文件 

    将vcs 安装文件和 scl安装文件放在同一目录下,如上资源仅包含 vcs 安装文件,未包含scl

    sudo apt install unrar 解压出 .run 文件

    运行 .run 文件, 添加执行权限sudo chmod 755 .run

      

    运行 .run 在当前目录后,会生成 installer 文件

      需要安装csh  sudo apt install csh

      执行  ./installer -gui 

      或者 sudo ./setup.sh -install_as_root

      此时注意把 scl 文件复制到这里,具体为如下两个

      scl_v2017.12_common.spf   scl_v2017.12_linux64.spf

      源文件就是当前文件夹内,后面指定安装目录

      勾选 scl  vcs 执行安装到指定目录,

      sudo ./setup.sh -install_as_root 可以安装到 /usr/synopsys 目录下 不然没有权限,则只能安装到 home下

      这里使用   ./installer -gui  安装到 ~/program/vcs2016 , vcs 和 scl 均在该目录下

    修改 证书文件

       /usr/synopsys/scl/2017.12/linux64/bin/snpslmd

      在该目录下 ./sssverify 证书文件   来验证,由于现在还没添加环境变量,所以需要切换到对应目录下运行

    修改 .bashrc  添加环境变量

    export  =不要有空格

    #vcs
    export PATH=$PATH:/home/fundou/program/vcs2016/vcs-mx/L-2016.06/bin
    export VCS_HOME=/home/fundou/program/vcs2016/vcs-mx/L-2016.06

    #dve
    export PATH=$PATH:/home/fundou/program/vcs2016/vcs-mx/L-2016.06/gui/dve/bin
    alias dve="dve"

    #license
    export SNPSLMD_LICENSE_FILE=27000@ubuntu

    #scl
    export PATH=$PATH:/home/fundou/program/vcs2016/scl/2017.12/linux64/bin

    alias vcs2016="lmgrd -c /home/fundou/program/vcs2016/Synopsys_lic.dat -l ~/program/vcs2016/vcs_lic.log"

    执行 vcs2016 遇到问题:lmgrd: No such file or directory

    sudo apt update 

    apt-get install lsb-core

    安装后应该可以正常运行了

    运行 vcs 出现

    bin/sh: Illegal option -h

    如下解决

    sudo rm -f /bin/sh
    sudo ln -s /bin/bash /bin/sh

    现在 vcs 可用

    dve不可用

    dve.exe  No such file or directory

    sudo apt install libsm-dev:i386

    sudo apt install libsm-dev  ( 无效 )

    接着 提示 error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory

    sudo apt install lib32ncurses5

    接着 提示 error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

    sudo apt install  lib32stdc++6   ( 无效 )

    error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory

    sudo apt install libx11-6:i386

    接着 提示  libXext.so.6: cannot open shared object file: No such file or directory

    sudo apt install libxext6  ( 无效 )

    sudo apt install lib32z1  ( 无效 )

    sudo apt install libxext-dev  ( 无效 )

    sudo apt install libxext-dev:i386

    dve界面可以开启了

    记录以下遇到的问题

    下载的资源中,没有 scl2017 的相关文件,需要从其他地方下载 scl 2017 ,把对应文件和 vcs 的安装文件放在统一目录下,再执行脚本。

    如下两个文件

    scl_v2017.12_common.spf

    scl_v2017.12_linux64.spf

    /bin/csh: bad interpreter:No such file or directory

    解决办法:

    sudo apt-get install csh

    后续

    安装完之后,每次打开前运行 vcs2016 启动证书服务

    但是,会因为 gcc 的问题无法运行

    实测 已知可使用 gcc 4.8 g++ 4.8

    sudo apt install gcc-4.8-multilib

    sudo apt install g++-4.8-multilib

    cd  /usr/bin

    ls -al |grep gcc 查看 gcc 连接版本

    sudo rm gcc

    sudo ln -s gcc-4.8 gcc

    sudo ln -s g++-4.8 g++

    gcc -v 确认版本

    在执行时 使用

    vcs -full64 *.v -LDFLAGS -Wl,--no-as-needed -debug_all -R -gui -l top_log

    可解决

    引用自 https://github.com/freechipsproject/rocket-chip/issues/21

    0、运行lmgrd 提示no such file and directory

    需要依赖包 lsb-core and lsb-base

    解决办法:

    apt-get install lsb-core

    https://blog.51cto.com/carywu/421394

    0、运行- lmgrd -c licen.dat,Can't make directory /usr/tmp/.flexlm, errno: 2(No such file or directory)

    类似解释该错误不影响运行,仅log文件受影响,http://china.xilinx.com/support/answers/62248.html

    原因 /usr/tmp  被 /var/tmp 替换

    1、运行vcs出错,信息/bin/sh: Illegal option -h

    修改ubuntu 上的/bin/sh
    在ubuntu上,/bin/sh默认是链接到/bin/dash的,当你从源代码编译软件的时候,dash可能会导致一些错误,至少我遇到过 类似问题,因此,我把/bin/sh的连接改为了/bin/bash

    解决办法:
    sudo rm -f /bin/sh
    sudo ln -s /bin/bash /bin/sh

    http://blog.eetop.cn/blog-955266-55853.html

    2、运行dve提示error while loading shared libraries: libSM.so.6: cannot open shared object file: No such file or directory

    解决办法:

    sudo apt-get install libsm-dev:i386

    https://blog.csdn.net/weixin_31317775/article/details/78717941

  • 相关阅读:
    Socket的应用案例
    利用XStream实现对象XML话
    策略模式
    深入理解Java引用类型
    java 消息机制 ActiveMQ入门实例
    activity工作流表结构分析
    Spring MVC 之 Hello World
    如何发布Web项目到互联网
    ionic开发ios app
    ionic开发android app步骤
  • 原文地址:https://www.cnblogs.com/fundou/p/10872992.html
Copyright © 2011-2022 走看看