Step 3 Execute the install script requires root privileges

Install LANSA on Linux

Step 3. Execute the install script (requires root privileges)

1.  Change directory to the install directory and execute the installation script to create the LANSA tables and copy files to their correct locations.

For a default installation, that is, installing LANSA for Linux only, the following command line will check if the provided options are valid:

      cd <Install image directory>

      ./vlinstall.py -I <LANSAXROOT> -O <LANSA Owner> -G <LANSA Group> \

          -D <Data source name> -u <Oracle username> -p <Oracle password> \

          --create-dsn --oracle-server=<Oracle host> --oracle-sid=<Oracle SID>

 

Oracle Instant Client will be installed immediately if it is found to be missing. The command will report if the options appear to be correct but nothing further will be installed until you run the installation. If an error is reported, adjust the command lines according to the error reported. If there is no error, then start the installation by adding the --Commit option to the command line. The command line becomes:

      cd <Install image directory>

      ./vlinstall.py -I <LANSAXROOT> -O <LANSA Owner> -G <LANSA Group> \

          -D <Data source name> -u <Oracle username> -p <Oracle password> \

          --create-dsn --oracle-server=<Oracle host> --oracle-sid=<Oracle SID> \

          --commit

 

For a full or customised installation, run the following command to see the full list of options for the installer:

      ./vlinstall.py -h

 

For instance, if you install the LANSA for the Web Apache Module or LANSA Integrator for Linux, you will need to provide addition options relating to your current Apache Web Server configuration.

2.  Once the install script has been completed, check the output to ensure no problems occurred during the install. Make sure that there are no "RUNSQL ended in error" messages. These messages have a non-zero Return code. For further information, refer to the Troubleshooting notes in the Deploying LANSA Applications on Linux Guide, if necessary.