Error when trying to install the Crowd-Apache plugin
Asked by Mircea Marin:

I am trying to install the Crowd Apache plugin on Ubuntu Server 12.04 but I get the following error while executing ./configure:

```
checking for apr_pool_pre_cleanup_register in -lapr-1... noconfigure: error: apr_pool_pre_cleanup_register was not found in libapr-1
```

Any ideas on how to solve it?

Another question I have is if it is possible to copy the plugin from one server (where it works) to another one without actually compiling and installing it. Is there maybe a list of files that can be copied like this or is it impossible?

Thank you!


Answers:
author: Mircea Marin
body: The only thing left to do was to install the entire system from scratch and fix the problems with the lib dependencies. Somehow, someone installed the libxml2 lib from 12.10 and downgrading was very risky. Using backups of the tools, it all worked well and took half a day. Now we have a working, clean system.


author: Caspar Krieger
body: Are you using the supported versions of Apache (2.2) and SVN (1.6) ? The errors you're seeing are about what I would expect if you were trying to use different versions than what we have tested against.

comments: author: Mircea Marin
body: I am using Apache 2.2.22 and SVN 1.7.9. I am sure the SVN version is not the issue since I have the same setup running on another server.

It might be that there are wrong versions of libs installed on this server. I fixed the first issue (did some forced downgrading of some components) but now the problem is with the libxml2:

```
checking for xmlFree in -lxml2... noconfigure: error: libxml2 was not foundroot@deathstar:/srv/atlassian/kits/mod_authnz_crowd-2.2.2# apt-get install libxml2Reading package lists... DoneBuilding dependency treeReading state information... Donelibxml2 is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
```

I probably need to somehow fix this package too...


author: Caspar Krieger
body: You may want to try installing the libxml2-dev package too.


author: Mircea Marin
body: I tried that (and probably found the issue):

```
libxml2-dev : Depends: libxml2 (= 2.7.8.dfsg-5.1ubuntu4.9) but 2.8.0+dfsg1-5ubuntu2.2 is installed.
```

I would need to downgrade libxml2. Some very weird dependencies here :(


author: Caspar Krieger
body: Unfortunately maintaining support for older versions of RHEL means we have to build against old versions of libs, but I agree - that's some strangeness there!


author: Mircea Marin
body: UPDATE: i tried manually copying the following files from the server where the plugin works:

/usr/lib/apache2/modules/mod_authz_svn_crowd.so

/usr/lib/apache2/modules/mod_authnz_crowd.so

/etc/apache2/mods-available/authz_svn_crowd.load

/etc/apache2/mods-available/authnz_crowd.load

/etc/apache2/mods-available/dav_svn.conf

/etc/subversion/dav_svn.authz

I then loaded the 2 new modules (mod_authnz_crowd and mod_authz_svn_crowd).

Upon service apache2 restart I get the following error:

```
apache2: Syntax error on line 239 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/authz_svn_crowd.load: Cannot load /usr/lib/apache2/modules/mod_authz_svn_crowd.so into server: /usr/lib/apache2/modules/mod_authz_svn_crowd.so: undefined symbol: dav_svn_get_repos_path
```

No idea what I am missing...


Tags: crowd-administration

mod_authnz_crowd

svn