Debian Kompelierungs Problem PHP5

FreeBSD, Gentoo, openSUSE, CentOS, Ubuntu, Debian
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Debian Kompelierungs Problem PHP5

Post by aubergine »

Hi,

ich möchte PHP5 bei mir installieren um mir das von euch vorgestellte Monitoring Tool anzuschaffen.

Hänge jetzt bei einer sache entgültig fest.
System ist Debian/Sarge

Kompilieren wollte ich folgendermaßen:

Code: Select all

./configure --prefix=/usr --datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --sysconfdir=/etc --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --disable-debug --enable-bcmath --enable-calendar --enable-ctype --enable-dbase --enable-discard-path --enable-exif --enable-filepro --enable-force-cgi-redirect --enable-ftp --enable-gd-imgstrttf --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-mbstr-enc-trans --enable-mbstring --enable-mbregex --enable-memory-limit --enable-safe-mode --enable-shmop --enable-sigchild --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-versioning --enable-wddx --enable-yp --with-bz2 --with-dom=/usr/include/libxml2 --with-ftp --with-gettext --with-jpeg-dir=/usr --with-mcrypt --with-mhash --with-mysql=/usr --with-png-dir=/usr--with-tiff-dir=/usr --with-ttf --with-freetype-dir=yes --with-zlib=yes --with-gd --with-openssl --with-curl --enable-sockets --with-apx2=/usr/bin/apxs2

Code: Select all

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.
Dann ist erstmal ende mit Kompilierung.
Kurz nachgeschaut, festgestellt das ich xml2-dev Paket benötige:
debian:~/php-5.0.5# apt-get install libxml2-dev Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libxml2-dev: Depends: zlib1g-dev but it is not going to be installed or
libz-dev
E: Broken packages
Ok ich brauche also libz-dev, alles klar...:

Code: Select all

debian:~/php-5.0.5# apt-get install libz-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting zlib1g-dev instead of libz-dev
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  zlib1g-dev: Depends: zlib1g (= 1:1.2.2-4) but 1:1.2.2-4.sarge.2 is to be installed
E: Broken packages

Hm ok doch das andere Paket *g*:

Code: Select all

debian:~/php-5.0.5# apt-get install zlib1g-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  zlib1g-dev: Depends: zlib1g (= 1:1.2.2-4) but 1:1.2.2-4.sarge.2 is to be installed
E: Broken packages
Hm also muss wohl die "normale" Version runter (so sieht das für nen
Standard User wie mich zumindest aus)..ok:

Code: Select all

debian:~/php-5.0.5# apt-get install zlib1g
Reading Package Lists... Done
Building Dependency Tree... Done
zlib1g is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
debian:~/php-5.0.5# dpkg --purge zlib1g
dpkg: dependency problems prevent removal of zlib1g:
 libgnutls11 depends on zlib1g (>= 1:1.2.1).
 libgnutls10 depends on zlib1g (>= 1:1.2.1).
 zlib-bin depends on zlib1g (>= 1:1.2.1).
 mysql-server depends on zlib1g (>= 1:1.2.1).
 util-linux depends on zlib1g (>= 1:1.2.1).
 libpng12-0 depends on zlib1g (>= 1:1.2.1).
 libopencdk8 depends on zlib1g (>= 1:1.2.1).
 libgd1-noxpm depends on zlib1g (>= 1:1.2.1).
 apache2-utils depends on zlib1g (>= 1:1.2.1).
 libmysqlclient12 depends on zlib1g (>= 1:1.2.1).
 libmysqlclient14 depends on zlib1g (>= 1:1.2.1); however:
  Package zlib1g is to be removed.
 apache2-mpm-prefork depends on zlib1g (>= 1:1.2.1).
 lynx depends on zlib1g (>= 1:1.2.1).
 libxml2-utils depends on zlib1g (>= 1:1.2.1).
 mysql-client depends on zlib1g (>= 1:1.2.1).
 libdbd-mysql-perl depends on zlib1g (>= 1:1.2.1).
 webalizer depends on zlib1g (>= 1:1.2.1).
 ppp depends on zlib1g (>= 1:1.2.1).
 libgd2-noxpm depends on zlib1g (>= 1:1.2.1).
 libmagic1 depends on zlib1g (>= 1:1.2.1).
 libzzip-0-12 depends on zlib1g (>= 1:1.2.1).
 libxslt1.1 depends on zlib1g (>= 1:1.2.1).
 eggdrop depends on zlib1g (>= 1:1.2.1).
 cramfsprogs depends on zlib1g (>= 1:1.2.1).
 ssh depends on zlib1g (>= 1:1.2.1).
 libxml2 depends on zlib1g (>= 1:1.2.1).
 libfreetype6 depends on zlib1g (>= 1:1.2.1).
dpkg: error processing zlib1g (--purge):
 dependency problems - not removing
Errors were encountered while processing:
 zlib1g

Puh, wohl nochmal Glück gehabt das Package Manager von Debian schlau sind sonst wäre wohl alles ein wenig..ich nenns mal im Arsch...

Ist für mich eine Schleife der Ratlosigkeit, hab im ganzen Internet jetzt über 1h gesucht aber nirgendswo eine Debian Spezifische Problemlösung gefunden, nur Leute mit dem selben Problem...


Weiß jemand um Rat?


Grüße


Dominik
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Debian Kompelierungs Problem PHP5

Post by flo »

Code: Select all

ii  libxml-libxml- 1.58-0.3       Perl module for using the GNOME libxml2 libr
ii  libxml2        2.6.16-7       GNOME XML library
ii  libxml2-dev    2.6.16-7       Development files for the GNOME XML library
ii  libxml2-utils  2.6.16-7       XML utilities
ii  libcompress-zl 1.34-1         Perl module for creation and manipulation of
ii  libio-zlib-per 1.04-1         IO:: style interface to Compress::Zlib
ii  zlib1g         1.2.2-4.sarge. compression library - runtime
ii  zlib1g-dev     1.2.2-4.sarge. compression library - development
Die Pakete habe ich bei mir installiert - achte auf die genauen Paketnamen - zlib-dev != zlib1g-dev.

flo.
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Re: Debian Kompelierungs Problem PHP5

Post by aubergine »

Ok danke schonmal. 2 von den Paketen hab ich nachinstalliert.
Bei den anderen beiden nach wievor das selbe wie oben:

Code: Select all

debian:~/php-5.0.5# apt-get install libxml2-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  libxml2-dev: Depends: zlib1g-dev but it is not going to be installed or
                        libz-dev
E: Broken packages




debian:~/php-5.0.5# apt-get install zlib1g-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  zlib1g-dev: Depends: zlib1g (= 1:1.2.2-4) but 1:1.2.2-4.sarge.2 is to be insta                                                                             lled
E: Broken packages
Und beim Kompilieren auch noch das selbe:

Code: Select all

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.
Dann is Feierabend :(
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Re: Debian Kompelierungs Problem PHP5

Post by aubergine »

Problem ist gelöst für alle die sich mit der selben Sache rumplagen:

Folgenden Pakete der <Testing> Distribution müssen installiert werden um PHP5 in ähnlicher Art und Weise kompilieren zu können:

1. libc6_2.3.5-6_i386.deb
2. zlib1g_1.2.3-4_i386.deb
3. zlib1g-dev_1.2.3-4_i386.deb
4. libxml2_2.6.22-1_i386.deb
5. libxml2-dev_2.6.22-1_i386.deb


Grüße

Dominik
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Debian Kompelierungs Problem PHP5

Post by captaincrunch »

Folgenden Pakete der <Testing> Distribution müssen installiert werden
*augenreib* Ã?hm...du redest dabei wirklich von Testing?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Re: Debian Kompelierungs Problem PHP5

Post by aubergine »

Wie du sicherlich erkennen kannst bin ich kein Debain Entwickler...
Wenn die von mir benannten Pakete auf der Page unter Testing Angeboten werden und als Stable nur in uralt Versionen, sind dies für demzufolge auch testing Pakete...
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Debian Kompelierungs Problem PHP5

Post by flo »

Du hast die Distris gemischt?

Meine Paketliste war von Sarge, nicht von Testing.

flo.
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Re: Debian Kompelierungs Problem PHP5

Post by aubergine »

Dann zeig mir mal wo es
libxml2-dev_2.6.22-1_i386.deb
als Sarge Stable gibt.


Und ja zum oberen.
flo
Posts: 2223
Joined: 2002-07-28 13:02
Location: Berlin
 

Re: Debian Kompelierungs Problem PHP5

Post by flo »

Die benötigst Du auch nicht unbedingt in dieser Version - die Version von Sarge ist ausreichend.

Aber bei testing und/oder unstable ist es eben auch mal möglich, daß sich Abhängigkeiten nicht auflösen lassen - Beispiel war neulich capisuite, das dann einfach mal zwei Wochen eine ältere Version der Capitools vorausgesetzt hat und ein Upgrade der Capi-Pakete dann gar nicht möglich war, weil ich dann entweder meine Capi-Utilities oder meine Fax-Software gehabt hätte.

Vom Punkt "Security-Updates" fange ich ja gar nicht erst an.

flo.
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Re: Debian Kompelierungs Problem PHP5

Post by aubergine »

Ich wollte PHP5 als cgi kompilieren (siehe oben)

Und da ist diese Version nicht ausreichend.


Gruß
captaincrunch
Userprojekt
Userprojekt
Posts: 7066
Joined: 2002-10-09 14:30
Location: Dorsten
 

Re: Debian Kompelierungs Problem PHP5

Post by captaincrunch »

Hast du eine Quelle für diese (IMHO recht gewagte) Aussage?
DebianHowTo
echo "[q]sa[ln0=aln256%Pln256/snlbx]sb729901041524823122snlbxq"|dc
aubergine
Posts: 471
Joined: 2005-09-10 17:52
Location: Frankfurt am Main
 

Re: Debian Kompelierungs Problem PHP5

Post by aubergine »

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.

Das war als noch das alte Zeug drauf war.

Wie bei den anderen Errors auch. Und ja ich hatte die Stable Versionen zu dem Zeitpunkt installiert...

Dann wie gesagt alles auf die neuste testing Version gepatched und die Stables runter und siehe da keine Errors mehr.

Beweise also nein, wie gesagt bin kein Entwickler, aber dumm nit.

Ich möchte hier auch keinem auf die Füße treten und bin sehr froh das es Open Source Software gibt, aber bei mir war das halt so und mein System ist 4 wochen alt und war bis auf paar Games jungfräulich