Segmentation fault PDF to jpg

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault PDF to jpg

Post by magick »

This forum is about ImageMagick, not how to administer your system. You will need to read the forums associated with your particular OS to find out how to install RPMS on your system.
omman95

Re: Segmentation fault PDF to jpg

Post by omman95 »

Ok, I do a apt-get install rpm. It's OK. I do again ./configure in the folder.

How I can see that it's OK?

I do convert 1.jpg 1.png
and it's result :

Code: Select all

convert: pas de délégué pour décoder ce format d'image `1.jpg' @ constitute.c/ReadImage/503.
convert: nom de fichier d'image absent `1.png' @ convert.c/ConvertImageCommand/2819.
After I do make and make install and I have this on the end of the result :

Code: Select all

chmod 644 Magick.bs
rm -f blib/arch/auto/Image/Magick/Magick.so
LD_RUN_PATH="/root/ImageMagick-6.5.6-1/PerlMagick/../magick/.libs:/root/ImageMagick-6.5.6-1/PerlMagick/../wand/.libs" cc  -L../magick/.libs -lMagickCore -L../wand/.libs -lMagickWand -shared -O2 -g -L/usr/local/lib  Magick.o  -o blib/arch/auto/Image/Magick/Magick.so    \
           -L/root/ImageMagick-6.5.6-1/PerlMagick/../magick/.libs -lMagickCore -L/root/ImageMagick-6.5.6-1/PerlMagick/../wand/.libs -lMagickWand -lperl -lm  \

/usr/bin/ld: cannot find -lperl
collect2: ld a retourné 1 code d'état d'exécution
make[3]: *** [blib/arch/auto/Image/Magick/Magick.so] Erreur 1
make[3]: quittant le répertoire « /root/ImageMagick-6.5.6-1/PerlMagick »
make[2]: *** [install-exec-perl] Erreur 2
make[2]: quittant le répertoire « /root/ImageMagick-6.5.6-1 »
make[1]: *** [install-am] Erreur 2
make[1]: quittant le répertoire « /root/ImageMagick-6.5.6-1 »
make: *** [install] Erreur 2
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault PDF to jpg

Post by magick »

It looks like you still do not have support for JPEG. Type
  • identify -list format
For JPEG support you need to see a mode of rw- for the JPEG tag:
  • JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
omman95

Re: Segmentation fault PDF to jpg

Post by omman95 »

When I do identify -list format, I have this :

Code: Select all

   Format  Module    Mode  Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images
I think the problem is about the place of the folder of imagemagick, no ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault PDF to jpg

Post by magick »

ImageMagick cannot find its modules. The path its looking for either does not exist or has permissions that prevent ImageMagick from reading it. Type
  • convert -debug configure,module rose: null:
Look at the output and identify where ImageMagick is looking for its modules and configuration files. Make sure the path exists and is readable.

Have you carefully read http://www.imagemagick.org/script/advan ... lation.php?
omman95

Re: Segmentation fault PDF to jpg

Post by omman95 »

My result :

Code: Select all

root@srv-ubuntu:~# convert -debug configure,module rose: null:
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.6/config/coder                                                                             .xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.5.6/config/coder.x                                                                             ml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.5.6/coder.xm                                                                             l"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.6/coder.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/coder.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "coder.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: coder.c/Loa                                                                             dCoderList/639/Configure
  Loading coder configuration file "/usr/local/share/ImageMagick-6.5.6/config/co                                                                             der.xml" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "MAGICK" using filename "magick.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "magick.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.6/config/deleg                                                                             ates.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/lib/ImageMagick-6.5.6/config/delegat                                                                             es.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/share/doc/ImageMagick-6.5.6/delegate                                                                             s.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/usr/local/share/ImageMagick-6.5.6/delegates.xm                                                                             l"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "/root/.magick/delegates.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: configure.c                                                                             /GetConfigureOptions/528/Configure
  Searching for configure file: "delegates.xml"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: delegate.c/                                                                             LoadDelegateList/1194/Configure
  Loading delegate configuration file "/usr/local/lib/ImageMagick-6.5.6/config/d                                                                             elegates.xml" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "MAGICK" using filename "magick.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "magick.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "null" using filename "null.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "null.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "null" using filename "null.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "null.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: utility.c/E                                                                             xpandFilenames/867/Configure
  Command line: convert {-debug} {configure,module} {rose:} {null:}
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "MAGICK" using filename "magick.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "magick.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "MAGICK" using filename "magick.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "magick.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "MAGICK" using filename "magick.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "magick.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/OpenM                                                                             odule/1154/Module
  Searching for module "MAGICK" using filename "magick.la"
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Module convert[5226]: module.c/GetMa                                                                             gickModulePath/549/Module
  Searching for coder module file "magick.la" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: locale.c/Lo                                                                             adLocaleList/779/Configure
  Loading locale configure file "/usr/local/lib/ImageMagick-6.5.6/config/locale.                                                                             xml" ...
2009-09-22T21:32:18+02:00 0:01 0.000u 6.5.6 Configure convert[5226]: locale.c/Lo                                                                             adLocaleList/779/Configure
  Loading locale configure file "/usr/local/lib/ImageMagick-6.5.6/config/francai                                                                             s.xml" ...
convert: impossible d'ouvrir l'image `rose:': Aucun fichier ou dossier de ce typ                                                                             e @ blob.c/OpenBlob/2480.
convert: nom de fichier d'image absent `null:' @ convert.c/ConvertImageCommand/2                                                                             819.
I don't read your page. I do it now
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault PDF to jpg

Post by magick »

You could try building statically with
  • ./configure --disable-shared
omman95

Re: Segmentation fault PDF to jpg

Post by omman95 »

My result :

Code: Select all

checking for ImageMagick delegate programs...
./configure: line 42858: test: -gt: unary operator expected
checking for autotrace... autotrace
checking for mplayer... mplayer
checking for ... no
checking for bzip2... /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... /usr/local/bin/convert
checking for display... /usr/local/bin/display
checking for mogrify... /usr/local/bin/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... /bin/uncompress
checking for compress... 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... /usr/bin/gs
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... /usr/share/fonts/type1/gsfonts/
checking for gnutar... no
checking for gtar... no
checking for tar... tar
checking for perl... perl
checking for rpmbuild... rpmbuild
checking for 7za... no
checking for zip... zip
-------------------------------------------------------------
checking for Ghostscript...
checking for Ghostscript version... 8.64
checking for gs alpha device... pnmraw
checking for gs color device... pnmraw
checking for gs CMYK device... pam
checking for gs mono device... pbmraw
checking for gs PDF writing device... pdfwrite
checking for gs PS writing device... pswrite
checking for gs EPS writing device... epswrite
-------------------------------------------------------------
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

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=no            no
Static libraries  --enable-static=yes           yes
Module support    --with-modules=no             no
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 (8.64)
Ghostscript fonts --with-gs-font-dir=default    /usr/share/fonts/type1/gsfonts/
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=no         no
X11               --with-x=                     no
XML               --with-xml=no         no
ZLIB              --with-zlib=yes               no

X11 Configuration:
      X_CFLAGS        =
      X_PRE_LIBS      =
      X_LIBS          =
      X_EXTRA_LIBS    =

Options used to compile and link:
  PREFIX          = /usr/local
  EXEC-PREFIX     = /usr/local
  VERSION         = 6.5.6
  CC              = gcc -std=gnu99
  CFLAGS          = -fopenmp -g -O2 -Wall -W -pthread
  MAGICK_CFLAGS   = -fopenmp -g -O2 -Wall -W -pthread
  CPPFLAGS        = -I/usr/local/include/ImageMagick
  PCFLAGS         = -fopenmp
  DEFS            = -DHAVE_CONFIG_H
  LDFLAGS         =
  MAGICK_LDFLAGS  = -L/usr/local/lib
  LIBS            = -lMagickCore -lm -lgomp -lpthread
  CXX             = g++
  CXXFLAGS        = -g -O2 -Wall -W -pthread
I don't understand What I have to do...
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Segmentation fault PDF to jpg

Post by magick »

Looks like you need help from a system administrator. If you want to try yourself, as already instructed, you need to look at config.log and determine why the configure script failed to validate the JPEG library. Next, fix the problem and rerun the ImageMagick configure script until it shows that JPEG is validated.
Post Reply