Manual Install Steps (FreeBSD)
Results 1 to 8 of 8

Thread: Manual Install Steps (FreeBSD)

  1. #1
    Active Member
    Join Date
    Jun 2013
    Posts
    4

    Manual Install Steps (FreeBSD)

    Hi - I'm running Zimbra 8.0.4 on FreeBSD and trying to install ZeXtras on it.

    When I try to run the install script, I get:


    root@prod01:/root/tmp/zextras_suite-1.8.7 # ./install.sh all

    -------------------------

    Checking for existing installations ...

    FOUND Zimbra 8.0.4

    Variable CORE_VERSION undefined


    I've tried manually moving files and such, but I must be missing something. Can anyone provide the full list of files to move, where they go and any additional steps needed to try to get this to work?

    Thanks in advance.

  2. #2
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,361
    Hello Shippas,
    welcome to the forums, it's nice to see a FreeBSD user!

    Unfortunately FreeBSD is not one of the supported Operating Systems for ZeXtras Suite, so there is no official support on this matter...

    Nonetheless, I'll be glad to help you

    If you wish to to manually install ZeXtras Suite on your server you must:
    - create a new directory called "zextras" in $ZIMBRA_HOME/lib/ext/ and chown it to zimbra:zimbra
    - move the following files to the newly created directory:
    zextras_suite-1.8.7/packages/8.0.4/zextras.jar
    zextras_suite-1.8.7/packages/common/zextras-lib.jar
    - move the following file to $ZIMBRA_HOME/bin/
    zextras_suite-1.8.7/packages/zxsuite

    Restart the mailboxd service and deploy the ZeXtras Administration Zimlet using the standard zmzimletctl command. The zimlet file can be found at /root/zextras_suite-1.8.7/packages/common/com_zextras_zextras.zip


    Let me know how this turns out!

    Have a nice day,
    Cine

  3. #3
    Active Member
    Join Date
    Jun 2013
    Posts
    4
    Awesome, thanks. It looks like the only thing I kept messing up was the location of the extras-lib.jar. Moved, restarted, & appears to be worked. Thanks again.

  4. #4
    ZeXtras Community Manager ZeXtras Employee Cine's Avatar
    Join Date
    Apr 2011
    Posts
    2,361
    Hello Shippas,
    glad it works!

    Just out of curiosity, could you please run the installer with the "-d" option and paste the complete output here?

    Have a nice day,
    Cine
    the ZeXtras Team

  5. #5
    Active Member
    Join Date
    Jun 2013
    Posts
    4
    Sure, no problem:

    root@prod01:/root/tmp/zextras_suite-1.8.7 # ./install.sh -d all
    + set -v
    + shift
    + '[' 1 -ne 0 ']'
    + case $1 in
    + PROCESS_MODE=all
    + break

    if [ $# -gt 1 ]; then
    echo "Error: check the invocation parameters."
    usage
    exit 1
    fi
    + '[' 1 -gt 1 ']'

    if [ x$PROCESS_MODE == "x" ]; then
    echo "A target for the operations is needed:"
    echo "either core, zimlet or all"
    echo "See $0 -h"
    exit 1
    fi
    + '[' xall == x ']'

    . ./libs/variables.sh
    + . ./libs/variables.sh
    #!/bin/bash
    #
    # ***** BEGIN LICENSE BLOCK *****
    # Copyright (C) 2011 ZeXtras
    #
    # The contents of this file are subject to the ZeXtras License;
    # you may not use this file except in compliance with the License.
    # You may obtain a copy of the License at
    # http://www.zextras.com/zextras-eula.html
    #
    # Software distributed under the License is distributed on an "AS IS"
    # basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
    # ***** END LICENSE BLOCK *****
    #


    PACKAGE_DIR=`dirname $0`/packages
    dirname $0
    +++ dirname ./install.sh
    ++ PACKAGE_DIR=./packages

    UPGRADE="no"
    ++ UPGRADE=no

    ZM_MIN_MAJOR=6
    ++ ZM_MIN_MAJOR=6
    ZM_MIN_MINOR=0
    ++ ZM_MIN_MINOR=0
    ZM_MIN_MICRO=7
    ++ ZM_MIN_MICRO=7

    CORE_INSTALL_DIR="/opt/zimbra/lib/ext/zextras"
    ++ CORE_INSTALL_DIR=/opt/zimbra/lib/ext/zextras

    CORE_EXT_PACKAGE="packages/common/zextras-lib.jar"
    ++ CORE_EXT_PACKAGE=packages/common/zextras-lib.jar
    ZIMLET_PACKAGE="packages/common/com_zextras_zextras.zip"
    ++ ZIMLET_PACKAGE=packages/common/com_zextras_zextras.zip
    TOOL="packages/zxsuite"
    ++ TOOL=packages/zxsuite

    ZEXTRAS_ZIMLET_NAME="com_zextras_zextras"
    ++ ZEXTRAS_ZIMLET_NAME=com_zextras_zextras
    ZXMIG_ZIMLET_NAME="com_zextras_zxmig"
    ++ ZXMIG_ZIMLET_NAME=com_zextras_zxmig

    PRODUCT="ZeXtras Suite"
    ++ PRODUCT='ZeXtras Suite'


    while :
    do
    case $PROCESS_MODE in
    core)
    preCheck
    coreProcess
    break
    ;;
    zimlet)
    preCheck
    zimletProcess
    break
    ;;
    all)
    preCheck
    coreProcess
    zimletProcess
    break
    ;;
    esac
    done
    + :
    + case $PROCESS_MODE in
    + preCheck
    + checkExistingZimbraInstall
    + echo ''

    + echo -------------------------
    -------------------------
    + echo ''

    + echo 'Checking for existing installations ...'
    Checking for existing installations ...
    + isZimbraInstalled
    + ZCSINSTALLED=
    + '[' -x /opt/zimbra/bin/zmcontrol ']'
    + '[' -x /opt/zimbra/bin/zmmailboxdctl ']'
    + ZCSINSTALLED=1
    + checkZcsVersion
    + su - zimbra -c 'zmcontrol -v'
    + grep -q -i -- 'ZCA Release 7'
    + '[' x1 '!=' x ']'
    + VRS_ARR=(`su - zimbra -c "zmcontrol -v" | perl -wne 'print join " ", /(\d+)\.(\d+)\.(\d+).*(FOSS|NETWORK)/ if /edition/'`)
    su - zimbra -c "zmcontrol -v" | perl -wne 'print join " ", /(\d+)\.(\d+)\.(\d+).*(FOSS|NETWORK)/ if /edition/'
    ++ su - zimbra -c 'zmcontrol -v'
    ++ perl -wne 'print join " ", /(\d+)\.(\d+)\.(\d+).*(FOSS|NETWORK)/ if /edition/'
    + ZM_CUR_MAJOR=8
    + ZM_CUR_MINOR=0
    + ZM_CUR_MICRO=4
    + ZM_CUR_EDITION=FOSS
    + '[' x1 '!=' x ']'
    + echo ''

    + echo 'FOUND Zimbra 8.0.4'
    FOUND Zimbra 8.0.4
    + echo ''

    + checkMinimumZimbraVersion
    echo ${ZM_CUR_MAJOR}.${ZM_CUR_MINOR}.${ZM_CUR_MICRO} ${ZM_MIN_MAJOR}.${ZM_MIN_MINOR}.${ZM_MIN_MICRO}|bi n/check_version.pl
    ++ echo 8.0.4 6.0.7
    ++ bin/check_version.pl
    + CMP=1
    + '[' 1 -gt 0 -o 1 -eq 0 ']'
    + ZEXTRAS_INSTALLABLE=yes
    + return 0
    + CORE_PACKAGE=packages/8.0.4/zextras.jar
    + payloadCheck
    + '[' -r packages/8.0.4/zextras.jar ']'
    bin/zxtool.sh -p $CORE_PACKAGE -v 2>/dev/null|sed -n 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'
    ++ bin/zxtool.sh -p packages/8.0.4/zextras.jar -v
    ++ sed -n 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'
    + CORE_VERSION=
    + '[' x == x ']'
    + echo 'Variable CORE_VERSION undefined'
    Variable CORE_VERSION undefined
    + exit 1
    root@prod01:/root/tmp/zextras_suite-1.8.7 #

  6. #6
    Wise Guy Participant
    Join Date
    Apr 2011
    Posts
    34
    Hello shippas .

    Here lies the problem.

    Quote Originally Posted by shippas View Post
    + '[' -r packages/8.0.4/zextras.jar ']'
    bin/zxtool.sh -p $CORE_PACKAGE -v 2>/dev/null|sed -n 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'
    ++ bin/zxtool.sh -p packages/8.0.4/zextras.jar -v
    ++ sed -n 's/.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/p'
    + CORE_VERSION=
    + '[' x == x ']'
    + echo 'Variable CORE_VERSION undefined'
    Variable CORE_VERSION undefined
    + exit 1
    Quite likely the problem is connected to the fact that sed on pretty much all flavours of GNU/Linux is GNU sed, but not so on *BSD systems .

    Could you run
    Code:
    bin/zxtool.sh -p packages/8.0.4/zextras.jar -v
    from the directory where you unpacked the ZeXtras Suite package, and tell me the output?

    Regards,
    Trantor
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    ZeXtras System Administrator and Installer Guru

  7. #7
    Active Member
    Join Date
    Jun 2013
    Posts
    4
    root@prod01:/root/tmp/zextras_suite-1.8.7 # bin/zxtool.sh -p packages/8.0.4/zextras.jar -v
    zextras version 1.8.7

  8. #8
    Wise Guy Participant
    Join Date
    Apr 2011
    Posts
    34
    Hello again shippas .

    I was about to ask you for another test on your system because I didn't have any FreeBSD system available to me when I realized I had one at hand

    I delved into sed/regexp territory and realized where the problem stood: GNU sed, from a certain version onwards, extends the set of Basic Regular Expressions metacharacters with \+, as do several other regular expression engines.
    However, strictly speaking, as one can see here, that particular repetition should be expressed, under BRE specification, with the \{1,\} sequence.

    So, I replaced the occurrences of \+ with \{1,\} throughout the installer scripts, and checked with a FreeBSD sed to be sure.

    Attached to this post you can find a patch, to be applied with a
    Code:
    patch -p1 < patch_file.txt
    from the ZeXtras Suite installer directory.
    After that the installer SHOULD run smoothly, but frankly I am not sure whether some other incompatibility will erupt at some other place, so, if you want, check it out and let us know .

    Regards,
    Trantor
    Attached Files Attached Files
    ZeXtras Website # ZeXtras Wiki # ZeXtras Store

    ZeXtras System Administrator and Installer Guru

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •