217 | | }}} |
218 | | If this succeeds, that's a good start. |
219 | | |
220 | | If it doesn't, it usually means that your bindings are located in |
221 | | a place they can't be loaded from. So either move the `svn` and `libsvn` |
222 | | found in the /opt/subversion-xxx/lib/svn-python folder |
223 | | into your site-packages folder, or add the above folder to your PYTHONPATH, |
224 | | or create a [http://docs.python.org/lib/module-site.html svn.pth] file |
225 | | in your Python site-packages folder with the above folder path as its |
226 | | single line content (an example on a FreeBSD installation, again: /usr/local/lib/pythonN.N/site-packages/). One simple solution for rpm-based operating systems, is to install the subversion-python bindings rpm. The [http://subversion.tigris.org/project_packages.html official subversion site] points [http://summersoft.fay.ar.us/pub/subversion/latest/ here] to download those packages. |
227 | | '''Windows Users''' |
228 | | |
229 | | According to the README.txt file for the Subversion bindings, if you are using Python 2.5+ you need to rename all the .dll files in the libsvn folder to .pyd files. Upon further research, http://www.python.org/doc/faq/windows/#is-a-pyd-file-the-same-as-a-dll indicates you may need to have both the .pyd and .dll version of the libsvn files available. This resolved both the 'ImportError: No module named _core' error (with only the DLL) and the 'ImportError: DLL load failed' (with only the pyd) when testing from the console, and the browswer. |
230 | | |
231 | | If you get the message {{{ImportError: libsvn_swig_py-1.so.0: cannot open shared object file: No such file or directory}}} even though you can see the .so file in the correct place, then try {{{ldconfig -v}}} as root. |
| 216 | }}} |
| 217 | If this succeeds, that's a good start. |
| 218 | |
| 219 | If it doesn't, it usually means that your bindings are located in a place they can't be loaded from. So either move the `svn` and `libsvn` found in the /opt/subversion-xxx/lib/svn-python folder into your site-packages folder, or add the above folder to your PYTHONPATH, or create a [http://docs.python.org/lib/module-site.html svn.pth] file in your Python site-packages folder with the above folder path as its single line content (an example on a FreeBSD installation, again: /usr/local/lib/pythonN.N/site-packages/). One simple solution for rpm-based operating systems, is to install the subversion-python bindings rpm. The [http://subversion.tigris.org/project_packages.html official subversion site] points [http://summersoft.fay.ar.us/pub/subversion/latest/ here] to download those packages. |
| 220 | |
| 221 | If you get the message {{{ImportError: libsvn_swig_py-1.so.0: cannot open shared object file: No such file or directory}}} even though you can see the .so file in the correct place, then try {{{ldconfig -v}}} as root. |
| 222 | |
| 223 | '''Windows Users''' |
| 224 | |
| 225 | According to the README.txt file for the Subversion bindings, if you are using Python 2.5+ you need to rename all the .dll files in the libsvn folder to .pyd files. Upon further research, http://www.python.org/doc/faq/windows/#is-a-pyd-file-the-same-as-a-dll indicates you may need to have both the .pyd and .dll version of the libsvn files available. This resolved both the 'ImportError: No module named _core' error (with only the DLL) and the 'ImportError: DLL load failed' (with only the pyd) when testing from the console, and the browswer. |
277 | | Get a similar list of libraries, but this time for one of your httpd process. |
278 | | Then compare the two, and pay attention to any difference between the `svn` |
279 | | libraries and the `apr` libraries. You ''have to'' have compatible APR libraries |
280 | | between Apache and Subversion, otherwise you risk to get a wide variety of subtle |
281 | | errors (e.g. #4985). |
| 265 | Get a similar list of libraries, but this time for one of your httpd process. Then compare the two, and pay attention to any difference between the `svn` libraries and the `apr` libraries. You ''have to'' have compatible APR libraries between Apache and Subversion, otherwise you risk to get a wide variety of subtle errors (e.g. #4985). |
291 | | }}} |
292 | | |
293 | | If this works, you need to add the library path permanently. There are two options for this. Either add it in the Apache configuration file (http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv) or at the system level by adding the path to /etc/ld.so.conf, and then run ldconfig. More information on shared libraries can be found here: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html |
294 | | |
295 | | 5. if you're getting 'undefined symbol: xmlCreatePushParserCtxt' while running make check-swig-py, it could be that your libneon is compiled against libxml2. If this is the case, try to recompile your libneon against expat instead of libxml2. |
| 275 | }}} |
| 276 | |
| 277 | If this works, you need to add the library path permanently. There are two options for this. Either add it in the Apache configuration file (http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv) or at the system level by adding the path to /etc/ld.so.conf, and then run ldconfig. More information on shared libraries can be found here: http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html |
| 278 | |
| 279 | 5. if you're getting 'undefined symbol: xmlCreatePushParserCtxt' while running make check-swig-py, it could be that your libneon is compiled against libxml2. If this is the case, try to recompile your libneon against expat instead of libxml2. |