TPTP Agent Controller on Arch Linux

Installing Eclipse TPTP using the Update Manager creates several problems under Linux.

  • First, the permissions are missing for the native Integrated Agent Controller code. Symbolic links were also not created for the Integrated Agent Controller libraries, resulting in a “File too short” error message when running the executable.
  • Second, since the Integrated Agent Controller is native code, it requires shared libraries which may or may not be installed on your system.
  • Third, several configuration files need to be writable by the user which executes Eclipse. I installed Eclipse using my own user (not root), so I did not run into this problem, however, there are several posts on the mailing list addressing this problem.

As a result, executing the Profiler within Eclipse would result in a cryptic “Unable to connect to localhost (port 10002)” message.

In order to get the Integrated Agent Controller running, we’ll need to fix the mentioned problems, here’s how to do it on Arch Linux:

  1. Change your working directory to where the TPTP agent controller is installed:
    cd eclipse/plugins/
  2. Fix the permissions of the executables:
    cd <tptp_agent_controller_dir>/bin
    chmod +x ACServer ChkPass RAServer SampleClient TimeCollector readme.txt tptpFileTransferAgent tptpProcessController</tptp_agent_controller_dir>
  3. Fix the symbolic links for the linked libraries. The following list of files should point to their .so.4.4.0 counterparts. The easiest way to do this is just to download a copy of the standalone Agent Controller and to copy the lib directory to the lib directory of the Integrated Agent Controller:

    ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./ ./
  4. Install the compatibility libraries using the PKGBUILD located in this wiki article.
  5. Ensure your configuration files are writable by the Eclipse user.
  6. Occasionally, the Agent Controller leaves behind profiling data in the /tmp/IBMRAC directory which causes problems with subsequent executions of the Agent Controller. Delete /tmp/IBMRAC in order to remove the temporary files.
  7. Note: Occasionally, a Java process may prevent the Agent Controller from exiting properly. Killing the appropriate process will allow the controller to be restarted. A ‘killall java’ generally does the trick :)

1 Response to “TPTP Agent Controller on Arch Linux”

  • That helped me bunches. The only things missing in Ubuntu was that I could get the lib from the universe and I failed to get anywhere using the standalone agent controller bu settled for a bit of bashing to fix things. Thanks, I was lost without that.

Leave a Reply