- 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