Building TN5250 terminal emulator on SOLARIS 9

Disclaimer: No warranty or guarantee applies to this tip. This tip and all Jax RCFB Sun Solaris Tips are garnered solely from the author's ownexperience and that of his acquaintances.

2003-12-05
2004-10-08
2004-12-04
---------
  1. All the instructions which follow assume:
    1. That you accept the default install paths of each of the applications (i.e., you don't pass --prefix=/somewhere to ./configure)
    2. That you have:
      1. /usr/local/bin in your executable $PATH
      2. /usr/local/lib in your $LD_LIBRARY_PATH
      3. gcc and GNU make properly installed and in any required paths.
  2. Get libtool (e.g.,ftp://ftp.gnu.org/gnu/libtool/libtool-1.5.tar.gz )
    1. tar xzvf libtool-1.5.tar.gz
    2. cdlibtool-1.5
    3. ./configure
    4. make
    5. sudo [1] make install
  3. Get ncurses (e.g., ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.3.tar.gz )
    1. tar xvzf ncurses-5.3.tar.gz
    2. cd ncurses-5.3
    3. ./configure --with-shared
    4. make
    5. sudo[1] make install
  4. Get OpenSSL (e.g., http://www.openssl.org/source/openssl-0.9.7c.tar.gz )
    1. tar xzvf openssl-0.9.7c.tar.gz
    2. cd openssl-0.9.7c
    3. ../config shared
    4. make
    5. sudo[1] make install (should install in /usr/local/ssl)
  5. Set environment variables reflecting the development software which you just built and installed per the above:
    1. C_INCLUDE_PATH=/usr/local/ssl/include/openssl:/usr/local/include/ncurses:$C_INCLUDE_PATH; export C_INCLUDE_PATH
    2. CPLUS_INCLUDE_PATH=/usr/local/ssl/include/openssl:/usr/local/include/ncurses:$CPLUS_INCLUDE_PATH; export CPLUS_INCLUDE_PATH
    3. LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
  6. Obtain and unpack tn5250 --- either from tarball or from anonymous CVS.
    1. cd tn5250
    2. ./configure
      1. As of this writing, -lresolv must be manually added to the list of link libraries in the Makefiles in the various directories (can't resolve inet_aton without libresolv). This should be fixed shortly!
    3. make
    4. sudo[1] make install
  7. /usr/dt/bin/dtterm -geometry 132x27 -sb -sl 500 -bg black -fg lightgrey -title 'TN5250 Works!' -e tn5250 env.TERM=IBM-3477-FC some.os400.host.com &
  8. Building x5250 (an X Windowing System front end for 5250 communications based on lib5250 from the tn5250 project) is similar, adding -lresolv to the link line manually. I invoke x5250 as follows:

Notes:

[1] The 'sudo' command along with other GNU development tools is found on the Solaris Software Companion disk in your Solaris 9 distribution. Should be found to have been installed as /opt/sfw/bin/sudo.
---------
Return to Jax RCFB Sun Solaris Page