我正在尝试在Solaris10x86上使用pkgmk创建一个包。我的Makefile.am运行正常,直到我点击此命令:
pkgmk -o -b $(HOME)/solbuild/pkg_solaris
然后我收到此错误:
## Building pkgmap from package prototype file.
ERROR in prototype:
> found in search pathinfo
> found in search pathuest
> found in search pathtinstall
> found in search pathtremove
> found in search pathinstall
> found in search pathremove
pkgmk: ERROR: unable to build pkgmap from prototype file
## Packaging was not successful.
这个错误是什么意思?我似乎无法找到一个明确的答案。我的原型找到了我的文件,但它仍然失败了。
如果有帮助,这是我的原型文件:
i pkginfo
i request
i postinstall
i postremove
i preinstall
i preremove
d none start/opt/path/directory 0755 root sys
f none start/opt/path/to/file 0400 root sys
f none start/opt/path/to/file2 0744 root sys
d none start/opt/path/directory2 0755 root sys
f none start/opt/path/to/file3 0755 root sys
f none start/opt/path/to/file4 0744 root sys
d none start/opt/path/to/direcotory3 0755 root sys
e none start/opt/path/to/anotherfile 0744 root sys
e none start/opt/path/to/anotherfile2 0744 root sys
答案 0 :(得分:1)
问题是这些文件没有使用unix行结尾,这是一个很大的nono。所以我所做的就是用dos2unix file > tempFile; mv tempFile file
来修复它。