2014-07-11 29 views
0

我正在嘗試在Solaris10x86上使用pkgmk創建軟件包。我Makefile.am運行良好,直到我打這個命令:使用pkgmk在solaris 10上創建軟件包

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 

回答

1

什麼問題是在於,這些文件沒有使用Unix行結尾這是一個大諾諾。所以我所做的是使用dos2unix file > tempFile; mv tempFile file,並修復它。