Running "rhqctl install" on a Solaris 10 fails with: ... ./rhq-server.sh: syntax error at line 569: `max_wait_seconds=$' unexpected 15:35:29,279 INFO [org.jboss.modules] JBoss Modules version 1.2.2.Final-redhat-1 15:35:29,380 INFO [org.rhq.enterprise.server.installer.InstallerServiceImpl] The server is preconfigured and ready for auto-install. 15:35:29,473 INFO [org.xnio] XNIO Version 3.0.7.GA-redhat-1 15:35:29,488 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA-redhat-1 15:35:29,496 INFO [org.jboss.remoting] JBoss Remoting version 3.2.16.GA-redhat-1 15:35:39,802 ERROR [org.rhq.enterprise.server.installer.Installer] The installer will now exit due to previous errors: java.lang.Exception: Cannot obtain client connection to the RHQ app server!! .... Caused by: java.io.IOException: java.net.ConnectException: JBAS012144: Could not connect to remote://127.0.0.1:9999. The connection timed out The reason is simple: $RHQ-SERVER/bin/internal/rhq-server.sh line 569: max_wait_seconds=$(expr $RHQ_SERVER_STOP_DELAY \* 60) and line 572: waited_seconds=$(expr $waited_seconds + 2) The $() syntax does not work on Solaris 10 (it does on Solaris 11) Those lines need to become: max_wait_seconds=`expr $RHQ_SERVER_STOP_DELAY \* 60` ... waited_seconds=`expr $waited_seconds + 2` which will work on all *NIX based platforms (old and new)