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
---------
-
All the instructions which follow assume:
- That you accept the default install paths of each
of the applications (i.e., you don't pass
--prefix=/somewhere to ./configure)
-
That you have:
- /usr/local/bin in your executable
$PATH
- /usr/local/lib in your
$LD_LIBRARY_PATH
- gcc and GNU
make properly installed and in any required
paths.
-
Get libtool (e.g.,ftp://ftp.gnu.org/gnu/libtool/libtool-1.5.tar.gz
)
- tar xzvf libtool-1.5.tar.gz
- cdlibtool-1.5
- ./configure
- make
- sudo [1] make
install
-
Get ncurses (e.g., ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.3.tar.gz
)
- tar xvzf ncurses-5.3.tar.gz
- cd ncurses-5.3
- ./configure --with-shared
- make
- sudo[1] make
install
-
Get OpenSSL (e.g., http://www.openssl.org/source/openssl-0.9.7c.tar.gz
)
- tar xzvf openssl-0.9.7c.tar.gz
- cd openssl-0.9.7c
- ../config shared
- make
- sudo[1] make
install (should install in /usr/local/ssl)
-
Set environment variables reflecting the development
software which you just built and installed per the
above:
-
C_INCLUDE_PATH=/usr/local/ssl/include/openssl:/usr/local/include/ncurses:$C_INCLUDE_PATH;
export C_INCLUDE_PATH
-
CPLUS_INCLUDE_PATH=/usr/local/ssl/include/openssl:/usr/local/include/ncurses:$CPLUS_INCLUDE_PATH;
export CPLUS_INCLUDE_PATH
-
LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH
-
Obtain and unpack tn5250 --- either from
tarball or from anonymous CVS.
- cd tn5250
-
./configure
- 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!
- make
- sudo[1]
make install
- /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 &
-
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:
- x5250 -bg black -fg green -geometry 132x27
env.TERM=IBM-3477-FC some_site.com
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