ubuntuusers.de

pdflib unter php installieren

Status: Ungelöst | Ubuntu-Version: Ubuntu 8.04 (Hardy Heron)
Antworten |

OSchr

Anmeldungsdatum:
23. November 2006

Beiträge: 95

Hallo, ich möchte in meine PHP5 Installation die pdflib integrieren. Ich habe folgendes versucht:

wget http://www.pdflib.com/binaries/PDFlib/702/PDFlib-Lite-7.0.2.tar.gz
tar -zxvf PDFlib-Lite-7.0.2.tar.gz
cd PDFlib-Lite-7.0.2
./configure
make
sudo make install

Aber bereits nach ./configure bekomme ich die Fehlermeldung:

checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables

Hier noch ein Auszug aus der config.log:
configure:2201: checking for C compiler default output file name
configure:2204: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status

Obwohl ich doch den gcc installiert habe?!?! Was fehlt mir? Oder gibt es einen einfacheren Weg? Wenn dieser Weg dann mit euerer Tipps funktioniert, muß ich dann noch etwas in der PHP.ini ergänzen? Danke euch für alle Tipps und hilfen Otmar

Moderiert von ditsch:

Ins passende Forum verschoben. Bitte beachte die Themen-Stickies bei der Wahl des richtigen Forums.

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Hallo,

ist das Paket libc6-dev bzw. libc6-dev-amd64 installiert?

OSchr

(Themenstarter)

Anmeldungsdatum:
23. November 2006

Beiträge: 95

Hallo, ich habe versucht die pdflib mit: ./configure make make install zu installieren. Hier habe ich das Listing aufgeführt:

otmar@otmar-amilo:~/html/pdflib/PDFlib-Lite-7.0.2$ sudo ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking MACHDEP... linux2
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 ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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 recognise dependant libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking for egrep... grep -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 ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
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 if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for Java header files... not found
checking for perl... perl
checking for Perl header file... /usr/lib/perl/5.8/CORE/perl.h
unable to determine perl shared library directory
checking for Python header files... not found
checking for python... python
checking for ruby... no
checking for Ruby header files... not found
checking for Tcl header files... not found
checking whether byte ordering is bigendian... no
checking for PDF import library PDI... not found
checking for PDFlib PLOP (PDF Linearization, Optimization, Privacy)... not found
checking for PDFlib base library pdflib... found
checking for pCOS... not found
checking for PDFlib TET... not found
checking for PDFlib PDPAGE... not found
checking for PDFlib lib CL... not found
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking whether the previously found C++ compiler works... no
configure: creating ./config.status
config.status: creating pdflib-config
config.status: creating config/mkbind.inc
config.status: creating config/mkcommon.inc
config.status: creating config/mklibs.inc
config.status: creating config/mkmainlib.inc
config.status: creating config/mkprogs.inc
config.status: creating config/mkpsubdirs.inc
config.status: creating config/mksubdirs.inc
config.status: executing default commands
_____________________________________________________________
For your convenience, here's a summary of configure's results:

Support for shared libraries:           yes
C++ language binding for PDFlib:        no
Java language binding for PDFlib:       no
Perl language binding for PDFlib:       yes
Python language binding for PDFlib:     no
Ruby language binding for PDFlib:       no
Tcl language binding for PDFlib:        no
PDF import library (PDI):               no
Large file support:                     yes
     Note: if you purchase the additional PDF import library (PDI)
     you can also manipulate existing PDF documents with PDFlib.
     The additional block feature can be used to personalize PDF.
     See http://www.pdflib.com for details.

Please observe the licensing terms for commercial PDFlib usage.
PDFlib license agreement and purchase order can be found in the doc directory.

otmar@otmar-amilo:~/html/pdflib/PDFlib-Lite-7.0.2$ make
make[1]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdcore'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdcore'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/font'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/font'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/flate'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/flate'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/png'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/png'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/tiff'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/tiff'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/jpeg'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/jpeg'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdflib'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdflib'
make[1]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs'
make[1]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib'
make[3]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/c'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/c'
make[3]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/perl'
make[3]: Für das Ziel »all« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/perl'
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib'
make[1]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind'
make[1]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs/pdflib'
make[2]: Für das Ziel »all« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs/pdflib'
make[1]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs'
otmar@otmar-amilo:~/html/pdflib/PDFlib-Lite-7.0.2$ sudo make installmake[1]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdcore'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdcore'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/font'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/font'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/flate'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/flate'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/png'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/png'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/tiff'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/tiff'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/jpeg'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/jpeg'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdflib'
if test ! -d /usr/local/lib ; then 	\
	    mkdir -p /usr/local/lib;		\
	    chmod 755 /usr/local/lib;	\
	fi
if test ! -d /usr/local/include ; then 	\
	    mkdir -p /usr/local/include;		\
	    chmod 755 /usr/local/include;		\
	fi
../../config/install-sh -c -m 644 pdflib.h /usr/local/include
../../libtool --silent ../../config/install-sh -c -m 644 libpdf.la /usr/local/lib;
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs/pdflib'
make[1]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/libs'
make[1]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib'
make[3]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/c'
make[3]: Für das Ziel »install« ist nichts zu tun.
make[3]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/c'
make[3]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/perl'
../../../libtool --silent --mode=install \
		../../../config/install-sh -c -m 644 pdflib_pl.la /usr/local/lib/perl/5.8.8
libtool: install: warning: remember to run `libtool --finish /usr/local/lib/perl/5.8.8'
../../../config/install-sh -c -m 644 pdflib_pl.pm /usr/local/lib/perl/5.8.8
make[3]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib/perl'
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind/pdflib'
make[1]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/bind'
make[1]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs'
make[2]: Betrete Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs/pdflib'
mkdir -p /usr/local/bin
../../config/install-sh -c pdfimage text2pdf /usr/local/bin
make[2]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs/pdflib'
make[1]: Verlasse Verzeichnis '/home/otmar/html/pdflib/PDFlib-Lite-7.0.2/progs'
mkdir -p /usr/local/bin
./config/install-sh -c pdflib-config /usr/local/bin
otmar@otmar-amilo:~/html/pdflib/PDFlib-Lite-7.0.2$ 

Was fehlt hier noch damit die pdflib unter php läuft???? Danke euch Otmar

Moderiert von ditsch:

Crosspost mit Ursprungsthema zusammengeführt.

goan

Anmeldungsdatum:
6. Januar 2007

Beiträge: Zähle...

Wohnort: Zürich

Hallo eine gute Anleitung gibt es hier:

http://wiki.monsteradmin.de/doku.php/ubuntu/pdflib

Gruss goan

Antworten |