Problem compiling IM 6.5.4-8 in Virtual Server

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
stel

Problem compiling IM 6.5.4-8 in Virtual Server

Post by stel »

Hello,
(1and1.fr CentOS 5 + Plesk 9)

after :
./configure --prefix************* --without-perl --without-ttf

I was trying to compile ImageMagick 6.5.4-8 and received following error:

[root@s15343137 ImageMagick-6.5.4-8]# ./configure --prefix=/root/ImageMagick-6.5.4-8 --without-perl --without-ttf
configure: WARNING: unrecognized options: --without-ttf
configuring ImageMagick 6.5.4-8
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... //bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/ImageMagick-6.5.4-8':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@s15343137 ImageMagick-6.5.4-8]#

Can you help me please ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by magick »

Use --without-freetype instead of --without-ttf.

ImageMagick requires a compiler to build. Your system apparently does not have on installed.
stel

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by stel »

thank for your help.
I have a same problem

[root@s15343137 ImageMagick-6.5.4-9]# ./configure --prefix=/root/ImageMagick-6.5.4-9 --without-perl --without-freetype
configuring ImageMagick 6.5.4-9
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... //bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/root/ImageMagick-6.5.4-9':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
[root@s15343137 ImageMagick-6.5.4-9]#
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by magick »

ImageMagick requires a compiler to build. Your system apparently does not have one installed.
stel

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by stel »

How I can install it ?
Do you have a name ?
per SSH or plesk ?

thank you
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by magick »

We advise users that have problems with ImageMagick. not on how to install compilers with Plesk. Posting your problem to a Plesk discussion group is your most promising path to getting help.
stel

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by stel »

Thank, ...
I have installed GCC with this line :

Code: Select all

# yum install gcc gcc-c++ autoconf automake
and it working ; )

1/ but during the ImageMagick compilation, I got this message:
I have done well to say yes?

Code: Select all

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID *****
Importing GPG key ***** "CentOS-5 Key (CentOS 5 Official Signing Key) <centos-5-key@centos.org>" from http://update.onlinehome-server.info/distribution/centos/RPM-GPG-KEY-CentOS-5
Is this ok [y/N]: y
2/ I almost had that "no" at checking and value!
is this normal and can I install ImageMagick or do I have to reinstall something else ?
thank you very much

Here is the long list of no >>

Code: Select all

checking for LCMS...
checking lcms.h usability... no
checking lcms.h presence... no
checking for lcms.h... no
checking lcms/lcms.h usability... no
checking lcms/lcms.h presence... no
checking for lcms/lcms.h... no
checking for cmsOpenProfileFromMem in -llcms... no
checking if LCMS package is complete... no
-------------------------------------------------------------
checking for LQR... no

-------------------------------------------------------------
checking for OPENEXR... no

-------------------------------------------------------------
checking for PNG...
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking for png_get_io_ptr in -lpng... no
checking if PNG package is complete... no
-------------------------------------------------------------
checking for TIFF...
checking tiff.h usability... no
checking tiff.h presence... no
checking for tiff.h... no
checking tiffio.h usability... no
checking tiffio.h presence... no
checking for tiffio.h... no
checking for TIFFOpen in -ltiff... no
checking for TIFFClientOpen in -ltiff... no
checking for TIFFIsByteSwapped in -ltiff... no
checking for TIFFReadRGBATile in -ltiff... no
checking for TIFFReadRGBAStrip in -ltiff... no
checking if TIFF package is complete... no
-------------------------------------------------------------
checking for WMF...
checking for libwmf/ipa.h... no
checking if WMF package is complete... no
-------------------------------------------------------------
checking for ImageMagick delegate programs...
./configure: line 42857: test: -gt: unary operator expected
checking for autotrace... autotrace
checking for mplayer... mplayer
checking for ... no
checking for bzip2... /usr/bin/bzip2
checking for xdg-open... xdg-open
checking for ralcgm... ralcgm
checking for cat... //bin/cat
checking for ufraw-batch... ufraw-batch
checking for dot... dot
checking for dvips... dvips
checking for echo... //bin/echo
checking for xterm... xterm
checking for fig2dev... fig2dev
checking for convert... convert
checking for display... display
checking for mogrify... mogrify
checking for gnuplot... gnuplot
checking for ra_pfm... ra_pfm
checking for hp2xx... hp2xx
checking for html2ps... html2ps
checking for ilbmtoppm... ilbmtoppm
checking for ppmtoilbm... ppmtoilbm
checking for lp... no
checking for lpr... lpr
checking for uncompress... /usr/bin/uncompress
checking for compress... /usr/bin/compress
checking for gimp... gimp
checking for groff... /usr/bin/groff
checking for ffmpeg... ffmpeg
checking for ffmpeg... ffmpeg
checking for mv... //bin/mv
checking for pcl6... pcl6
checking for pgpv... pgpv
checking for povray... povray
checking for gsx... no
checking for gsc... no
checking for gs... no
checking for rawtorle... rawtorle
checking for rm... //bin/rm
checking for scanimage... scanimage
checking for enscript... enscript
checking for wmf2eps... wmf2eps
checking for curl... /usr/bin/curl
checking for gxps... gxps
checking for gzip... //bin/gzip
checking for Ghostscript fonts directory... not found!
checking for gnutar... no
checking for gtar... gtar
checking for perl... perl
checking for rpmbuild... no
checking for rpm... rpm
checking for 7za... no
checking for zip... no
-------------------------------------------------------------
Update ImageMagick configuration
configure: creating ./config.status
config.status: creating config/configure.xml
config.status: creating config/delegates.xml
config.status: creating config/ImageMagick.rdf
config.status: creating config/MagickCore.dox
config.status: creating config/MagickWand.dox
config.status: creating config/type-ghostscript.xml
config.status: creating config/type-windows.xml
config.status: creating config/type.xml
config.status: creating ImageMagick.spec
config.status: creating Magick++/bin/Magick++-config
config.status: creating magick/ImageMagick.pc
config.status: creating Magick++/lib/ImageMagick++.pc
config.status: creating Magick++/lib/Magick++.pc
config.status: creating magick/Magick-config
config.status: creating magick/MagickCore-config
config.status: creating magick/MagickCore.pc
config.status: creating magick/version.h
config.status: creating Makefile
config.status: creating magick.sh
config.status: creating PerlMagick/Magick.pm
config.status: creating PerlMagick/Makefile.PL
config.status: creating PerlMagick/check.sh
config.status: creating utilities/animate.1
config.status: creating utilities/compare.1
config.status: creating utilities/composite.1
config.status: creating utilities/conjure.1
config.status: creating utilities/convert.1
config.status: creating utilities/display.1
config.status: creating utilities/identify.1
config.status: creating utilities/ImageMagick.1
config.status: creating utilities/import.1
config.status: creating utilities/mogrify.1
config.status: creating utilities/montage.1
config.status: creating utilities/stream.1
config.status: creating wand/MagickWand-config
config.status: creating wand/MagickWand.pc
config.status: creating wand/Wand-config
config.status: creating wand/Wand.pc
config.status: creating config/config.h
config.status: executing magick/magick-config.h commands
config.status: creating magick/magick-config.h - prefix MAGICKCORE for config/config.h defines
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default commands
config.status: executing MagickCore-config.in commands
config.status: executing Magick-config.in commands
config.status: executing MagickWand-config.in commands
config.status: executing Wand-config.in commands
config.status: executing Magick++-config.in commands
config.status: executing PerlMagick/check.sh.in commands
configure: WARNING: unrecognized options: --without-ttf

ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.

Host system type: x86_64-unknown-linux-gnu
Build system type: x86_64-unknown-linux-gnu

                  Option                        Value
-------------------------------------------------------------------------------
Shared libraries  --enable-shared=yes           yes
Static libraries  --enable-static=yes           yes
Module support    --with-modules=yes            yes
GNU ld            --with-gnu-ld=yes             yes
Quantum depth     --with-quantum-depth=16       16
High Dynamic Range Imagery
                  --enable-hdri=no              no

Delegate Configuration:
BZLIB             --with-bzlib=yes              no
Autotrace         --with-autotrace=no           no
DJVU              --with-djvu=yes               no
DPS               --with-dps=yes                no
FFTW              --with-fftw=yes               no
FlashPIX          --with-fpx=yes                no
FontConfig        --with-fontconfig=no          no
FreeType          --with-freetype=yes           no
GhostPCL          None                          pcl6 (unknown)
GhostXPS          None                          gxps (unknown)
Ghostscript       None                          gs (unknown)
Ghostscript fonts --with-gs-font-dir=default    none
Ghostscript lib   --with-gslib=no               no
Graphviz          --with-gvc=yes                no
JBIG              --with-jbig=yes               no
JPEG v1           --with-jpeg=yes               no
JPEG-2000         --with-jp2=yes                no
LCMS              --with-lcms=yes               no
LQR               --with-lqr=yes                no
Magick++          --with-magick-plus-plus=yes   yes
OpenEXR           --with-openexr=yes            no
PERL              --with-perl=no                no
PNG               --with-png=yes                no
RSVG              --with-rsvg=no                no
TIFF              --with-tiff=yes               no
Windows fonts     --with-windows-font-dir=      none
WMF               --with-wmf=yes                no
X11               --with-x=                     no
XML               --with-xml=no         no
ZLIB              --with-zlib=yes               no
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by magick »

is this normal and can I install ImageMagick or do I have to reinstall something else ?
Some ImageMagick formats depend on external delegate libraries such as JPEG. If you need JPEG support you must first install the JPEG and JPEG development RPMS and then reconfigure and reinstall ImageMagick. See http://www.imagemagick.org/script/advan ... lation.php.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Problem compiling IM 6.5.4-8 in Virtual Server

Post by anthony »

For Fedora systems the best way to install the compiler is...

sudo yum groupinstall "Development Tools"
sudo yum install rpmdevtool

Also install the development libraries (include files etc) for the extra software needed
freetype-devel, ghostscript-devel, libwmf-devel, jasper-devel, lcms-devel, bzip2-devel,
librsvg2, librsvg2-devel, liblpr-1, liblqr-1-devel

See IM Examples, APIs, Building ImageMagick RPMs for linux from SRPMs
http://www.imagemagick.org/Usage/api/#building

This is the way I build and install the latest IM, almost daily.
Though I modify the "ImageMagick.spec.in" file before creating the SRPM with the
configuration changes I want.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
stel

Re: Problem compiling IM 6.5.6-8 in Virtual Server

Post by stel »

Hello, I always have this problem!

Thank you antony,

Ok, I installed " sudo yum groupinstall " Development Tools " ",
But for " sudo yum install rpmdevtool ", I have this message:
(with root access and after download "ImageMagick-6.5.6-8.src.rpm") !!
can you help me ?
Thanks
audit_log_user_command(): Connection refused
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: update.onlinehome-server.info
* updates: update.onlinehome-server.info
* addons: update.onlinehome-server.info
* extras: update.onlinehome-server.info
base 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Setting up Install Process
Parsing package install arguments
No package rpmdevtool available.
Nothing to do
Post Reply