How to compile PHP 5.x.x on debian3.1

Discussion in 'Installation/Configuration' started by tom, May 5, 2006.

  1. tom

    tom Member

    I've used the old configue comand for compiling:
    Code:
    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:
    Code:
    configure: error: xml2-config not found. Please check your libxml2 installation.
    
    I'm even not sure with that for php5.
    Code:
    --with-exec-dir=/usr/lib/php[COLOR="Red"]4[/COLOR]/libexec

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

    tom
     
    Last edited: May 5, 2006
  2. falko

    falko Super Moderator

    You must install libxml2 before you compile PHP.
    It does not have to be, but it makes sense.
     
  3. tom

    tom Member

    but
    Code:
    libxml2 ist schon die neueste Version.
    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
    and
    ???

    tom
     
    Last edited: May 5, 2006
  4. falko

    falko Super Moderator

    Please run
    Code:
    apt-get install apt-file
    apt-file update
    apt-file search xml2-config
    What's the output of the last command?
     
  5. tom

    tom Member

    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
     
  6. falko

    falko Super Moderator

    I guess you messed up your /etc/apt/sources.list? :rolleyes:
     
  7. tom

    tom Member

    maybe but how can I fix it?




    tom
     
    Last edited: May 6, 2006
  8. falko

    falko Super Moderator

    /etc/apt/sources.list should look like this:
    Code:
    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
    Code:
    apt-get update
    after your changes.
     
  9. tom

    tom Member

    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
     
    Last edited: May 6, 2006
  10. falko

    falko Super Moderator

    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.
     
  11. tom

    tom Member


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

    tom
     
  12. tom

    tom Member

    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
     
  13. falko

    falko Super Moderator

    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.
     

Share This Page