红联Linux门户
Linux帮助

MSys中使用configure出现无法找到pr错误解决方案

发布时间:2016-08-25 10:26:34来源:linux网站作者:dzxsk1988
使用mingw32编译ffmpeg的时候使用configure命令出现无法使用pr命令。
 
在官方的文档里面找到了:
4.13 I get "./configure: line <xxx>: pr: command not found" in MSys.
The standard MSys install doesn't come with pr. You need to get it from the coreutils package.
 
因此我在msys的 http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/上面下载了下载了coreutils-5.97-MSYS-1.0.11-snapshot.tar.bz2之后把bin目录下的内容全部拷贝到了msys下的bin下面,接着重新开一个msys,configure命令是可以了,结果make时候又遇见了如下的错误:
make: *** No rule to make target `libavdevice/libavdevice.a', needed by `all'.  Stop.
 
然后跟新make 到 3.81以上:make-3.81-MSYS-1.0.11-2.tar.bz2
编译成功了。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23605.html