0

我刚刚在我的 home/myname/gcc-4.9 目录中安装了 gcc4.9,我做了以下操作:

1. cd /home/myname/gcc-source (where i have to run the config script)
2. ./configure --prefix=/home/myname/gcc-4.9  (and flags) 
3. make && make install  
4. now all the lib, bin, include etc folders are in /home/myname/gcc-4.9  directory.

我不小心在 /home/myname/gcc-source/ 目录中做了一个 make clean ,它开始删除很多被制作的文件。

我的 gcc 还能用吗?我没有看到任何文件从 /home/myname/gcc-4.9 文件夹中被删除。

或者我应该再次执行 ./configure 和 make && make install 吗?

4

1 回答 1

0

我的 gcc 还能用吗?

是的!

make && make install由两部分组成:

  1. make- 编译(创建可执行文件)
  2. make install- 将编译后的可执行文件复制到适当的目录

make clean撤消结果make,但不触及结果make install(即您的程序保持安装状态)

于 2014-05-20T19:06:13.270 回答