(原创)解决X86_64使用Primetime时依赖库报错
运行以下代码即可,注意,相关路径如果不一致,根据自己实际的修改。
sudo apt-get install -y wget wget https://myfpga.cn/download/libraries/libpng12.so.0 sudo mkdir /usr/lib/x86_64-linux-gnu/ sudo mv libpng12.so.0 /usr/lib/x86_64-linux-gnu/ wget https://myfpga.cn/download/libraries/zlib-1.2.12.tar.gz tar zxf zlib-1.2.* rm -rf tar zxf zlib-1.2.*.gz cd zlib-1.2.* ./configure make && make install cp /usr/local/lib/libz.so.1.2.* /lib/x86_64-linux-gnu/ cp /usr/local/lib/libz.so.1.2.12 /usr/synopsys/pts/O-2018.06-SP1/linux64/pt/shlib/ cd /usr/synopsys/pts/O-2018.06-SP1/linux64/pt/shlib/ mv libz.so.1 libz.so.1.bak sudo cp libz.so.1.12 libz.so.1 #以下是测试内容,不需要运行 cp /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libz.so.1.bak rm -rf /lib/x86_64-linux-gnu/libz.so.1 mv /lib/x86_64-linux-gnu/libz.so.1.2.12 /lib/x86_64-linux-gnu/libz.so.1 mv /usr/synopsys/pts/O-2018.06-SP1/linux64/pt/shlib/libz.so.1 /usr/synopsys/pts/O-2018.06-SP1/linux64/pt/shlib/libz.so.1.bak rm -rf cp /lib/x86_64-linux-gnu/libz.so.1 /usr/synopsys/pts/O-2018.06-SP1/linux64/pt/shlib/libz.so.1
然后问题成功解决!
/usr/synopsys/lc/O-2018.06-SP1/linux64/lc/bin/../../../linux64/lc/bin/lc2_shell_exec: /usr/synopsys/lc/O-2018.06-SP1/linux64/lc/bin/../shlib/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib/x86_64-linux-gnu/libpng16.so.16)
等问题的解决也同理。
相关报错信息:
/usr/synopsys/pts/O-2018.06-SP1/linux64/syn/bin/pt_shell_exec: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
/usr/synopsys/pts/O-2018.06-SP1/linux64/syn/bin/pt_shell_exec: /usr/synopsys/pts/O-2018.06-SP1/linux64/pt/shlib/libz.so.1: version `ZLIB_1.2.9' not found (required by /lib/x86_64-linux-gnu/libpng16.so.16)