Searching reports
  Q: Can a report be searched for a value greater than a certain number?

  A: While viewing the report on screen, press /, this will allow you to
     type in a search pattern in the lower left of the screen. You can
     then enter a regular expression to search on. For example to search
     on all numbers greater than 200 enter this:

     [2-9][0-9][0-9]+\.

     The + continues the search on up beyond 999 in this case and the \.
     searches for numbers ending with a decimal, which is useful if searching
     for money amounts. Use n and N to search forward and backwards.
      

Internet remote printing
  Q: How do I setup remote printing over the Internet when running Stansoft
     on a virtual private server (VPS)?

  A: You can setup remote printing using either JetDirect or IPP printing
     protocols. On the LAN that has the printer, you will need to setup
     port forwarding in the router, if NAT is in use. It would be best to
     use a non standard port number such as 10001 or any unused port. This
     will make the printer less visible to non authorized users. On a Cisco
     router running IOS the command would look like this:

     ip nat inside source static tcp 192.168.1.4 9100 interface Ethernet4 10001

     This will forward global port 10001 to inside port 9100 for JetDirect
     printing to a printer with IP 192.168.1.4. Make sure the printer has
     the IP of the router listed as its gateway.

     Setup the printer using CUPS on the Linux VPS:
     lpadmin -p printer-name -m <model> -E -v socket://public-ip-address:port
 
     For public-ip-address use the global IP of the router on the LAN
     with the printer you want to print to and for port-number use 10001 or 
     whatever port you are forwarding.
   
     
Fedora 27 Linux Server 
  Q: Running the startup script gives the following error:
     $ /opt/stansoft/stansoft 

     Error msg: libncurses.so.5: cannot open shared object file: No such file
     or directory

  A: yum provides '*/libncurses.so.5'
     This will list the package that contains the missing library, then
     install the package that contains the missing library with:
     yum install ncurses-compat-libs-6.0-13.20170722.fc27.x86_64


Red Hat Enterprise Linux Server release 7.1
  Q: How do I install 32-bit libraries to run the 32-bit version of Stansoft
     on a 64-bit Linux install?

  A: yum install ncurses-libs.i686 zlib.i686
     This will also install for dependencies
     glibc.i686 libgcc.i686 libstdc++.i686


Red Hat Enterprise Linux 6.6
  Q: Running the startup script gives the following error:
     $ /opt/stansoft/stansoft 

     menu.4ge: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by
     /opt/stansoft/aubit4gl64/lib/libaubit4gl-1.2_38.so)
 
  A: Stansoft was compiled with glibc 2.14, you will need to update to that
     version. To check which versions the installed glibc works with:

     /lib64/libc.so.6 -> libc-2.12.so
     $ strings /lib64/libc-2.12.so | grep GLIBC
     GLIBC_2.2.5
     GLIBC_2.2.6
     GLIBC_2.3
     GLIBC_2.3.2
     GLIBC_2.3.3
     GLIBC_2.3.4
     GLIBC_2.4
     GLIBC_2.5
     GLIBC_2.6
     GLIBC_2.7
     GLIBC_2.8
     GLIBC_2.9
     GLIBC_2.10
     GLIBC_2.11
     GLIBC_2.12
     GLIBC_PRIVATE


SUSE 11.3 installation notes
  Q: During 4GL install I am getting this error:

     etc/brand: error while loading shared libraries: libstdc++.so.5:
     cannot open shared object file: No such file or directory
     Installation of IBM INFORMIX-4GL failed.

  A: SUSE 11.3 has version 6 of libstdc++ so creating a link to that will allow
     4GL to install.

     ln -s /usr/lib/libstdc++.so.6.0.14 /usr/lib/libstdc++.so.5

  Q: There isn't a /etc/rc.d/rc.local file to start programs after boot.

  A: By default SUSE doesn't have a rc.local file where we can start the 
     database server daemon on boot. Instead you can use /etc/rc.d/boot.local 
     which is a symlink to /etc/init.d/boot.local. 

  Q: Which FTP client is used to transfer a pricebook file?

  A: You need to install ncftp. To see which package this is in do `cnf ncftp'
     Then to install do `zypper install ncftp'.


Ubuntu 18.04.1 LTS
  Q: When launching the program with /opt/stansoft/stansoft it will not start
     and displays:  Error opening terminal: xterm-256color

     A: Make sure ncurses-term is installed: apt-get install ncurses-term
        Then you need to use a TERM from /usr/share/terminfo such as:
        export TERM=xterm-color or export TERM=vt100


Ubuntu 12.04
  Q: I'm getting the following error installing Informix Innovator-C:
     ./ids_install: 2526: exec:
     /tmp/install.dir.3854/Linux/resource/jre/jre/bin/java: not found

     A: This error occurs because you are trying to install a 32-bit binary
        on a 64-bit OS. You need to install 32-bit libraries. On an Ubuntu
        64-bit Linux computer, to work around this issue, install the
        package "ia32-libs":

        apt-get install ia32-libs

        If this results in error:
          The following packages have unmet dependencies:
          ia32-libs : Depends: ia32-libs-multiarch but it is not installable

        Then run the following:

        dpkg --add-architecture i386
        apt-get update 
        apt-get install ia32-libs
         
        On Ubuntu 14.04 package ia32-libs is not available, however
        the following packages replace it:
        lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386

        sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 libstdc++6:i386

  Q: During installation of Informix Innovator-C an error occurs during
     creation of user 'informix' and the install aborts.

     A: This may occur if the install script was run with `sudo', run the
        install script as root. Change to root by running `su -' if you
        can't login as root because there isn't a root password set then
        set one with `sudo passwd root'.
         

Ubuntu 14.04.2 LTS
  Q: Exporting a report to PDF using Ctrl-O from the report output ring menu
     does not work.

     A: You need to install packages enscript and ghostscript. 

        sudo apt-get install enscript
        sudo apt-get install ghostscript

  Q: When emailing an invoice, the invoice is not attached to the email.

     A: Heirloom Mailx needs to be installed.

        sudo apt-get install heirloom-mailx


Debian 7.6
  Q: When running Stansoft under Debian 7.6, it exits with the following error:

     $ /opt/stansoft/stansoft

     menu.4ge: error while loading shared libraries: libcurl.so.4: cannot open
     shared object file: No such file or directory

     A: Install Curl, which will install the missing library.

        sudo apt-get install curl


Debian 6 x64
  Q: I'm trying to run Stansoft under Debian 6 x64, I'm getting the error:

     $ /opt/stansoft/stansoft

     /opt/stansoft/stansoft: line 35: /opt/stansoft/bin/menu.4ge:
     No such file or directory

     A: This error occurs because you are trying to run a 32-bit binary
        on a 64-bit OS. On a Debian 64-bit Linux machine,
        install the package "ia32-libs":

        apt-get install ia32-libs
 

Amazon EC2 Virtual Private Server (VPS)
  Q: When installing on an Amazon VPS ec2 instance, the Informix install
     fails with a killed error:
     Installing Informix... ./install: line 49:  5689 Killed
     $ifxmedia/ids_install -i silent -DLICENSE_ACCEPTED=TRUE
     -DIDS_SERVER_INSTANCE_BOOLEAN_1=0 -DIDS_DRDA_BOOLEAN_1=0

     A: This may occur if the VPS instance does not have enough memory,
        try creating an instance such as the m1.small with 1.7GB of memory
        or m1.medium with 3.7GB of memory.

  Q: Using Amazon Machine Instance (AMI) Ubuntu 13.04, during install there
     is the following message after selecting 'y' to initialize IBM
     Informix Dynamic Server:
       shared memory not initialized for INFORMIXSERVER 'ol_informix'

     Additionally $INFORMIXDIR/ol_informix.log contains:
       Assert Warning: Unable to bind to the port (9088) on the host
       (x.x.x.x) for the server (ol_informix).

     A: Amazon EC2 defaults to using DHCP to obtain a private IP address,
        so the IP address will change with each reboot. The error may
        be caused because the hostname in $INFORMIXDIR/etc/sqlhosts.ol_informix
        does not match /etc/hostname and /etc/hosts. Make sure hostname
        matches in all three locations or use the IP address in the 
        sqlhosts.ol_informix file. If you have not manually changed
        /etc/hostname the EC2 instance will automatically update it and
        the DNS server with the updated hostname on each reboot, but
        sqlhosts.ol_informix would still need to be updated with the
        new hostname. It is best to assign a static IP to the EC2 instance
        by using an Amazon Elastic IP Address.

  Q: When using Amazon Machine Instance (AMI) Ubuntu 13.04, after installing 
     Informix $INFORMIXDIR/ol_informix.log contains: 
       libaio.so.1: cannot open shared object file: No such file or directory
       Please install libaio package. See machine notes.

     A: The missing library can be installed with:

        apt-get install libaio1

  Q: When executing the startup script /opt/stansoft/stansoft the program
     does not start and gives the following error:
       /opt/stansoft/stansoft: line 35: /opt/stansoft/bin/menu.4ge:
       No such file or directory

     A: This may also be caused by missing 32-bit libraries, you can install
        them with:

        apt-get install ia32-libs

        If this results in error:
          The following packages have unmet dependencies:
          ia32-libs : Depends: ia32-libs-multiarch but it is not installable

        Then run the following:

        dpkg --add-architecture i386
        apt-get update
        apt-get install ia32-libs

  Q: Used Informix Innovator-C 64-bit media for install and then when
     the Stansoft startup script is run the following error occurs:

     Error: can't open DLL /opt/stansoft/aubit4gl/plugins-1.2_33/libSQL_esql.so
     - STOP Error msg: libifsql.so: wrong ELF class: ELFCLASS64 Cannot open DLL

     A: Make sure you are installing the same architecture for Stansoft
        and Innovator-C. If installing Stansoft 32-bit, you need to install
        Innovator-C 32-bit. 

  Q: Using Amazon Machine Instance (AMI) Ubuntu 13.04, during install:
       Initializing the database instance...
       oninit: error while loading shared libraries: libpam.so.0: cannot
               open shared object file: No such file or directory

     A: Install library libpam

        apt-get update
        apt-get install libpam0g:i386
 
  Q: Using Amazon Machine Instance (AMI) Ubuntu 14.04, install gives error:
     libgcc_s.so.1 must be installed for pthread_cancel to work

     A: Install library libpam

        apt-get update
        apt-get install libpam0g:i386

  Q: Using Amazon Machine Instance (AMI) Ubuntu 14.04, when running
     /opt/stansoft/stansoft the program does not start and gives error:

     menu.4ge: error while loading shared libraries: libcurl.so.4: cannot
     open shared object file: No such file or directory

     A: Install libcurl3:i386

        sudo apt-get install libcurl3:i386

  Q: What dependencies need to be installed when using Amazon Machine
     Instance (AMI) Ubuntu 14.04 64-bit?

     A: Install the following:

        sudo apt-get install libcurl3:i386
        sudo apt-get install libaio1
        sudo apt-get install libstdc++6:i386
        sudo apt-get install libpam0g:i386
        sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0


Installing ssdemo data
  Q: When installing ssdemo the following error occurs:

     Importing database
     sh: 1: cd: can't cd to ./dbexp

     A: Change the permissions on the root directory where the ssdemo
        installation is being run from with `chmod 755'.
  

Get numeric keypad working with PuTTY
  Q: The numeric keypad is inserting characters 'q' thru 'y'.

     A: If PuTTY appears not to recognize input from the numeric keypad,
        disabling Application Keypad Mode should resolve the problem:

        Select the PuTTY icon in the upper-left corner of the window. From the
        drop-down menu, select Change Settings > Terminal > Features.
        Under "Enabling and disabling advanced terminal features",
        check "Disable application keypad mode".
  
        If you want this setting to persist, make sure to select a saved
        session and save it.

Set locale character set with PuTTY
  Q: Lines around pop up boxes are not being drawn properly under Putty.

    A: First check to see what your current locale encoding is, in a terminal
       run: locale charmap
       This should output something like UTF-8 or ISO-8859-1, then set Putty
       to match this under Window > Translation > Remote character set.

