[英]'Package swig is not installed' when installing with dpkg, but visible with swig -version in terminal?
I've been working at this for a while now, and I feel like I'm going in circles.我已经在这方面工作了一段时间,我觉得我在绕圈子。 I'm trying to install oresat-star-tracker using dpkg, and it depends on swig version 4.0.1 or greater.
我正在尝试使用 dpkg 安装 oresat-star-tracker,它取决于 swig 版本 4.0.1 或更高版本。 Apt doesn't have the newer versions of swig, so I installed swig manually.
Apt 没有更新版本的 swig,所以我手动安装了 swig。 I've verified it's installed correctly with
我已经验证它已正确安装
debian@beaglebone:~$ swig -version
SWIG Version 4.0.2
Compiled with g++ [armv7l-unknown-linux-gnueabihf]
Configured options: +pcre
Please see http://www.swig.org for reporting bugs and further information
debian@beaglebone:~/startracker$
When I try to install oresat-star-tracker, I get the following error当我尝试安装 oresat-star-tracker 时,出现以下错误
debian@beaglebone:~$ sudo dpkg -i oresat-star-tracker_0.1.1-0_armhf.deb
(Reading database ... 129189 files and directories currently installed.)
Preparing to unpack oresat-star-tracker_0.1.1-0_armhf.deb ...
Unpacking oresat-star-tracker (0.1.1-0) over (0.1.1-0) ...
dpkg: dependency problems prevent configuration of oresat-star-tracker:
oresat-star-tracker depends on swig (>= 4.0.1); however:
Package swig is not installed.
I've also verified that swig is on the $PATH with我还验证了 swig 在 $PATH 上
debian@beaglebone:~$ which swig
/usr/bin/swig
and even manually added /usr/bin/swig甚至手动添加 /usr/bin/swig
debian@beaglebone:~$ echo $PATH
/usr/bin/swig:/home/debian/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
I'm not sure how relevant this is, but I don't see swig in the output of我不确定这有多相关,但我看不到 output 中的痛饮
dpkg-query --list
Any insight on how I can make my installed swig accessible when installing with dpkg?关于在使用 dpkg 安装时如何使已安装的 swig 可访问的任何见解?
I think you may have installed swig without using a.deb or dpkg.我想你可能在没有使用 a.deb 或 dpkg 的情况下安装了 swig。
If you compiled it, or just adding the binary to your path, apt/dpkg will not know about it, as they only track installed deb packages in the system.如果你编译了它,或者只是将二进制文件添加到你的路径中,apt/dpkg 将不会知道它,因为它们只跟踪系统中安装的 deb 包。
You will have 2 options here(3 if you don't need to use apt):您将有 2 个选项(如果您不需要使用 apt,则为 3 个):
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.