linux-添加公钥&

文章讲的很清楚:

https://blog.csdn.net/github_35160620/article/details/52082478

文章中涉及连个指令;

http://man.linuxde.net/apt-key

apt-key


pi@raspberrypi:~ $ apt-key list
/etc/apt/trusted.gpg
--------------------
pub   2048R/90FDDD2E 2012-04-01
uid                  Mike Thompson (Raspberry Pi Debian armhf ARMv6+VFP)
sub   2048R/5373DC6C 2012-04-01

pub   2048R/7FA3303E 2012-06-17
uid                  Raspberry Pi Archive Signing Key
sub   2048R/EDD83D6C 2012-06-17

pub   4096R/C857C906 2014-11-21 [expires: 2022-11-19]
uid                  Debian Security Archive Automatic Signing Key (8/jessie)

pub   4096R/46925553 2012-04-27 [expires: 2020-04-25]
uid                  Debian Archive Automatic Signing Key (7.0/wheezy)
 

gpg

---------------------------------------------
/root/SW/cmake-3.6.2/Bootstrap.cmk/cmake: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found 

lib64 ls -l  /usr/lib64/libstdc++.so.6.0
lrwxrwxrwx 1 root root 19 Sep  6 16:29 /usr/lib64/libstdc++.so.6.0 -> libstdc++.so.6.0.25
发现是一个软连接

  1. strings /usr/lib64/libstdc++.so.6 | grep 'CXXABI' 
  2. find / -name "libstdc++.so.*"


/root/gcc-8.1.0/gcc-8.1-sample/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6
/root/gcc-8.1.0/gcc-8.1-sample/prev-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.25
/root/gcc-8.1.0/gcc-8.1-sample/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6
/root/gcc-8.1.0/gcc-8.1-sample/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.25
/root/gcc-8.1.0/gcc-8.1-sample/stage1-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6
/root/gcc-8.1.0/gcc-8.1-sample/stage1-x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.25
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/armv4t/usr/lib/libstdc++.so.6
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/armv4t/usr/lib/libstdc++.so.6.0.10
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/thumb2/usr/lib/libstdc++.so.6
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/thumb2/usr/lib/libstdc++.so.6.0.10
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/usr/lib/libstdc++.so.6
/usr/local/arm-2009q1/arm-none-linux-gnueabi/libc/usr/lib/libstdc++.so.6.0.10
/usr/local/lib64/libstdc++.so.6.0.25-gdb.py
/usr/local/lib64/libstdc++.so.6
/usr/local/lib64/libstdc++.so.6.0.25
/usr/lib64/libstdc++.so.6.0
/usr/lib64/libstdc++.so.6
/usr/lib64/libstdc++.so.6.0.25
/usr/lib64/libstdc++.so.6.0.13


其中/usr/local/src/gcc-build-6.3.0是我们升级gcc时的输出目录,libstdc++.so.6.0.22就是我们的新版本的动态库

这个我不清楚该怎么找,我是按照网上别人的目录来选

  1. cp /usr/local/src/gcc-6.3.0/gcc-build-6.3.0/i686-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.22 /usr/lib/
  2.  
  3. cd /usr/lib
  4. rm -rf libstdc++.so.6
  5. ln -s libstdc++.so.6.0.22 libstdc++.so.6
  6.  
  7. strings /usr/lib/libstdc++.so.6 | grep 'CXXABI'

会发现新的so加了进去!

知识点:根据错误猜测是gcc 的版本不对,过低;  && strings

补充:中间有como这个东西不认识,后来发现是上面那个软连接没有创建成功!!!

 

 

 

 

 

 

你可能感兴趣的:(Linux)