I am trying to use svn from php and tried this so far without any success :(
(trying to install pecl svn extension)
sudo /Applications/XAMPP/xamppfiles/bin/pecl install svn
I choose autodetect for following:
Please provide the prefix of Subversion installation [autodetect] :
Please provide the prefix of the APR installation used with Subversion [autodetect] :
the last output from the command is :
Build process completed successfully
Installing '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/svn.so'
install ok: channel://pecl.php.net/svn-1.0.2
Extension svn enabled in php.ini
server restart and test a simple function give me this error :
Fatal error: Call to undefined function svn_log()
phpinfo does not list the svn extension either and I see following in apache error log :
PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/svn.so' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/svn.so, 9): no suitable image found. Did find:\n\t/Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626/svn.so: mach-o, but wrong architecture in Unknown on line 0