Linux下源码安装

注意!!!!源码安装是需要有很强的编程能力,如果你是小白还是建议使用工具安装。

源码安装首先需要从相关渠道获得源码,得到源码后就可以使用以下三步进行安装。

执行configure,生成Makefile文件

# ./configure  --prefix=/path/to/somewhere 

--prefix=/path/to/somewhere   //该语句的意义为软件指定安装的位置

从Makefile中读取指令,编译源码

# make

安装软件到第一步的位置

# make install

参考文章:

https://www.cnblogs.com/benwu/articles/8436209.html 

https://www.cnblogs.com/downey-blog/p/10473893.html (部分讲述,介绍了优缺点)

http://linux.vbird.org/linux_basic/0520source_code_and_tarball.php (鸟哥私房菜)

https://blog.csdn.net/aa793336532/article/details/79796222 (.cpp文件转为.exe的过程)