当前位置:   article > 正文

ubuntu18.04使用相关_ubuntu readline library not found

ubuntu readline library not found

记录ubuntu18.04使用过程中遇到的问题,方便下次遇到快速解决。

1 apt-get install 相关

问题1: C shared or static library ‘readline’ not found
解决方案:

sudo apt-get install libreadline-dev
  • 1

问题2:ERROR: Dependency “libudev” not found, tried pkgconfig
解决方案:

sudo apt-get install libudev-dev
  • 1

问题3:ERROR: Dependency “libsystemd” not found, tried pkgconfig
解决方案:

sudo apt-get install libsystemd-dev
  • 1

问题4:输入法中没有中文
解决方案:

sudo apt-get install ibus-pinyin 
  • 1

问题5:Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
解决方案:说明之前使用apt时出现异常,没有正常关闭,还在运行,使用ps 和 grep查找apt的pid,并使用kill杀死掉。

ps afx|grep apt
sudo kill pid
  • 1
  • 2

pid为查询到的异常进程id。

2 sublime-text 安装

按顺序执行以下shell命令:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
sudo apt-get update
sudo apt-get install sublime-text
  • 1
  • 2
  • 3
  • 4

3 git 设置代理与取消代理

1 设置代理

#http代理
git config --global http.proxy 'socks5://127.0.0.1:1080'
#https代理
git config --global https.proxy 'socks5://127.0.0.1:1080'
  • 1
  • 2
  • 3
  • 4

2 取消代理

#取消http代理
git config --global --unset http.proxy
#取消https代理
git config --global --unset https.proxy
  • 1
  • 2
  • 3
  • 4

4 设置wget代理

sudo vim /etc/wgetrc
  • 1

末尾追加内容:

http_proxy = http://127.0.0.1:7890
https_proxy = http://127.0.0.1:7890
use_proxy = on
wait = 15
  • 1
  • 2
  • 3
  • 4
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/303559
推荐阅读
相关标签
  

闽ICP备14008679号