gpt4 book ai didi

perl - 图片::Magick 安装错误 127

转载 作者:行者123 更新时间:2023-12-04 19:03:38 25 4
gpt4 key购买 nike

当我尝试在 Ubuntu 系统上通过 CPAN 安装 Image::Magick 时,我收到 127 错误。我不知道出了什么问题。以下是我得到的文本:

cpan[1]> install Image::Magick
Reading '/root/.cpan/Metadata'
Database was generated on Fri, 15 Nov 2013 21:17:02 GMT
Running install for module 'Image::Magick'
Running make for J/JC/JCRISTY/PerlMagick-6.86.tar.gz
Checksum for /root/.cpan/sources/authors/id/J/JC/JCRISTY/PerlMagick-6.86.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE

CPAN.pm: Building J/JC/JCRISTY/PerlMagick-6.86.tar.gz

Checking if your kit is complete...

Looks good

Warning (mostly harmless): No library found for -lMagickCore-6.Q16

Generating a Unix-style Makefile

Writing Makefile for Image::Magick

Writing MYMETA.yml and MYMETA.json

cp Magick.pm blib/lib/Image/Magick.pm

AutoSplitting blib/lib/Image/Magick.pm (blib/lib/auto/Image/Magick)

/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap Magick.xs > Magick.xsc && mv Magick.xsc Magick.c

cc -c -I/usr/local/include/ImageMagick-6 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/usr/include/libxml2 -I"/usr/include/ImageMagick-6" -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/freetype2 -fopenmp -g -O2 -Wall -pthread -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16 -O2 -g -DVERSION=\"6.86\" -DXS_VERSION=\"6.86\" -fPIC "-I/usr/lib/perl/5.14/CORE" -D_LARGE_FILES=1 -DHAVE_CONFIG_H Magick.c

/bin/sh: 1: cc: not found

make: *** [Magick.o] Error 127

JCRISTY/PerlMagick-6.86.tar.gz
/usr/bin/make -- NOT OK

Running make test

Can't test without successful make

Running make install

Make had returned bad status, install seems impossible

Failed during this command:

JCRISTY/PerlMagick-6.86.tar.gz : make NO

最佳答案

错误在这里:

/bin/sh: 1: cc: not found

尝试:
sudo apt-get install build-essential

在从 CPAN 安装之前。

您需要最新版本吗?您应该能够使用 apt-get 获得稍旧的版本。

关于perl - 图片::Magick 安装错误 127,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20027302/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com