Linux中遇到的问题及解决办法

  • abc is not in the sudoers file.
http://jingyan.baidu.com/article/2a1383284bb3e8074a134f2d.html
%su
%visudo
找到root ALL=(ALL) ALL,在下面添加一行xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称.按Esc退出编辑模式
输入   :wq 保存退出(包含冒号)
%exit
  • /bin/sh: 1: makedepend: not found
makedepend是个工具,下载安装包安装即可,参考 http://www.linuxfromscratch.org/blfs/view/7.4/x/makedepend.html
或http://askubuntu.com/questions/433070/makedepend-command-not-found
  • centos中输入apt-get报错 apt-get: command not found
因为CentOS的软件安装工具不是apt-get  是yum
  • No package 'xproto' found
到此处http://xorg.freedesktop.org/archive/individual/proto/ 下载xproto包进行安装即可

  • /bin/sh: 1: gccmakedep: not found make: *** [depend] 错误 127
wget ftp://www.hensa.ac.uk/sites/distfiles.macports.org/gccmakedep/gccmakedep-1.0.3.tar.bz2
tar jxf gccmakedep-1.0.3.tar.bz2 && cd ~/gccmakedep-1.0.3 && ./configure && make && sudo make install


wget https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.gz
tar -xzvf protobuf-2.6.1.tar.gz
cd protobuf-2.6.1 && ./configure && make && sudo make install

wget http://download.zeromq.org/zeromq-4.0.5.tar.gz
tar -xzvf zeromq-4.0.5.tar.gz
cd zeromq-4.0.5 && ./configure && make && sudo make install
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值