View Full Version : How to compile PHP 5.x.x on debian3.1
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
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.
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
Please run
apt-get install apt-file
apt-file update
apt-file search xml2-configWhat's the output of the last command?
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
I guess you messed up your /etc/apt/sources.list? :rolleyes:
I guess you messed up your /etc/apt/sources.list? :rolleyes:
maybe but how can I fix it?
tom
/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.
/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
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.
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
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
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.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.