Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-2006, 08:17 AM
Junior Member
 
Posts: 7
Default libexec/zmldapinit bad sed syntax?

I tried to file a bug report but it keeps telling me to select a Component even I did so I report it here instead.
I try to install zcs-4.0.0_GA_303.DEBIAN3.1.tar.gz and it failed, trace it to
Code:
mail:/opt/zimbra# su - zimbra -c "libexec/zmldapinit"
sed: -e expression #1, char 61: Extra characters after command
ERROR - failed to start slapd
patch libexec/zmldapinit with
Code:
--- libexec/zmldapinit.orig     2006-09-07 15:48:49.000000000 -0700
+++ libexec/zmldapinit  2006-09-07 15:51:05.000000000 -0700
@@ -66,7 +66,8 @@
                sed -e '\|/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema| a\
                include "/opt/zimbra/lib/conf/zimbra-ext.schema"' ${config_dir}/slapd.conf.in > /tmp/slapd.conf
        else
-               sed -e '\|/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema| a include "/opt/zimbra/lib/conf/zimbra-ext.schema"' ${config_dir}/slapd.conf.in > /tmp/slapd.conf
+               sed -e '\|/opt/zimbra/openldap/etc/openldap/schema/zimbra.schema| a \
+include "/opt/zimbra/lib/conf/zimbra-ext.schema"' ${config_dir}/slapd.conf.in > /tmp/slapd.conf
        fi
        mv -f /tmp/slapd.conf ${config_dir}/slapd.conf.in
 fi
will let the install went through.
Reply With Quote
  #2 (permalink)  
Old 09-08-2006, 08:24 AM
Zimbra Employee
 
Posts: 2,103
Default

Quote:
plat=`/opt/zimbra/libexec/get_plat_tag.sh`
if [ "x$plat" = "xMACOSX" -o "x$plat" = "xMACOSXx86" ]; then
EDITED after drinking coffee:

What veersion of debian are you on? I've only seen that sed syntax required on the mac, which is why the previous sed line contains the syntax that you want.

What does sed --version return for you?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!

Last edited by marcmac; 09-08-2006 at 08:27 AM..
Reply With Quote
  #3 (permalink)  
Old 09-08-2006, 10:26 AM
Junior Member
 
Posts: 7
Default

Quote:
Originally Posted by marcmac
EDITED after drinking coffee
I need some too
Quote:
Originally Posted by marcmac
What veersion of debian are you on?
Code:
$ cat /etc/debian_version
3.1
Quote:
Originally Posted by marcmac
I've only seen that sed syntax required on the mac, which is why the previous sed line contains the syntax that you want.

What does sed --version return for you?
Code:
$ sed --version
GNU sed version 4.1.2
but I can't reproduce it anymore may be I did try to install on a older debian verison. Anyway a newline after a\ is safe for all sed I think.
Reply With Quote
  #4 (permalink)  
Old 09-08-2006, 10:34 AM
Junior Member
 
Posts: 7
Default

it was sed installed with debian 3.0 causes problem.
Code:
$ echo -e "foo\n123" > /tmp/foobar && sed '/^foo/a \bar' /tmp/foobar
sed: -e expression #1, char 10: Extra characters after command
$ echo -e "foo\n123" > /tmp/foobar && sed '/^foo/a \
> bar' /tmp/foobar
foo
bar
123
most sed man pages I found have
a \
text Insert text, blahblah ...
I guess you can replace that block with just one sed line instead
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.