[campsite-support] installation steps
  • please guide me to a detailed steps to follow to install Campsite on linux machine :

    1. when I have no root user access
    2. when I have root user access

    regards
    Hatem gamal
  • 14 Comments sorted by
  • There are no detailed steps except using install script that guides you.
    The install usually depends on distribution you use so there is none
    stright forward answer.
    What works for me:
    cd /where_you_untarred_campsite/campsite
    ./install

    and follow the instructions.

    Depending on the system you use and packages you have installed, you
    might need to add some to satisfy the campsite dependencies, however it
    is dificult to give you a list, because packages are named diferently in
    various distributions.

    Ondra

    On Sun, 2005-11-27 at 07:53 +0100, hatem.gamal@mediaintl.net wrote:
    > please guide me to a detailed steps to follow to install Campsite on linux machine :
    >
    > 1. when I have no root user access
    > 2. when I have root user access
    >
    > regards
    > Hatem gamal
  • the distribution is 2.3.3
    this is a piece of the ./install file which I don't understand where to run it

    #!/bin/bash

    do_configure()
    {
    rm -f install_log
    echo -e "\nSTEP 1"
    echo -n "Configuring Campsite (this may take a while, please wait)..."
    echo -e

    can you guide me in that

    regards
    hatem gamal
  • The install is shell script that runs instalation, not the readme file.
    so instaed viewing the file, login as root, cd to proper folder and run
    the command ./install or in case you have wrong permitions on file type
    sh ./install

    Ondra

    On Sun, 2005-11-27 at 13:19 +0100, hatem.gamal@mediaintl.net wrote:
    > the distribution is 2.3.3
    > this is a piece of the ./install file which I don't understand where to run it
    >
    > #!/bin/bash
    >
    > do_configure()
    > {
    > rm -f install_log
    > echo -e "\nSTEP 1"
    > echo -n "Configuring Campsite (this may take a while, please wait)..."
    > echo -e
    >
    > can you guide me in that
    >
    > regards
    > hatem gamal
  • I received this result

    jailshell-2.05a$ sh ./INSTALL
    : command not found
    '/INSTALL: line 3: syntax error near unexpected token `do_configure()
    '/INSTALL: line 3: `do_configure()
    jailshell-2.05a$

    would you please help me in that

    regards
    hatem
    -------------------------------------------------------------------------------
    here is the ./install details
    -------------------------------------------------------------------------------
    #!/bin/bash

    do_configure()
    {
    rm -f install_log
    echo -e "\nSTEP 1"
    echo -n "Configuring Campsite (this may take a while, please wait)..."
    echo -e "###############################################\n\tConfiguring campsite\n" >> install_log
    ./configure $* >> install_log 2>&1
    err_code=$?
    if [ $err_code -ne 0 ]; then
    echo "ERROR."
    echo "Read install_log for more information on configuration error."
    echo "Please report bug to http://bugs.campware.org"
    exit 1
    fi
    echo "done"
    }

    compile_sources()
    {
    echo -e "\nSTEP 2"
    echo -n "Compiling sources (this may take a while, please wait)..."
    echo -e "###############################################\n\tCompiling sources\n" >> install_log
    $MAKE all >> install_log 2>&1
    err_code=$?
    if [ $err_code -ne 0 ]; then
    echo "ERROR."
    echo "Read install_log for more information on compilation error."
    echo "Please report bug to http://bugs.campware.org"
    exit 1
    fi
    echo "done"
    }

    install_campsite()
    {
    echo -e "\nSTEP 3"
    echo -e "Installing Campsite...\n"
    echo -e "\n\n###############################################\n\tInstalling campsite\n" >> install_log
    $MAKE install >> install_log 2>&1
    if [ $? -ne 0 ]; then
    echo "ERROR."
    echo "Read install_log for more information on installation error."
    echo "Please report bug to http://bugs.campware.org"
    exit 101
    fi
    def_inst_error=0
    do_install=
    while true; do
    install_default_instance $do_install
    if [ $? -ne 0 ]; then
    echo "There were errors creating the default instance"
    choice_yn "Do you want to try again?" "Y"
    if [ $? -ne 0 ]; then
    def_inst_error=1
    break
    else
    do_install=Y
    fi
    else
    break
    fi
    done
    if [ $def_inst_error -ne 0 ]; then
    echo -e "\nError creating the default Campsite instance. This usually happens when"
    echo "MySQL configuration is different from the default one or you did not"
    echo "install an email server. Run:"
    echo "$BIN_DIR/create_instance --help"
    echo "to find out how to set Campsite instance parameters."
    echo -e "\nIMPORTANT!!!"
    else
    echo -e "\nCampsite was installed successfully."
    echo "For a complete installation log read install_log file."
    echo -n -e "\nStarting campsite_server daemon..."
    "$BIN_DIR/campsitectl" stop &> /dev/null
    "$BIN_DIR/campsitectl" start
    if [ $? -ne 0 ]; then
    echo "ERROR"
    else
    echo "done"
    fi
    echo -e "\nIMPORTANT!!!\n"
    fi
    echo "Please configure apache server before using Campsite application; make sure"
    echo -e "the crond daemon is running; read INSTALL file and follow the instructions.\n"
    if [ "$DEF_INST_INSTALLED" = "Y" ]; then
    echo "To enter the Campsite administration site start a browser and type in the"
    echo "following URL: http://[\$SERVER_NAME]/admin/."
    echo -e "Fill in \"admin\" and \"admn00\" user and password respectively to log in."
    echo "You should change the password as soon as possible."
    else
    echo "Run create_instance script in order to complete Campsite install."
    fi
    }


    # start execution
    if [ ! -x ./configure ]; then
    echo -e "Install script must be started from campsite directory!\nAborting..."
    exit 1
    fi
    go_to_install=false
    do_interactive="--interactive"
    while [ "$1" != "" ]; do
    case $1 in
    --go_to_install) go_to_install=true ;;
    --not_interactive) do_interactive=""
    esac
    shift 1
    done
    my_id=`id -u`
    if [ "`uname | grep BSD`" != "" ]; then
    export BSD=1
    else
    export BSD=0
    fi;
    echo -n "Preparing install scripts..."
    . ./configure --define_start_env
    [ $? -ne 0 ] && exit 1
    echo "done"
    if [ "$go_to_install" = "true" ] && [ $my_id -eq 0 ]; then
    install_campsite
    exit 0
    fi
    . ${INSTALL_CONF}/install_functions
    if [ $? -ne 0 ]; then
    echo "Error reading install files."
    echo "Please report bug to http://www.campware.org/bugs"
    echo "Aborting..."
    exit 1
    fi
    if [ "$1" = "--version" ]; then
    echo -e "CAMPSITE $CAMPSITE_VERSION $RELEASE_NAME, released on $CAMPSITE_RELEASE_DATE"
    exit 0
    fi
    echo -e "\nInstalling CAMPSITE $CAMPSITE_VERSION $RELEASE_NAME"
    configure_campsite $do_interactive
    do_configure --apache_conf_path "$apache_conf_path" --apache_bin_path "$apache_bin_path"
    compile_sources
    $MAKE test_install &> /dev/null
    if [ $? -ne 0 ] && [ $my_id -ne 0 ] && ! $USER_INSTALL; then
    echo -e "\nThe root password is needed in order to install campsite."
    while true; do
    echo -n "Root password: "
    archive_path=`pwd`
    su - $ROOT_USER -c "echo \"\"; cd $archive_path; ./install --go_to_install" 2> /dev/null
    err_code=$?
    if [ $err_code -eq 1 ]; then
    echo -n -e "\nThe password was not correct. Try again (Y/N) ? [Y]: "
    read yn
    if [ "$yn" = "" ]; then
    yn="Y"
    fi
    if [ "${yn:0:1}" != "Y" ] && [ "${yn:0:1}" != "y" ]; then
    echo "Aborting..."
    exit 1
    fi
    else
    exit $err_code
    fi
    done
    else
    install_campsite
    fi
    exit 0
  • C'mon, it cannot be as bad as it looks like...

    OK. INSTALL is not the script. install is script.
    So the command is not sh ./INSTALL, but sh ./install.

    Ondra

    On Sun, 2005-11-27 at 13:54 +0100, hatem.gamal@mediaintl.net wrote:
    > I received this result
    >
    > jailshell-2.05a$ sh ./INSTALL
    > : command not found
    > '/INSTALL: line 3: syntax error near unexpected token `do_configure()
    > '/INSTALL: line 3: `do_configure()
    > jailshell-2.05a$
    >
    > would you please help me in that
    >
    > regards
    > hatem
    > -------------------------------------------------------------------------------
    > here is the ./install details
    > -------------------------------------------------------------------------------
    > #!/bin/bash
    >
    > do_configure()
    > {
    > rm -f install_log
    > echo -e "\nSTEP 1"
    > echo -n "Configuring Campsite (this may take a while, please wait)..."
    > echo -e "###############################################\n\tConfiguring campsite\n" >> install_log
    > ./configure $* >> install_log 2>&1
    > err_code=$?
    > if [ $err_code -ne 0 ]; then
    > echo "ERROR."
    > echo "Read install_log for more information on configuration error."
    > echo "Please report bug to http://bugs.campware.org"
    > exit 1
    > fi
    > echo "done"
    > }
    >
    > compile_sources()
    > {
    > echo -e "\nSTEP 2"
    > echo -n "Compiling sources (this may take a while, please wait)..."
    > echo -e "###############################################\n\tCompiling sources\n" >> install_log
    > $MAKE all >> install_log 2>&1
    > err_code=$?
    > if [ $err_code -ne 0 ]; then
    > echo "ERROR."
    > echo "Read install_log for more information on compilation error."
    > echo "Please report bug to http://bugs.campware.org"
    > exit 1
    > fi
    > echo "done"
    > }
    >
    > install_campsite()
    > {
    > echo -e "\nSTEP 3"
    > echo -e "Installing Campsite...\n"
    > echo -e "\n\n###############################################\n\tInstalling campsite\n" >> install_log
    > $MAKE install >> install_log 2>&1
    > if [ $? -ne 0 ]; then
    > echo "ERROR."
    > echo "Read install_log for more information on installation error."
    > echo "Please report bug to http://bugs.campware.org"
    > exit 101
    > fi
    > def_inst_error=0
    > do_install=
    > while true; do
    > install_default_instance $do_install
    > if [ $? -ne 0 ]; then
    > echo "There were errors creating the default instance"
    > choice_yn "Do you want to try again?" "Y"
    > if [ $? -ne 0 ]; then
    > def_inst_error=1
    > break
    > else
    > do_install=Y
    > fi
    > else
    > break
    > fi
    > done
    > if [ $def_inst_error -ne 0 ]; then
    > echo -e "\nError creating the default Campsite instance. This usually happens when"
    > echo "MySQL configuration is different from the default one or you did not"
    > echo "install an email server. Run:"
    > echo "$BIN_DIR/create_instance --help"
    > echo "to find out how to set Campsite instance parameters."
    > echo -e "\nIMPORTANT!!!"
    > else
    > echo -e "\nCampsite was installed successfully."
    > echo "For a complete installation log read install_log file."
    > echo -n -e "\nStarting campsite_server daemon..."
    > "$BIN_DIR/campsitectl" stop &> /dev/null
    > "$BIN_DIR/campsitectl" start
    > if [ $? -ne 0 ]; then
    > echo "ERROR"
    > else
    > echo "done"
    > fi
    > echo -e "\nIMPORTANT!!!\n"
    > fi
    > echo "Please configure apache server before using Campsite application; make sure"
    > echo -e "the crond daemon is running; read INSTALL file and follow the instructions.\n"
    > if [ "$DEF_INST_INSTALLED" = "Y" ]; then
    > echo "To enter the Campsite administration site start a browser and type in the"
    > echo "following URL: http://[\$SERVER_NAME]/admin/."
    > echo -e "Fill in \"admin\" and \"admn00\" user and password respectively to log in."
    > echo "You should change the password as soon as possible."
    > else
    > echo "Run create_instance script in order to complete Campsite install."
    > fi
    > }
    >
    >
    > # start execution
    > if [ ! -x ./configure ]; then
    > echo -e "Install script must be started from campsite directory!\nAborting..."
    > exit 1
    > fi
    > go_to_install=false
    > do_interactive="--interactive"
    > while [ "$1" != "" ]; do
    > case $1 in
    > --go_to_install) go_to_install=true ;;
    > --not_interactive) do_interactive=""
    > esac
    > shift 1
    > done
    > my_id=`id -u`
    > if [ "`uname | grep BSD`" != "" ]; then
    > export BSD=1
    > else
    > export BSD=0
    > fi;
    > echo -n "Preparing install scripts..."
    > . ./configure --define_start_env
    > [ $? -ne 0 ] && exit 1
    > echo "done"
    > if [ "$go_to_install" = "true" ] && [ $my_id -eq 0 ]; then
    > install_campsite
    > exit 0
    > fi
    > . ${INSTALL_CONF}/install_functions
    > if [ $? -ne 0 ]; then
    > echo "Error reading install files."
    > echo "Please report bug to http://www.campware.org/bugs"
    > echo "Aborting..."
    > exit 1
    > fi
    > if [ "$1" = "--version" ]; then
    > echo -e "CAMPSITE $CAMPSITE_VERSION $RELEASE_NAME, released on $CAMPSITE_RELEASE_DATE"
    > exit 0
    > fi
    > echo -e "\nInstalling CAMPSITE $CAMPSITE_VERSION $RELEASE_NAME"
    > configure_campsite $do_interactive
    > do_configure --apache_conf_path "$apache_conf_path" --apache_bin_path "$apache_bin_path"
    > compile_sources
    > $MAKE test_install &> /dev/null
    > if [ $? -ne 0 ] && [ $my_id -ne 0 ] && ! $USER_INSTALL; then
    > echo -e "\nThe root password is needed in order to install campsite."
    > while true; do
    > echo -n "Root password: "
    > archive_path=`pwd`
    > su - $ROOT_USER -c "echo \"\"; cd $archive_path; ./install --go_to_install" 2> /dev/null
    > err_code=$?
    > if [ $err_code -eq 1 ]; then
    > echo -n -e "\nThe password was not correct. Try again (Y/N) ? [Y]: "
    > read yn
    > if [ "$yn" = "" ]; then
    > yn="Y"
    > fi
    > if [ "${yn:0:1}" != "Y" ] && [ "${yn:0:1}" != "y" ]; then
    > echo "Aborting..."
    > exit 1
    > fi
    > else
    > exit $err_code
    > fi
    > done
    > else
    > install_campsite
    > fi
    > exit 0
  • thank you for your patience

    it gave me this message:
    jailshell-2.05a$ sh ./install
    ./install: ./install: No such file or directory

    I've searched all the untarred folder of campsite 2.3.3
    there is no install script
    on the other hand there is :

    .install_conf (folder)
    INSTALL (campsite 2.3.3)
    INSTALL_FREEBSD
    install_conf.php
    install_functions
    install_search
    Installation.txt
    install_autopublish
    install_parser
    INSTALL (campsite2.3.3\implementation\management\include\smarty)
    but there is no install script file

    please help
    regards
    hatem gamal
  • In that case your downloaded file must be corrupted, as I have this in
    my folder:
    # ls -l
    total 92
    drwxr-xr-x 2 root wheel 1024 Oct 31 17:18 .install_conf
    -rw-r--r-- 1 root wheel 15131 Jul 31 10:39 COPYING
    -rw-r--r-- 1 root wheel 1612 Apr 14 2005 CREDITS
    -rw-r--r-- 1 root wheel 21089 Oct 31 17:11 ChangeLog
    -rw-r--r-- 1 root wheel 4614 Aug 26 14:32 INSTALL
    -rw-r--r-- 1 root wheel 3690 Jul 29 17:53 INSTALL_FREEBSD
    -rw-r--r-- 1 root wheel 3821 Jul 25 11:58 Makefile
    -rw-r--r-- 1 root wheel 3610 Oct 31 01:55 README
    -rw-r--r-- 1 root wheel 1007 Jul 29 17:53 UPGRADE
    -rwxr-xr-x 1 root wheel 11860 Oct 29 11:15 configure
    drwxr-xr-x 2 root wheel 512 Oct 31 17:18 documentation
    drwxr-xr-x 7 root wheel 512 Oct 31 17:18 implementation
    -rwxr-xr-x 1 root wheel 4896 Oct 16 17:28 install
    drwxr-xr-x 2 root wheel 512 Oct 31 17:18 promotion
    -rwxr-xr-x 1 root wheel 5270 Jul 27 15:56 translation



    On Sun, 2005-11-27 at 14:49 +0100, hatem.gamal@mediaintl.net wrote:
    > thank you for your patience
    >
    > it gave me this message:
    > jailshell-2.05a$ sh ./install
    > ./install: ./install: No such file or directory
    >
    > I've searched all the untarred folder of campsite 2.3.3
    > there is no install script
    > on the other hand there is :
    >
    > .install_conf (folder)
    > INSTALL (campsite 2.3.3)
    > INSTALL_FREEBSD
    > install_conf.php
    > install_functions
    > install_search
    > Installation.txt
    > install_autopublish
    > install_parser
    > INSTALL (campsite2.3.3\implementation\management\include\smarty)
    > but there is no install script file
    >
    > please help
    > regards
    > hatem gamal
  • thanks alot for your help
    would you please send me the install file which i don't have please

    regards
    Hatem Gamal
  • this is the result of executing the commmand what's next
    jailshell-2.05a$ sh -1 ./install
    sh: -1: unrecognized option
    Usage: sh [GNU long option] [option] ...
    sh [GNU long option] [option] script-file ...
    GNU long options:
    --debug
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --rcfile
    --rpm-requires
    --restricted
    --verbose
    --version
    --wordexp
    Shell options:
    -irsD or -c command or -O shopt_option (invocation only)
    -abefhkmnptuvxBCHP or -o option
  • I did not ask you to run: sh -l ./install
    Run: sh ./install

    Ondra

    On Thu, 2005-12-01 at 13:23 +0100, hatem.gamal@mediaintl.net wrote:
    > this is the result of executing the commmand what's next
    > jailshell-2.05a$ sh -1 ./install
    > sh: -1: unrecognized option
    > Usage: sh [GNU long option] [option] ...
    > sh [GNU long option] [option] script-file ...
    > GNU long options:
    > --debug
    > --dump-po-strings
    > --dump-strings
    > --help
    > --init-file
    > --login
    > --noediting
    > --noprofile
    > --norc
    > --posix
    > --rcfile
    > --rpm-requires
    > --restricted
    > --verbose
    > --version
    > --wordexp
    > Shell options:
    > -irsD or -c command or -O shopt_option (invocation only)
    > -abefhkmnptuvxBCHP or -o option
    >
  • this is the error message I receive

    jailshell-2.05a$ sh install
    Install script must be started from campsite directory!
    Aborting...please help

    Best Regards
    Hatem Gamal
  • Than it is easy:
    cd /place_where_you_untared_campsite_sources
    sh ./install

    Ondra

    On Thu, 2005-12-01 at 13:36 +0100, hatem.gamal@mediaintl.net wrote:
    > this is the error message I receive
    >
    > jailshell-2.05a$ sh install
    > Install script must be started from campsite directory!
    > Aborting...please help
    >
    > Best Regards
    > Hatem Gamal
    >
  • hi,
    I'm already on the folder that contain campsite installation source but the error message is the same.

    jailshell-2.05a$ dir
    COPYING INSTALL README documentation promotion
    CREDITS INSTALL_FREEBSD UPGRADE implementation translation
    ChangeLog Makefile configure install
    jailshell-2.05a$ sh ./install
    Install script must be started from campsite directory!
    Aborting...
    jailshell-2.05a$

    please help

    best regards
    Hatem Gamal
  • --- hatem.gamal@mediaintl.net wrote:
    > this is the error message I receive
    >
    > jailshell-2.05a$ sh install
    This is wrong. Type:
    sh ./install
    NOT:
    sh install

    It's a big difference.

    Mugur

    > Install script must be started from campsite directory!
    > Aborting...please help
    >
    > Best Regards
    > Hatem Gamal
    >
    >





    __________________________________
    Yahoo! Mail - PC Magazine Editors' Choice 2005
    http://mail.yahoo.com