cyrus-sasl-2.1.x compile under redehat8.0

Jeremy Rumpf jrumpf at heavyload.net
Sun Nov 10 23:31:23 EST 2002


On Sunday 10 November 2002 07:08 pm, aa wrote:
> hello,
>
> I have to install cyrus-sasl-2.1.7/9 on my redhat 8.0
>
> But default is installed cyrus-sasl-2.1.7 with rpm's
> i can not removed the rpm's to much dependence.
>
> if i compile cyrus-sasl-2.1.9 on that system the makefile installed all
> under /usr/local/lib/sasl2 (normal) but i need sometimes a symlink to
> /usr/lib/sasl2
> on /usr/lib/sasl2 is installed my cyrus-sasl-rpm's
>
> Please, could any say what i have to do ?
>
> I need cyrus-sasl and cyrus-imapd-2.1.x with authmethod "pam" (plain)
> I would use cyrus with lookup-tables in Mysql-db over pam
>
> thank's a lot for any Informations and help's
>
> Best wishes
>
> Achim

You should be able to compile cyrus-sasl-2.1.9 over the redhat RPM and have it 
work. Or you could try removing the RPM compile/install 2.1.9 and if it 
doesn't work, reinstall the 2.1.7 RPM. I believe the redhat RPM is compiled 
with something equivalent to --prefix=/usr (you can verify with the SRPM).

The other option, would be to leave 2.1.9 installed into /usr/local/lib and 
modify your startup scripts in init.d to do this before you launch any of the 
applications:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH 

That will cause the linker to look in /usr/local/lib _before_ /usr/lib and 
should find the 2.1.9 libraries before the 2.1.7 libraries.

When you symlink /usr/lib/sasl2 to /usr/local/lib/sasl2 above, what you're 
actually doing is using the sasl 2.1.7 library with the sasl 2.1.9 modules. 
Your 2.1.7 library is /usr/lib/libsasl2.so and its modules are in 
/usr/lib/sasl2. As well, your 2.1.9 library is /usr/local/lib/libsasl2.so and 
its modules are in /usr/local/lib/sasl2. There will also be further issues 
with saslauthd.

I wouldn't really keep two copies around, especially since you'll be using a 
common auth method (ie pam), but the choice is yours. You can experiement 
with each, but make a backup first :).

Something like this should compile you a package like redhat's with what you 
want, but I can't guarantee it since I haven't personally done it.

./configure --enable-static --with-pic --enable-shared --disable-java
  --with-plugindir=/usr/lib/sasl2 --disable-krb4 --enable-gssapi=/usr/kerberos
  --with-rc4 --with-dblib=berkeley --with-saslauthd=/var/run/saslauthd
  --without-pwcheck --enable-anon --enable-cram --enable-digest
  --enable-plain --enable-login --prefix=/usr --sysconfdir=/etc --with-pam


Cheers,
Jeremy





More information about the Info-cyrus mailing list