当我尝试在 Ubuntu 16.04 64 位上安装 perl-tgicl 时遇到依赖性问题。
sudo dpkg -i perl-tgicl_2.1-1_all.deb
Selecting previously unselected package perl-tgicl.
(Reading database ... 229077 files and directories currently installed.)
Preparing to unpack perl-tgicl_2.1-1_all.deb ...
Unpacking perl-tgicl (2.1-1) ...
dpkg: dependency problems prevent configuration of perl-tgicl:
perl-tgicl depends on libfile-spec-perl (>= 0.10); however:
Package libfile-spec-perl is not installed.
Version of libfile-spec-perl on system, provided by perl-modules-5.22:all, is <none>.
dpkg: error processing package perl-tgicl (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.7.5-1) ...
Errors were encountered while processing:
perl-tgicl
答案1
您可以运行sudo gdebi perl-tgicl_2.1-1_all.deb
以安装依赖项。然后操作系统就可以构建 TGICL-2.1 了。(perl-tgicl_2.1-1_all.deb 将失败并出现相同的错误:libfile-spec-perl 版本。即该软件包是在 2010 年构建的:不同的 perl 版本。).... .... 安装了以下软件包:libfile-homedir-perl libfile-which-perl lib32z1
构建和安装 TGICL-2.1:
tar xvf TGICL-2.1.tar.gz
cd TGICL-2.1/
perl Build.PL
perl Build
sudo perl Build install
→ 这里没有问题,Ubuntu 16.04 - 64。