尝试安装 CVS 时,出现以下错误:
bash-3.2$ ls
cvs-1.12.13-sol10-x86-local cvs-1.12.13-sol10-x86-local.gz local.cshrc local.login local.profile
bash-3.2$ pfexec /usr/sbin/pkgadd –d /dev2/home/ashish cvs-1.12.13-sol10-x86-local.gz
pkgadd: ERROR: no packages were found in /var/spool/pkg
bash-3.2$ pfexec /usr/sbin/pkgadd –d /dev2/home/ashish/cvs-1.12.13-sol10-x86-local.gz
pkgadd: ERROR: no packages were found in /var/spool/pkg
bash-3.2$ pfexec /usr/sbin/pkgadd –d /dev2/home/ashish
pkgadd: ERROR: no packages were found in /var/spool/pkg
请建议可能缺少什么,我还能做什么/尝试什么?
答案1
据我所知,pkgadd 无法处理 gzip 版本。解压后,检查它是否真的是带有文件 cvs-1.12.13-sol10-x86-local 的数据流包,或者 pkgchk cvs-1.12.13-sol10-x86-local。然后尝试 /usr/sbin/pkgadd –d cvs-1.12.13-sol10-x86-local
...好吧,考虑更新到 Solaris 11 并安装 developer/versioning/cvs ;)