Use CentOS7 some problems

  • Install pingyin
(su)
yum insatll inus-libpinyin
  • [sudo]password for xxx;
    Sorry,try again.
    WHY???
(su)
yum install sudo

or

(su)
yum install make
yum install gcc
  • Do not directly use yum remove []!!!
    It will remove all package depanded.

  • Wanna install g++, but i cant find it.
    the name of g++ in centos7 is gcc-c++
    so, you should use the commond

sudo yum install gcc-c++
sudo yum install gcc-c++.x86_64

if your machine is 32bit, you should install gcc-c++.i686, otherwise just do like me.
and the gcc-c++.x86_64 will be installed by installing gcc.

  • flush DNS cache
sudo /etc/init.d/network restart

it can flush hosts

  • How to install pip??
sudo yum -y install epel-release
sudo yum -y install python-pip
pip install --upgrade pip
  • How to mixed-code cpp and lua ?
g++ demo.cc -o demo -I /opt/lua-5.4.4/src -llua -ldl
  • How to upgrade the version of lua in linux??
    The default version of lua in linux is 5.1.4, the default path of lua in linux is /usr/bin, and the path of lua(5.4.4 version) is /usr/local/bin. If u want to upgrade it, u should check PATH, included /usr/local/bin and is at the front of /usr/bin or not.
echo $PATH

And it included, run the following

. /.bash_profile

And not included, add the following at the front of export PATH in ~/.bash_profile

PATH=/usr/local/bin:$PATH

and run the following

. /.bash_profile

check the version of lua

lua -v
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值