PDA

View Full Version : How to compile PHP 5.x.x on debian3.1


tom
5th May 2006, 09:58
I've used the old configue comand for compiling:
sarge01:~/php-5.1.4# ./configure --prefix=/usr --with-apxs2=/usr/bin/apxs2 --with-config-file-path=/etc/php5/apache2 --enable-memory-limit --disable-debug --with-regex=php --disable-rpath --disable-static --with-pic --with-layout=GNU --with-pear=/usr/share/php --enable-calendar --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars --enable-trans-sid --enable-bcmath --with-bz2 --enable-ctype --with-db4 --with-iconv --enable-exif --enable-filepro --enable-ftp --with-gettext --enable-mbstring --with-pcre-regex=/usr --enable-shmop --enable-sockets --enable-wddx --disable-xml --with-expat-dir=/usr --with-xmlrpc --enable-yp --with-zlib --without-pgsql --with-kerberos=/usr --with-openssl=/usr --with-zip=/usr --enable-dbx --with-mime-magic=/usr/share/misc/file/magic.mime --with-exec-dir=/usr/lib/php4/libexec --without-mm --without-mysql --without-sybase-ct


That error I get:
configure: error: xml2-config not found. Please check your libxml2 installation.


I'm even not sure with that for php5.
--with-exec-dir=/usr/lib/php4/libexec


I thing it must be ...php5/libexec is'nt it?

tom

falko
5th May 2006, 11:13
That error I get:
configure: error: xml2-config not found. Please check your libxml2 installation.
You must install libxml2 before you compile PHP.


I thing it must be ...php5/libexec is'nt it?

It does not have to be, but it makes sense.

tom
5th May 2006, 11:33
You must install libxml2 before you compile PHP.
but
libxml2 ist schon die neueste Version.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
and
sarge01:~/php-5.1.4# locate libxml2
/root/php-5.1.4/ext/libxml/php_libxml2.def
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.6.16
/usr/share/doc/libxml2

???

tom

falko
5th May 2006, 20:35
Please run
apt-get install apt-file
apt-file update
apt-file search xml2-configWhat's the output of the last command?

tom
6th May 2006, 11:17
Please run
apt-get install apt-file
apt-file update
apt-file search xml2-configWhat's the output of the last command?

apt-get install apt-file
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder dass, wenn Sie die
instabile Distribution verwenden, einige erforderliche Pakete noch nicht
kreiert oder aus Incoming herausbewegt wurden.

Da Sie nur eine einzige Operation angefordert haben ist es sehr wahrscheinlich,
dass das Paket einfach nicht installierbar ist und eine Fehlermeldung über
dieses Paket erfolgen sollte.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:

Die folgenden Pakete haben nichterfüllte Abhängigkeiten:
apt-file: Hängt ab: libapt-pkg-perl soll aber nicht installiert werden
E: Kaputte Pakete

tom

falko
6th May 2006, 12:26
I guess you messed up your /etc/apt/sources.list? :rolleyes:

tom
6th May 2006, 18:01
I guess you messed up your /etc/apt/sources.list? :rolleyes:

maybe but how can I fix it?




tom

falko
6th May 2006, 18:10
/etc/apt/sources.list should look like this:
deb http://ftp2.de.debian.org/debian/ stable main
deb-src http://ftp2.de.debian.org/debian/ stable main

deb http://security.debian.org/ stable/updates main
Run apt-get update after your changes.

tom
6th May 2006, 18:17
/etc/apt/sources.list should look like this:
deb http://ftp2.de.debian.org/debian/ stable main
deb-src http://ftp2.de.debian.org/debian/ stable main

deb http://security.debian.org/ stable/updates main
Run apt-get update after your changes.

That's what I've done already but still I cant download apt-file.

Only this? But what about needing other sources for example to use dotdeb.org?

I'm looking for an secure concept to get package form diffenrt sources but without killing my sources.list..
It's a problem with debian because not every source holds the latest package I want to download. So I neet different sources. I think thats the reasen for smaching my list. I hope you've an idea or an good known howto for that difficulties.

tom

falko
6th May 2006, 18:31
I guess you have experimented a little too much with external sources. Basically, you should use as few external sources as possible. You can use two or three other sources, like dotdeb and backports, but you shouldn't use more, and you shouldn't change your sources.list too often.

I think a clean reinstall is your best option.

tom
6th May 2006, 18:59
I guess you have experimented a little too much with external sources. Basically, you should use as few external sources as possible. You can use two or three other sources, like dotdeb and backports, but you shouldn't use more, and you shouldn't change your sources.list too often.

I think a clean reinstall is your best option.


What? I thing you are laughing. You don't mean clean reinstall of the whole OS? but that's not realy a trick?

tom

tom
6th May 2006, 19:09
I am thinkin about a sources list with differnt sources for different packages for example one for php a other one for somthing else... but back to the main thing.
If apt-get is brocken is there realy no possibility to fix it?

tom

falko
7th May 2006, 11:16
What? I thing you are laughing. You don't mean clean reinstall of the whole OS? but that's not realy a trick?

No, I'm serious. Reinstall it. It's one of the lessons you must learn: don't play around too much with your system (unless it's a test machine). If it's running, don't touch it.