![]() |
s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
3. System RequirementsIn this section you will see what hardware and software requirements must be met before you can install Ingres. The ingres user, owner of the installation, makes a debut, too. 3.1. HardwareThe minimal hardware capable of running Ingres is:
3.2. SoftwareThe following software must be present for Ingres to run:
Working glibc versions:
If you are unsure of the version of your glibc, check the /lib directory:
The output should be something like:
The version of my glibc is apparently 2.1.3.
3.3. Kernel ParametersThe default settings of the Linux kernel are adequate for a development Ingres environment. For a live system, however, probably to increase the size of the database cache(s), you may want to change the built-in value of the SHMMAX parameter. This parameter sets the maximum size of a shared memory segment. By default, it is 32 Mb which allows for a somewhat lesser buffer cache. You have two choices to change the value of SHMMAX: As root, simply echo the new value into /proc/sys/kernel/shmmax:
In the example above, we set the value of SHMMAX to 80 Mb. The change takes effect immediately but after a reboot, the original value is restored. The other possibility is to change SHMMAX's default value in the kernel source (the relevant header file is /usr/src/linux/include/asm/shmparam.h if you have installed the source). In this case, you may also have to modify other parameters in the file, then rebuild the kernel. I suggest you do it only if you know what you are doing. For information on how to configure and compile the kernel see The Linux Kernel HOWTO by Brian Ward. 3.4. The ingres User and II_SYSTEMWe need an account called ingres to install and run Ingres. He will own the installed software and only he can perform system management tasks such as starting and stopping Ingres. The ingres user may belong to any group. In the following example, we will create a separate group for him. The verified (therefore, recommended) shell for the ingres user is bash. All examples in this paper apply to this shell. If you use some other shell (which is probably just as fine), take into account the differences in syntax. The binaries, shared libraries, configuration files and other files which make up the Ingres software, will be located in a tree structure after installation. You will set the root of this tree via the shell variable II_SYSTEM in the environment of the ingres user (to be exact, the root directory will be $II_SYSTEM/ingres). If you plan to install the whole software, either the SDK, or the full version, make sure you have the following free space under $II_SYSTEM/ingres:
10 Mb extra free space is needed during installation.
In the following, I will assume that II_SYSTEM is set to /opt. Logging in as root, execute the tasks mentioned above:
The useradd command creates a group with the same name as the new user if you do not specify the group on the command line. It also creates the user's home directory. We set the home directory of ingres to /opt/ingres ($II_SYSTEM/ingres). This is not mandatory but convenient. Finally, append the following lines to the .bashrc file of ingres:
ING_EDIT sets the editor that can be called from Ingres utilities or application programs. Naturally, you can use any editor, not just vi. You must, however, specify the whole access path to the program. (If you stick to vi, check if it is under /bin: it may be somewhere else in your system.)
Setting TERM_INGRES is necessary for the terminal to work properly. Forms-based Ingres utilities, such as the installer itself, and also applications created with traditional Ingres development tools (ABF, Vision) make heavy use of function keys. The .bashrc above sets TERM_INGRES according to the terminal type (X, or VT100-like). These settings must be included in the .bashrc file of every Ingres user. |