veket官方网站论坛

zhushengm 发表于 2023-9-19 23:15

v24 917版本,安装perl包提示找不到g++

报错如下
root@veket:~/下载/PAR-Packer-1.059$ perl Makefile.PL      perl Makefile.PL
      make
      make test
      make install
Can't exec "cc": 没有那个文件或目录 at /root/.cache/activestate/60b08778/lib/perl5/5.36.0/ExtUtils/CBuilder/Base.pm line 342.
No compiler found, won't generate 'script/parl!
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
Skip blib/lib/PAR/Filter.pm (unchanged)
Skip blib/lib/PAR/Packer.pm (unchanged)
Skip blib/lib/PAR/Filter/Obfuscate.pm (unchanged)
Skip blib/lib/PAR/Filter/PatchContent.pm (unchanged)
Skip blib/lib/App/Packer/PAR.pm (unchanged)
Skip blib/lib/PAR/StrippedPARL/Base.pm (unchanged)
Skip blib/lib/PAR/Filter/Bytecode.pm (unchanged)
Skip blib/lib/pp.pm (unchanged)
Skip blib/lib/PAR/Filter/PodStrip.pm (unchanged)
Skip blib/lib/PAR/Filter/Bleach.pm (unchanged)
make: 进入目录“/root/下载/PAR-Packer-1.059/t/data”
Skip ../blib/lib/Double/Colon/Foo/Bar/Quux.pm (unchanged)
Skip ../blib/lib/Double/Colon/Barnie.pm (unchanged)
Skip ../blib/lib/Double/Colon/Fred.pm (unchanged)
Skip ../blib/lib/XSFoo.pm (unchanged)
Skip ../blib/lib/Double/Colon.pm (unchanged)
Skip ../blib/lib/Myfile.pm (unchanged)
Running Mkbootstrap for XSFoo ()
chmod 644 "XSFoo.bs"
"/root/.cache/activestate/60b08778/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- XSFoo.bs ../blib/lib/auto/XSFoo/XSFoo.bs 644
cc -c-I. -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/root/.cache/activestate/60b08778/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/root/.cache/activestate/60b08778/lib/perl5/5.36.0/x86_64-linux/CORE"   XSFoo.c
/bin/sh:行1: cc:未找到命令
make: *** 错误 127
make: 离开目录“/root/下载/PAR-Packer-1.059/t/data”
make: *** 错误 2
make: 进入目录“/root/下载/PAR-Packer-1.059/t/data”
"/root/.cache/activestate/60b08778/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- XSFoo.bs ../blib/lib/auto/XSFoo/XSFoo.bs 644
cc -c-I. -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/root/.cache/activestate/60b08778/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/root/.cache/activestate/60b08778/lib/perl5/5.36.0/x86_64-linux/CORE"   XSFoo.c
/bin/sh:行1: cc:未找到命令
make: *** 错误 127
make: 离开目录“/root/下载/PAR-Packer-1.059/t/data”
make: *** 错误 2
make: 进入目录“/root/下载/PAR-Packer-1.059/t/data”
"/root/.cache/activestate/60b08778/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- XSFoo.bs ../blib/lib/auto/XSFoo/XSFoo.bs 644
cc -c-I. -fPIC -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/root/.cache/activestate/60b08778/usr/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2   -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/root/.cache/activestate/60b08778/lib/perl5/5.36.0/x86_64-linux/CORE"   XSFoo.c
/bin/sh:行1: cc:未找到命令
make: *** 错误 127
make: 离开目录“/root/下载/PAR-Packer-1.059/t/data”
make: *** 错误 2

报错/bin/sh:行1: cc:未找到命令
我查了一下是找不到gcc?
可是
系统集成了gcc和g++的

lrxrwc 发表于 2023-9-20 00:08

http://www.lucky8k.com/thread-134607-1-1.html
安装这个包才有的。

zhushengm 发表于 2023-9-20 22:28

lrxrwc 发表于 2023-9-20 00:08
http://www.lucky8k.com/thread-134607-1-1.html
安装这个包才有的。

我确定开发包挂载了
还是报错

yaoqi 发表于 2023-9-20 22:42

zhushengm 发表于 2023-9-20 22:28
我确定开发包挂载了
还是报错

sfs?
我这里正常用gcc

yaoqi 发表于 2023-9-20 22:43

zhushengm 发表于 2023-9-20 22:28
我确定开发包挂载了
还是报错

你直接输入gcc
可以?
页: [1] 2 3 4
查看完整版本: v24 917版本,安装perl包提示找不到g++