shopify-cli-2.1.0.deb=>new shopify cli包预安装脚本子流程返回错误退出状态1

kpbpu008  于 2021-09-29  发布在  Java
关注(0)|答案(1)|浏览(377)

我正在尝试安装shopify-cli-2.1.0.deb,但收到错误。我已经执行了命令sudogem update--system3.1.3sudoapt-get-install-y ruby-dev
但是,当我尝试使用以下命令安装shopify-cli-2.1.0.deb时,我收到一个错误:

``

**sudo apt install /home/daviamaral/Downloads/shopify-cli-2.1.0.deb**

To see why this extension failed to compile, please check the mkmf.log which can
 be found here:

  /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.7.0/gems/ffi-1.15.3 for inspe
ction.
Results logged to /var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.3/g
em_make.out
dpkg: error processing archive /home/daviamaral/Downloads/shopify-cli-2.1.0.deb 
(--unpack):
 new shopify-cli package pre-installation script subprocess returned error exit 
status 1
Errors were encountered while processing:
 /home/daviamaral/Downloads/shopify-cli-2.1.0.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

当我进入/var/lib/gems/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.15.3/mkmf.log时

"pkg-config --exists libffi"
package configuration for libffi is not found
"gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.7.0 -I/usr/include/ruby-2.7.0/ruby/backward -I/usr/include/ruby-2.7.0 -I. -Wdate-time -D_FORTIFY_SOURCE=2   -g -O2 -fdebug-prefix-map=/build/ruby2.7-2E2p8v/ruby2.7-2.7.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c  -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -lruby-2.7  -lm   -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char**argv)
4: {
5:   return !!argv[argc];
6: }
/* end */
zaqlnxep

zaqlnxep1#

在我写下这个问题后,我陷入了沉思,意识到问题已经显示在日志中了!
==>找不到libffi的包配置
是的,对我来说,这只是一个gcc环境,所以我尝试了sudo-apt-get-install-gcc,它在ubuntu中为我工作!
我将把这个问题保留在这里,因为将来可能会成为另一个人的问题!

相关问题