因为现在大部分人通过虚拟机进行开发。
编写代码在 windows 下,编译代码在 linux 下。
编译与打包的时候出现不通过的问题, 一般是由 rpm 打包脚本 sepc文件为dos 文件格式引起。
我们可以通过下面的命令
find -type f -exec grep -q -P "\r\n" {} \; -print
查看确认是不工程目录下为dos格式的文件。
如果有
通过 dos2unix 进行转换。
再次进行编译打包。
因为现在大部分人通过虚拟机进行开发。
编写代码在 windows 下,编译代码在 linux 下。
编译与打包的时候出现不通过的问题, 一般是由 rpm 打包脚本 sepc文件为dos 文件格式引起。
我们可以通过下面的命令
find -type f -exec grep -q -P "\r\n" {} \; -print
查看确认是不工程目录下为dos格式的文件。
如果有
通过 dos2unix 进行转换。
再次进行编译打包。