2010-02-11 9 views
5

Ich versuche, die folgende PHP-Erweiterung zu installieren: http://php.net/manual/en/book.svn.php Aber wenn ich pecl install svn-beta mache, erhalte ich eine Fehlermeldung, dass es die Datei svn_client.h nicht finden kann. Ich suchte im Internet, konnte aber keinen nützlichen Verweis auf diesen Fehler finden.Fehler beim Installieren der SVN-Erweiterung mit pecl

Vielen Dank für Ihre Hilfe.

Installations Ergebnis:

[email protected]:/home/thedp# pecl install svn-beta 
downloading svn-0.5.1.tgz ... 
Starting to download svn-0.5.1.tgz (23,563 bytes) 
.....done: 23,563 bytes 
4 source files, building 
running: phpize 
Configuring for: 
PHP Api Version:   20041225 
Zend Module Api No:  20060613 
Zend Extension Api No: 220060519 
1. Please provide the prefix of Subversion installation : autodetect 

1-1, 'all', 'abort', or Enter to continue: 
1. Please provide the prefix of the APR installation used with Subversion : autodetect 

1-1, 'all', 'abort', or Enter to continue: 
building in /var/tmp/pear-build-root/svn-0.5.1 
running: /tmp/pear/temp/svn/configure --with-svn --with-svn-apr 
checking for grep that handles long lines and -e... /bin/grep 
checking for egrep... /bin/grep -E 
checking for a sed that does not truncate output... /bin/sed 
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 ISO C89... none needed 
checking whether gcc and cc understand -c and -o together... yes 
checking for system library directory... lib 
checking if compiler supports -R... no 
checking if compiler supports -Wl,-rpath,... yes 
checking build system type... i686-pc-linux-gnu 
checking host system type... i686-pc-linux-gnu 
checking target system type... i686-pc-linux-gnu 
checking for PHP prefix... /usr 
checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
checking for PHP extension directory... /usr/lib/php5/20060613+lfs 
checking for PHP installed headers prefix... /usr/include/php5 
checking for re2c... no 
configure: WARNING: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers. 
checking for gawk... no 
checking for nawk... nawk 
checking if nawk is broken... no 
checking for svn support... yes, shared 
checking for specifying the location of apr for svn... yes, shared 
checking for svn includes... configure: error: failed to find svn_client.h 
ERROR: `/tmp/pear/temp/svn/configure --with-svn --with-svn-apr' failed 
+1

Haben Sie versucht, das Präfix für Ihre svn-Installation manuell einzugeben, wenn Sie dazu aufgefordert werden (Sie haben gewählt, in der von Ihnen geposteten Ausgabe automatisch zu erkennen)? – prodigitalson

+0

Ich bin mir nicht sicher, was ich bieten soll. Ist es der Standort des Hauptrepo? Oder wo ich den SVN installiert habe? – thedp

+0

BTW, ich suchte mein System nach der 'svn_client.h' Datei ... Nichts. – thedp

Antwort

12

Haben Sie eigentlich die SVN-libs installiert? Es scheint, dass Sie auf Ubuntu sind, also wird etwas wie apt-get install libsvn-dev wahrscheinlich die benötigten Header und Bibliotheken installieren.

PECL-Erweiterungen sind Wrapper um C-Client-Bibliotheken, aber sie sind (normalerweise) nicht mit den Bibliotheken und Headern für diese Client-Bibliotheken gebündelt.

+0

Ich erhalte einen Fehler, wenn ich versuche, 'libsvn-dev' zu installieren:' Reading Die folgenden Pakete haben unerfüllte Abhängigkeiten: libsvn-dev: Hängt ab: libsvn1 (= 1.5.4dfsg1-1ubuntu2) aber 1.5.4dfsg1-1ubuntu2. 1 ist zu installieren Hängt davon ab: libapr1-dev, aber es wird nicht installiert werden Hängt davon ab: libaprutil1-dev, aber es wird nicht installiert ' – thedp

+1

hmmm ... das ist bedauerlich. Welche Version von Ubuntu liegst du? Es scheint, es gibt ein Problem auf 9.04 mit libsvn-dev: https://bugs.launchpad.net/ubuntu/+source/apr-util/+bug/371746. Ich habe gerade pecl Extension Svn-0.5.1 mit allen Standard-Sachen auf meiner 9.10-Box installiert, und alles hat funktioniert. – tmont

+1

um diesen letzten Satz zu klären, ist die Antwort auf Ihre ursprüngliche Frage in der Tat die Installation von libsvn-dev. das wird dir alle svn header und libs bringen, einschließlich 'svn_client.h' – tmont

Verwandte Themen