9 Replies Latest reply on Mar 28, 2006 11:43 AM by conkan

    Failed Build of Portal 2.2 on Linux

    rutfield

      I am trying to build the JBOSS portal from source per the 2.2 User Guide. I knew the instructions looked too easy.
      I have JBOSS 4.018.

      I have the code unzipped into the directory, but when I run "sh build.sh", I get these errors (below).

      I can tell the xset failures are because the common library definitions were not set up after the attempt.

      The common.shlib appears to define these functions which are declared as 'not found'.

      Any ideas?
      I am stumped as to how to isolate this.

      I've also included the build file below.
      Thanks.
      CR


      [root@rutfield jboss-portal-2.2.0-src]# cd build
      [root@rutfield build]# sh build.sh
      : command not foundtal/jboss-portal-2.2.0-src/tools/bin/common.shlib: line 7:
      : command not foundtal/jboss-portal-2.2.0-src/tools/bin/common.shlib: line 9:
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/common.shlib: line 11: syntax error near unexpected to'en `{
      'usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/common.shlib: line 11: `{
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 34: xset: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 35: xset: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 38: check_os: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 40: convertpath: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 41: convertpath: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 42: debug: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 43: debug: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 46: xset: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 47: xset: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 53: convertpath: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 54: debug: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 60: xset: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 62: debug: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 67: maybe_source: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 70: [: =: unary operator expected
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 90: die: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 94: debug: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 107: die: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 112: xset: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 120: debug: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 123: xset: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 133: debug: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 136: notice: command not found
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 140: /bin/ant: No such file or directory
      /usr/local/jbossportal/jboss-portal-2.2.0-src/tools/bin/build.sh: line 140: exec: /bin/ant: cannot execute: No such file or directory
      [root@rutfield build]#


      [root@rutfield build]# cat build.sh
      #!/bin/sh
      ##
      ## Invokes a script of the same name in the 'tools' module.
      ##
      ## The 'tools' module is expected to be a peer directory of the directory
      ## in which this script lives.
      ##
      ## @author Jason Dillon <jason@planet57.com>
      ##

      # $Id: build.sh,v 1.1.1.1 2005/01/14 23:01:33 vietj Exp $

      PROGNAME=`basename $0`
      DIRNAME=`dirname $0`

      # Buss it yo
      main() {
      if [ "x$TOOLS_ROOT" = "x" ]; then
      TOOLS_ROOT=`cd $DIRNAME/../tools && pwd`
      fi

      MODULE_ROOT=`cd $DIRNAME; pwd`
      export TOOLS_ROOT MODULE_ROOT DEBUG TRACE

      # Where is the target script?
      target="$TOOLS_ROOT/bin/$PROGNAME"
      if [ ! -f "$target" ]; then
      echo "${PROGNAME}: *ERROR* The target executable does not exist:"
      echo "${PROGNAME}:"
      echo "${PROGNAME}: $target"
      echo "${PROGNAME}:"
      echo "${PROGNAME}: Please make sure you have checked out the 'tools' module"
      echo "${PROGNAME}: and make sure it is up to date."
      exit 2
      fi

      # Get busy yo!
      if [ "x$DEBUG" != "x" ]; then
      echo "${PROGNAME}: Executing: /bin/sh $target $@"
      fi
      if [ "x$TRACE" = "x" ]; then
      exec /bin/sh $target "$@"
      else
      exec /bin/sh -x $target "$@"
      fi
      }

      # Lets get ready to rumble!
      main "$@"