$ sudo apt install g++
[sudo] password for chenkc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.2) ...
$ g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
为了方便,在家目录下创建一个目录并进入该目录(任意目录下都可以)。
$ pwd
/home/chenkc
$ mkdir fastText
$ cd fastText/