我有ubuntu docker容器。我在那里安装了一些在Windows中为ubuntu编译的应用程序。
它不执行,我想检查系统体系结构和文件之间是否不匹配。我尝试这个命令
> file myapp
但不幸的是输出是
> bash: file: command not found
确实,在bin目录中没有“文件”命令。是在其他地方还是我需要安装它?
您是否
—
Koala Yeung '02
coreutils
已将包装安装在您的容器中?尝试sudo apt-get install coreutils
看看结果。
@KoalaYeung它不在
—
Zanna
core-utils
,包是file
@Zanna当程序是核心实用程序时,其结果是否
—
乔治·乌德森
/sbin/file
正确?
@George在我看来就像
—
Zanna
core-utils
东西在里面/bin
which file
,如果没有结果,那么它不存在安装它..记得你使用docker container
它可能没有你所需要的!