Escolar Documentos
Profissional Documentos
Cultura Documentos
Version 3.2
for
Linux
COPYRIGHT NOTICE Copyright 1998-2002 DATA ACCESS CORPORATION. All rights reserved. No part of this publication may be copied or distributed, transmitted, transcribed, stored in a retrieval system, or translated into any human or computer language, in any form or by any means, electronic, mechanical, magnetic, manual, or otherwise, or disclosed to third parties without the express written permission of Data Access Corporation, Miami, Florida, USA. DISCLAIMER Data Access Corporation makes no representation or warranties, express or implied, with respect to this publication, or any Data Access Corporation product, including but not limited to warranties of merchantability or fitness for any particular purpose. Data Access Corporation reserves to itself the right to make changes, enhancements, revisions and alterations of any kind to this publication or the product(s) it covers without obligation to notify any person, institution or organization of such changes, enhancements, revisions and alterations. TRADEMARKS DataFlex is a registered trademark and Flex-Keys is a trademark of Data Access Corporation. All other brand and product names are trademarks or registered trademarks of their respective companies. All other company, brand, and product names are registered trademarks or trademarks of their respective holders.
Contents
CONTENTS ........................................................................................................ 3 PLATFORMS SUPPORTED ............................................................................ 5 LINUX ............................................................................................................... 5 MINIMUM SYSTEM REQUIREMENTS.................................................................. 5 RECOMMENDED SYSTEM CONFIGURATION....................................................... 5 INSTALLING DATAFLEX .............................................................................. 6 CD DELIVERY MEDIUM ................................................................................... 6 IMPORTANT NOTES FOR CURRENT DATAFLEX USERS ...................................... 6 BEFORE YOU BEGIN ......................................................................................... 8 RUNNING LINUX ............................................................................................... 8 LINUX SHELLS .................................................................................................. 9 INSTALLATION .................................................................................................. 9 Installing from CD-ROM .......................................................................... 10 Registration .............................................................................................. 12 Running DataFlex..................................................................................... 12 Using the DFENV Environment Variable................................................. 14 Modifying Terminal Information .............................................................. 14 INCREASING THE NUMBER OF USERS ............................................ 15 CONFIGURING DATAFLEX............................................................................... 16 DataFlex Universal Keyboard .................................................................. 17 User Counting System............................................................................... 18 THE SAMPLE APPLICATIONS ................................................................... 19 RELEASE NOTES ........................................................................................... 19 INSTALLING AND USING THE ELECTRONIC DOCUMENTATION . 19 ADOBE ACROBAT READER ............................................................................. 19 INSTALLING THE ADOBE ACROBAT READER .................................................. 20 INSTALLING THE DOCUMENTATION ................................................................ 21 USING THE DOCUMENTATION ......................................................................... 22 GETTING STARTED WITH DATAFLEX ................................................... 25 RUNNING DATAFLEX AT THE LINUX CONSOLE UNDER LINUX TEXT MODE .... 25 RUNNING DATAFLEX AT THE LINUX CONSOLE UNDER LINUX GRAPHICAL MODE ............................................................................................................. 26 MIGRATING DATAFLEX TO LINUX ........................................................ 28
Installation and Environment Guide 3
BUG REPORTING GUIDELINES ................................................................ 30 OBTAINING TECHNICAL SUPPORT ........................................................ 32 WHO IS ELIGIBLE FOR TECHNICAL SUPPORT? ................................................. 32 WHAT AREAS DOES TECHNICAL SUPPORT COVER? ........................................ 32 GETTING TECHNICAL SUPPORT ...................................................................... 32 WHERE TO FIND US ON-LINE .......................................................................... 33 WHERE TO WRITE TO US ................................................................................ 33 WHERE TO FAX US ....................................................................................... 33
Platforms Supported
Linux
This version is ported and tested on Red Hat 7.3, kernel 2.4.183. It is intended for use on systems running any Linux system with a kernel of 2.2.14 or higher.
DataFlex will require 30 Megabytes of available hard disk space. The DataFlex documentation will consume approximately 20 Megabytes of additional disk space.
DataFlex will require 30 Megabytes of available hard disk space. The DataFlex documentation will consume approximately 20 Megabytes of additional disk space.
Installing DataFlex
This information will assist you in the installation of DataFlex 3.2 for Linux and its electronic documentation.
CD Delivery Medium
The software on this CD will only run on Linux on an Intel or Intel compatible processor. If you install this version of DataFlex on another CPU or operating system, it may install, but every attempt to run it will trigger a DataFlex not Installed error or other errors, and it will not run correctly. Please contact Data Access Worldwide, an authorized distributor or your application developer to buy DataFlex licenses for other platforms. CD Directory Structure
Directory Acrobat Doc Contents Contains the Acrobat Readers Contains, in Acrobat format, the complete documentation set for DataFlex. Note that the PDF files are not compressed. Contains HTML graphical front end for DataFlex 3.2 for Linux CD. Contains all the files to install DataFlex 3.2 for Linux
HTML Install
replicate those modifications in the current fmac and repack it to a new flex.cfl before recompiling. Do not install or use the DataFlex Application Framework with this revision. Improved Framework capabilities are integrated in this revision of DataFlex. Where you must retain the Flex-Key mappings of Rev. 2.3 for an application, you may add a read_dfini statement to the beginning of the program(s) naming /usr/local/df32/usr/dfini23.cfg, a file supplied for this purpose, as argument. If you wish to change the mapping in this file, use the Configuration Utility (dfconfig) to edit this file. .flx files compiled in Revision 3.2 cannot be run by earlier revisions of DataFlex! DataFlex 3.05 and 3.1 source code is fully compatible with Revision 3.2 (when used in non-DD mode) and should compile and operate without problem. If you use the current File Definition Utility to modify (e.g., to add a field or turn header-integrity checking on) a data file created under an earlier revision of DataFlex, the data file will be saved in the new format. As a result, you will thereafter not be able to access the data file with any runtime earlier than Rev. 3.01b or programs compiled under such revisions. Where you must retain the ability to use the earlier revision, modify such files only with the utilities of the earlier revision. Files created using extended filelist are only accessible by DataFlex 3.2, Visual DataFlex 7 (or higher) and WebApp Server 3 (or higher). Data files created in the format of the current revision will be accessible by all revisions 3.01b or later, unless you use the extended filelist capabilities of DataFlex 3.2. Files created using extended filelist are only accessible by DataFlex 3.2, Visual DataFlex 7 (or higher) and WebApp Server 3 (or higher). This version of DataFlex no longer supports DataFlex graphics. Graphics were never supported in non-DOS
7
versions of DataFlex. User counting is maintained in: /usr/tmp in a file named .serial_num.dfr, where serial_num is the serial number of the DataFlex runtime (e.g. /usr/tmp/.389885.dfr). The .serial_num.dfr file is created whenever dfsetup is run and the changes are saved. Except for when user rights are insufficient, problems are normally corrected by re-running dfsetup.
Running Linux
There are 2 ways of running Linux: Text Mode If you are running Linux in text mode, you will be running from the command prompt, which is referred to as a shell or terminal under Linux. This manual will refer to the command prompt as the terminal or terminal window. Graphical Mode If you are running Linux in graphical mode, you are running X Windows. Built on top of X Windows are various Desktop environments, different versions of which are installed with the
8 DataFlex for Linux
distribution of Linux you are running (you can also download and install different desktop environments from various web sites). The 2 most commonly distributed desktop environments are GNOME and KDE, both of which come with RedHat 7.3 (only GNOME is installed by default we recommend installing KDE if you wish to run DataFlex in Linux graphical mode). Both look very similar to Windows, with a taskbar and a menu similar to the Windows Start menu.
Linux Shells
Linux has different shells that you can run in a terminal. The default Linux shell is the Bourne Again Shell or bash. This is the shell that should be running if you open any terminal window in Linux. Note that not all shells are installed with every Linux distribution. DataFlex is supported under the following Linux shells: bash: Bourne Again SHell ksh: Korn SHell bsh: Bourne SHell
You can verify which shell you are running by typing this command at a terminal:
env | grep SHELL
The result will show the currently running shell (e.g. SHELL=/bin/bash). You can switch to the shell of your choice (if it is installed) by typing the shell type at the terminal (e.g. typing bash invokes a bash shell).
Installation
Prior to installing DataFlex, be sure that you have your serial number, registration name, and registration code. The evaluation license installed is preregistered. You must be logged on as the root user prior to installing
Installation and Environment Guide 9
DataFlex. Note: This manual will always refer to the default DataFlex installation location (/usr/local/df32) for all explanations. Please substitute your installed location if you are not using the default location. Installing from CD-ROM 1. Place the CD in the appropriate drive. If you are running Linux in graphical mode and your Linux version supports autorun, the CD will automatically be mounted as a filesystem and the graphical HTML DataFlex for Linux CD front-end will automatically launch in your default browser. If the browser does not automatically launch and display the graphical CD front end, please follow these steps: a. Verify that the CD is mounted: open a terminal window and type:
mount
If the CD is mounted, you should see a listing for the mounted device such as
/dev/cdrom on /mnt/cdrom
b. If the CD is not mounted, you should see no listing for /dev/cdrom or /mnt/cdrom. You can mount the cd by typing this command in a terminal window:
mount /dev/cdrom /mnt/cdrom
You should see a message on the screen telling you if the mount was successful. If it was not successful, please consult the documentation of your Linux version for help mounting the CD. Typically, you should be able to type man mount in a terminal window to see the man pages (the Linux online help) for the mount command. c.
10
Once the CD is mounted, you can start the graphical front end by clicking on the file /mnt/cdrom/start.htm
DataFlex for Linux
in the graphical file manager. You can also launch this file in any browser in a terminal window using the correct call to launch the browser with a file. For example:
2. You must create a new temporary directory on the drive you wish to install from. Create a new temporary directory and then switch to that directory. For example:
cd /usr/local mkdir tmp cd tmp
3. Extract the df32lin.tar archive from the cd to the newly created directory:
tar xvf /mnt/cdrom/install/df32lin.tar
5. The installation program will ask you to enter the directory where DataFlex should be installed, offering the default of
/usr/local/df32
WARNING: Do NOT specify an installation path that contains any uppercase letters, or the product will not run properly. If the directory used contains an existing DataFlex 3.x installation, the installation of DataFlex 3.2 is completed without overwriting the existing menu.*, query.*, flexerrs.*, and *.cfg files. If the directory contains a previous revision of DataFlex, a warning against overwriting a previous revision is displayed. If you type y to override the existing installation, a directory
Installation and Environment Guide 11
named backup is created under df32/usr. The existing menu.*, query.*, flexerrs.*, and *.cfg files are copied into it before they are overwritten in their original location along with all the other existing DataFlex system files. The installation shell script should adequately guide you through the rest of the installation. Registration The installation will automatically install a preregistered termlist.cfg and .serial_num.dfr file containing evaluation license Registration information. Follow these steps to register your license. At a terminal, change the current directory to /usr/local/df32/usr:
cd /usr/local/df32/usr
(The space after the first dot is required) Run dfsetup and follow the prompts to register your license:
dfsetup
2. If you are running in text mode: execute the setpath script by typing:
. ./setpath
(The space after the first dot is required) Setpath sets the TERM and DFTERM environment variables to linux. It also sets the TERMINFO and DFTERMINFO environment variables to find the correct terminal information files for Linux and DataFlex. By default, these environment variables are configured for
12 DataFlex for Linux
running DataFlex from the Linux console. If you plan to use other terminal types, please see Modifying Terminal Information. If you are running in graphical mode: execute the setpathx script by typing:
. ./setpathx
(The space after the first dot is required)
Setpathx sets the TERM environment variable to xterm and DFTERM to xterm-kde. It also sets the TERMINFO and DFTERMINFO environment variables to find the correct terminal information files for Linux and DataFlex. By default, these environment variables are configured for running DataFlex from the Linux console. If you plan to use other terminal types, please see Modifying Terminal Information. For text mode, the setpath script also loads a keymap file using the loadkeys command. This enables some additional keys, such as Shift+Tab, to work in this mode. The setpath and setpathx scripts also set the value of the DFPATH environment variable. The setpath and setpathx scripts are well documented via comments in the script. Please make a backup copy of these scripts before editing them. If you wish to run DataFlex in DataDictionary mode to take advantage of this new feature, set up your environment by running the setdd or setddx scripts. At this point, DataFlex can be run, but modification of its terminal information (described in Modifying Terminal Information) may be required for full keyboard functionality on your terminals. Under some terminal emulation environments, the environment variables ROWS and COLS need to be set. We recommend the settings COLS=80 and LINES=25:
COLS=80 Installation and Environment Guide 13
the most likely reason is that your terminal emulation environment is not set up correctly. Using the DFENV Environment Variable DFPATH (and the other DataFlex environment variables) can alternatively be set by means of a text file, described in the documentation, named dfenv.cfg by default (you can name it any name that is reflected in the DFENV variable). This alternative was created to deal with limitations to which Linux is not subject. If you do choose to use dfenv.cfg, you must set an environment variable called DFENV to the directory path in which the file resides (df32/usr by default from the install procedure). For example, your dfenv.cfg could contain:
DFPATH=.:/usr/local/df32/bin:/usr/local/df32/usr
We recommend not using DFENV and DFPATH at the same time; when using DFENV the contents of the dfenv.cfg file will override any environment variables of the same name (e.g. DFPATH), thus setting those environment variables while using DFENV may be misleading. Modifying Terminal Information If you are not modifying the terminfo entry, refer to Section 2.1 of the DataFlex UNIX System Administrator's Guide for specific information on your terminal. If you want to modify an existing terminal entry or create a new one, see Section 2.2 of the same guide.
14 DataFlex for Linux
You can change the directory in which DataFlex searches for your terminal entries by changing the DataFlex DFTERMINFO environment variable (i.e. DFTERMINFO=/usr/local/df32/lib/terminal forces DataFlex to search that directory for the appropriate terminal entry).
2. If you are running in text mode: Execute the setpath script by typing:
. ./setpath
(The space after the first dot is required)
If you are running in graphical mode: Execute the setpathx script by typing:
. ./setpathx
(The space after the first dot is required)
3. Run dfsetup and follow the prompts to register your new registration code:
dfsetup
No other installation or new software is required for this change. Increasing the user capacity of DataFlex in this manner may not affect applications that limit user capacity independently of DataFlexs limit. If your application does this, you must secure any needed expansions from the supplier of your application.
Installation and Environment Guide 15
Configuring DataFlex
Using DFCONFIG The Configuration Utility (dfconfig) allows you to optionally set certain attributes such as screen colors and function keys to use, which characters to use to represent money amounts, and how to format dates.
Notes:
In previous revisions of DataFlex 3, the Setup Utility allowed you to modify the DataFlex screen colors. In 3.2, you must use the dfconfig utility instead.
Default Function-Key Assignments Your DataFlex package comes with certain function keys already assigned. If you wish to change any of these assignments, then you must run the DataFlex Configuration Utility (dfconfig). Refer to the DataFlex User's Guide for more information about dfconfig. See the paragraph under "The Installation Program" about Flex-Key functionality of programs compiled under earlier revisions of DataFlex and running under the current revision. The default function key assignments are shown in the following tables, with those defined in Data Access packages followed by an asterisk (*):
16
Shift + KEY
Ctrl + KEY
User Key 2
Exit Applicatio n Clear All Panels Switch to Prev Panel* Calculate Switch to Next Panel*
F5 F6
Clear Area Switch to Next Area Find Previous Find Next Find Switch to Action Bar Accept Next Item Insert/Overty pe Toggle Delete Character Cursor Left Cursor Right Cursor Up
Refresh Screen Switch to Prev Area Superfind Previous Superfind Next Superfind Add Mode On/Off*
F7 F8 F9 F10 Enter Tab Insert Delete left arrow right arrow up arrow
Trace On/Off*
Zoom
17
KEY down arrow spacebar Backspac e Home End Page Up Page Down Esc \ + Cursor Down Selection Toggle Destructive Backspace Begin of Line End of Line Scroll Page Up Scroll Page Down Escape (Cancel)
Shift + KEY
Alt + KEY
Erase to End of Line Begin of Data End of Data Scroll Page Left Scroll Page Right
Non-WP backspace
User Counting System Upon execution of the dfsetup program, a file will be created to count concurrent users of DataFlex. This file is stored in: /usr/tmp in a file named .serial_num.dfr, where serial_num is the serial number of the DataFlex runtime (e.g. /usr/tmp/.123456.dfr). A .dfr file should not be moved or copied. It may only be created with dfsetup. Attempting to move the file or having more than one .dfr file for the same serial number may cause the file to be rejected. If the .dfr file is damaged in any way, you will receive an appropriate error message when you try to run DataFlex. You may re-create the .dfr file by running the dfsetup
DataFlex for Linux
18
program and selecting option 3. Each invocation of dfrun consumes one authorized user, regardless of whether this is on the same computer or another using the runtime. When the maximum number of users accessing DataFlex is reached and another user attempts to start it, that user will receive a message explaining the condition and will be unable to start DataFlex successfully. The user will be able to start DataFlex as soon as one or more of the current users exits DataFlex. You may purchase additional user licenses from your dealer or Data Access Corporation.
Release Notes
Be sure to read the various readme files for the newer revisions of DataFlex. They contain important information on program, feature, and command changes and additions. They are supplied on disk and may be read in the same manner as the rest of the on-line documentation.
Reader. The version supplied on the distribution media is 5.06. Note: You may also want to log on to the Adobe Web site for updates, languages, and additional plug-ins (http://www.adobe.com). If any problems should arise with Acrobat Reader, please refer to Adobe's Technical Support Department or their World Wide Web site for troubleshooting. Adobe provides Acrobat Readers for many platforms. The Adobe Acrobat Exchange package (not included) enables you to create, annotate and modify PDF files. If you decide to distribute your own PDF files, you can also create full text indexes for collections of PDF files, such as the cross-index for the DataFlex documentation. For more information about Adobe Acrobat, you may contact Adobe Systems at www.adobe.com
If the CD is mounted, you should see a listing for the mounted device such as
/dev/cdrom on /mnt/cdrom e. If the CD is not mounted, you should see no listing
for /dev/cdrom or /mnt/cdrom. You can mount the cd by typing this command in a terminal window:
mount /dev/cdrom /mnt/cdrom
You should see a messsage on the screen telling you if the mount was successful. If it was not successful, please consult the documentation for
20 DataFlex for Linux
your Linux version for help mounting the CD. Typically, you should be able to type man mount in a terminal window to see the man pages for the mount command. 2. Once the CD is mounted, you must create a new temporary directory on the drive you wish to install from. Create a new temporary directory and then switch to that directory. For example:
cd /usr/local mkdir acrobat cd acrobat
6. Start the Acrobat Reader installation and follow the onscreen prompts:
./Install
Tip: Press the spacebar (when you see --MORE--(XX%) displayed at the bottom) while viewing the Acrobat Reader license agreement until the entire agreement has been viewed, then follow the prompts. If any problems should arise with Acrobat Reader, please refer to Adobe's Technical Support Department or their World Wide Web site for troubleshooting. Adobe provides Acrobat Readers for many platforms.
After installing the Acrobat Reader as discussed above, you can access the documentation directly from the /doc directory of the CD. You may choose to copy the documentation to your hard disk, since random access is likely to be faster than when accessing it directly from the CD. If you do so, copy the entire /doc directory and all directories below it.
This document contains important information about the requirements and limitations of using the DOS components of DataFlex 3.2 on Windows NT and 2000. 3.2_Fixed_Bug_List.pdf This document contains the list of bugs that were fixed in DataFlex 3.2. Updating_to_3.01.pdf This document contains important information on upgrading applications to DataFlex 3.01 from DataFlex 3.0. Updating_to_3.05.pdf This document contains important information on upgrading applications to DataFlex 3.05 from DataFlex 3.01. Updating_to_3.1.pdf This document contains important information on upgrading applications to DataFlex 3.1 from DataFlex 3.05. Developing_Applications.pdf This document contains the Developing Applications with DataFlex manual. User_Guide.pdf This document contains the DataFlex 3 User's Guide. Class_Reference.pdf This document contains the DataFlex 3 UIMS Reference. UIMS_Handbook.pdf This document contains the DataFlex 3 UIMS Handbook. Command_Reference.pdf This document contains the DataFlex 3 Encyclopedia. 3.1_ReadMe.pdf This document contains important release notes from DataFlex
Installation and Environment Guide 23
3.1. 3.1c_ReadMe.pdf This document contains important release notes from DataFlex 3.1c. 3.1d_ReadMe.pdf This document contains important release notes from DataFlex 3.1d.
24
(The space after the first dot is required) Setpath sets the TERM and DFTERM environment variables to linux. It also sets the TERMINFO and DFTERMINFO environment variables to find the correct terminal information files for Linux and DataFlex. By default, these environment variables are configured for running DataFlex from the Linux console. If you plan to use other terminal types, please see Modifying Terminal Information. For text mode, the setpath script also loads a keymap file using the loadkeys command. This enables some additional keys, such as Shift+Tab, to work in this mode. The setpath and setpathx scripts also set the value of the DFPATH environment variable. The setpath and setpathx scripts are well documented via comments in the script. Please make a backup copy of these scripts before editing them. If you wish to run DataFlex in DataDictionary mode to take advantage of this new feature, set up your environment by running the setdd or setddx scripts.
Installation and Environment Guide 25
Using the terminal information provided in the linux_us.ti file, you can run DataFlex in Linux text mode from the Linux console using all the keys of a standard PC keyboard (such as Alt, Ctrl, and the function keys F1-F10). There are only a few key combinations that are not supported when running in this terminal environment (listed below). Please ensure that you are not using these key combinations in your source code (e.g. On_Key definitions). Ctrl+H: this key combination is predefined in most Linux shells to erase the preceding character (emulate desctructive backspace) Ctrl+J: behaves like Enter Ctrl+M: behaves like Enter Ctrl+Q: this key combination is predefined in most Linux shells to restart all screen output Ctrl+S: this key combination is predefined in most Linux shells to stop all screen output Ctrl+Backspace: behaves like backspace
80x25 (IBM PC) from the menu. d. To save these settings for future sessions, click on the Settings menu and select Save Settings. 2. Change the current directory to /usr/local/df32/usr:
cd /usr/local/df32/usr . ./setpathx
(The space after the first dot is required)
Setpathx sets the TERM environment variable to xterm and DFTERM to xterm-kde. It also sets the TERMINFO and DFTERMINFO environment variables to find the correct terminal information files for Linux and DataFlex. By default, these environment variables are configured for running DataFlex from the Linux console. If you plan to use other terminal types, please see Modifying Terminal Information. In this terminal emulation, some of the keys on a standard PC keyboard will not work and substitute keys need to be used: The F11 key substitutes for the Alt key. For example, to execute Alt+F, press F11 followed by F (do not keep the F11 key pressed while pressing F). The F12 key substitutes for the Ctrl key. For example, to execute Ctrl+F, press F12 followed by F (do not keep the F12 key pressed while pressing F). The Ctrl+X key combination substitutes for the Shift key. For example, to execute Shift+F4, press Ctrl+X simultaneously, followed by F4 (do not keep Ctrl+X pressed while pressing F4).
Installation and Environment Guide 27
The Ctrl+W key combination substitutes for the Shift+Tab key combination. The Ctrl+H key combination substitutes for the Backspace key.
To run DataFlex for Linux using terminal types or emulations other than the Linux console and the emulations described here, please see Modifying Terminal Information.
2. The path separator in Linux and Unix is /, not \, as in DOS/Windows. This may affect your application source code. 3. DOS/Windows and Linux DataFlex files (data files and programs) are binary-compatible, which means that they can be compiled on one platform and run on the other. If you transfer files between platforms using FTP, just transfer binary files using binary mode in FTP. For additional migration and update information, be sure to:
28
Read our white paper Upgrading to DataFlex 3.2, available on our Web site at:
DataFlex for Linux
http://www.dataaccess.com/whitepapers, as well as on the DataFlex 3.2 for Linux CD. Visit our Support Web site: http://www.dataacess.com/support
29
12. If you have a suggestion for a better implementation of a feature, state what was wrong with the original feature and why your suggestion is better. This first point is very important. You may discover a valid failing in a feature, which needs attention, but your suggested correction may be inappropriate for technical reasons. You can report bugs and suggestions from the Support section of our Web site: http://www.dataaccess.com/support
31
http://www.dataaccess.com, lists contact information for worldwide distributors and subsidiaries). Our hours of operation are 10:00 AM - 5:30 PM EST MondayFriday. Have your product information, serial number, and SupportNet contract number available. Give a complete concise account of the trouble you are experiencing and try to be at the machine with the problem so that our support representatives can work with you to resolve the problem.
Where to Write to Us
mailto:support@dataaccess.com Data Access Corporation 14000 SW 119 Avenue Miami, FL 33186
Where to FAX Us
305.238.0017
33