[CalendarServer-users] CalendarServer trunk's bundled-memcached build fails to find libevent
crowe at mailhaven.com
crowe at mailhaven.com
Fri Jan 6 16:46:55 PST 2012
Hi,
On Fri, Jan 6, 2012, at 07:38 PM, Glyph wrote:
> However, in the meanwhile, it might be better for you to just install
> memcached and libevent development packages using your system's native
> package manager; if dependencies are already set up, the run script
> should notice and avoid building its own versions.
That's already underway.
Working around CalendarServer's obsolete bundled memcached (v1.4.5) by
installing the prereq locally (build from src, since the silly distro
pkg is 1.4.5 as well),
zypper in libevent libevent-devel
rpm -qa | grep -i libevent
libevent-2_0-5-2.0.10-5.1.2.x86_64
libevent-devel-2.0.10-5.1.2.x86_64
cd ~
bzr branch lp:pandora-build
cd pandora-build
./config/autorun.sh
./configure
make
make install
cd ~
bzr branch lp:libmemcached libmemcached-BZR
cd libmemcached-BZR
export CXXFLAGS="-Wno-error"
autoupdate
./config/autorun.sh
./configure --disable-libinnodb
make
make install
unset CXXFLAGS
cd ~
wget http://memcached.googlecode.com/files/memcached-1.4.10.tar.gz
tar zxvf memcached*gz
vi ~/memcached.patch
--- memcached.c.ORIG 2011-11-09 16:19:53.000000000 -0800
+++ memcached.c 2011-11-30 17:40:04.000000000 -0800
@@ -2483,15 +2483,18 @@
inline static void process_stats_detail(conn *c, const char
*command) {
assert(c != NULL);
- if (strcmp(command, "on") == 0) {
+ char on[] = "on";
+ char off[] = "off";
+ char dump[] = "dump";
+ if (strcmp(command, on) == 0) {
settings.detail_enabled = 1;
out_string(c, "OK");
}
- else if (strcmp(command, "off") == 0) {
+ else if (strcmp(command, off) == 0) {
settings.detail_enabled = 0;
out_string(c, "OK");
}
- else if (strcmp(command, "dump") == 0) {
+ else if (strcmp(command, dump) == 0) {
int len;
char *stats = stats_prefix_dump(&len);
write_and_free(c, stats, len);
cd memcached*/
patch -p0 < ~/memcached.patch
./configure
make
make install
cd /usr/local/src/CalendarServer/CalendarServer
perl -pi -e 's|{dstroot}/lib|{dstroot}/lib64|g' support/build.sh
./run -s
Downloading PostgreSQL...
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
100 221 100 221 0 0 2237 0 --:--:-- --:--:-- --:--:--
5815
PostgreSQL is not available from calendarserver.org; trying upstream
source.
% Total % Received % Xferd Average Speed Time Time Time
Current
Dload Upload Total Spent Left
Speed
79 17.4M 79 13.8M 0 0 528k 0 0:00:33 0:00:26 0:00:07
617k
...
pgsql v9.0.x build completed. distro-installed pgsql 9.1.x was not
recognized for some reason :-/
currently at,
...
Building OpenLDAP...
configure: loading site script
/usr/share/site/x86_64-unknown-linux-gnu
Configuring OpenLDAP 2.4.25-Release ...
...
crowe
More information about the calendarserver-users
mailing list