• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

imagick

Sorry aber bin kein Linux Spezi,
muss für auf einem Server IMAGICK extension installieren, aber komme nicht klar.
Imagemagick ist drauf, habe nun versucht mit pecl imagick zu installieren, bekomme aber immer wieder Fehler.

Code:
linux:/ # pecl install imagick
downloading imagick-2.2.1.tar ...
Starting to download imagick-2.2.1.tar (Unknown size)
.....................................done: 561,152 bytes
11 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
 1. Please provide the prefix of Imagemagick installation : autodetect

1-1, 'all', 'abort', or Enter to continue: abort
building in /var/tmp/pear-build-root/imagick-2.2.1
running: /tmp/pear/temp/imagick/configure --with-imagick=
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-suse-linux-gnu
checking host system type... x86_64-suse-linux-gnu
checking target system type... x86_64-suse-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib64/php5/extensions
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
/tmp/pear/temp/imagick/configure: line 3907: test: !=: unary operator expected
checking for ld used by gcc... /usr/x86_64-suse-linux/bin/ld
checking if the linker (/usr/x86_64-suse-linux/bin/ld) is GNU ld... yes
checking for /usr/x86_64-suse-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/x86_64-suse-linux/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
shtool:mkdir:Error: invalid number of arguments (at least 1 expected)
shtool:mkdir:Hint:  run `/tmp/pear/temp/imagick/build/shtool mkdir -h' or `man shtool' for details
configure: creating ./config.status
config.status: creating config.h
running: make

Build complete.
Don't forget to run 'make test'.

running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-imagick-2.2.1" install
Installing shared extensions:     /var/tmp/pear-build-root/install-imagick-2.2.1/usr/lib64/php5/extensions/
cp: cannot stat `modules/*': No such file or directory
make: *** [install-modules] Error 1
ERROR: `make INSTALL_ROOT="/var/tmp/pear-build-root/install-imagick-2.2.1" install' failed

Wäre cool wenn irgend jemand mir helfen könnte.
 
Hi

Ohne mich damit genauer zu befassen da stehen doch einige -no-.

Code:
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no

Was hast du da in welcher Version usw. installiert?
 
Ohne mich damit genauer zu befassen da stehen doch einige -no-.

das macht nichts, es werden alle möglichen compiler durchprobiert ... und gcc wurde gefunden. Das ist also in Ordnung :)

der Fehler liegt hier:
shtool:mkdir:Error: invalid number of arguments (at least 1 expected)
shtool:mkdir:Hint: run `/tmp/pear/temp/imagick/build/shtool mkdir -h' or `man shtool' for details

d.h. das configure verwendet ein anderes mkdir welches mit deinem aktuellen nicht compatibel ist. D.h. du schaust dir das configure an und korrigierst diese Zeile einfach.

running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-imagick-2.2.1" install
Installing shared extensions: /var/tmp/pear-build-root/install-imagick-2.2.1/usr/lib64/php5/extensions/
cp: cannot stat `modules/*': No such file or directory
und es wurden offensichtlich keine Dateien im Unterverzeichnis modules erstellt, also kann dort nichts kopiert werden. Das wird wohl daran liegen, das nicht alle benötigten Devel-Pakete installiert wurden oder configure falsch aufgerufen wurde.
./configure --help gibt dir Auskunft über mögliche Parameter.

checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
und eine re2c Version is nicht installiert oder zu alt für dieses Program.
 
oc2pus schrieb:
der Fehler liegt hier:
shtool:mkdir:Error: invalid number of arguments (at least 1 expected)
shtool:mkdir:Hint: run `/tmp/pear/temp/imagick/build/shtool mkdir -h' or `man shtool' for details

Ach, du hast Recht. ;)
Manchmal sieht man den Wald vor lauter Bäumen nicht.
 
Oben