-
Notifications
You must be signed in to change notification settings - Fork 0
Robot Framework and cx_Oracle on RHEL CentOS
Naresh Surisetty edited this page Feb 12, 2017
·
3 revisions
Python is mandatory for this (By Default python is default for all Linux distributions) if u like to install any other version of python follow this article. (Python installtion on RHEL)
- 1. Configure Oracle Instant Client
- 2. Install pip module for Python Package Management
- 3. Download and Configure pip cx_Oracle module
- 4. Install required Robot Framework & supporting Libraries
- 5. Test whether the installations were proper or not
> curl -O http://repo.dlt.psu.edu/RHEL5Workstation/x86_64/RPMS/oracle-instantclient12.1-basic-12.1.0.1.0-1.x86_64.rpm
> curl -O http://repo.dlt.psu.edu/RHEL5Workstation/x86_64/RPMS/oracle-instantclient12.1-devel-12.1.0.1.0-1.x86_64.rpm
> sudo rpm -ivh *.rpm
> echo export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib/ >> ~/.bashrc
> echo export ORACLE_HOME=/usr/lib/oracle/12.1/client64 >> ~/.bashrc
> echo export PATH=$ORACLE_HOME/bin:$PATH >> ~/.bashrc
This also throws them into the bashrc so they will be there next time.
> curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
> python get-pip.py
> wget https://pypi.python.org/packages/0f/52/b441ff86b4ac71bcb324045f5898021fc1421f025d77e9932733815eaf48/cx_Oracle-5.2.1-12c-py27-1.x86_64.rpm
> sudo rpm -ivh cx_Oracle-5.2.1-12c-py27-1.x86_64.rpm
cx_Oracle
lxml
robotframework
robotframework-httplibrary
robotframework-requests
robotframework-selenium2library
> pip install -r requirements.txt
> python -c "import cx_Oracle"
NOTE: If this returned without any error that means the installation was proper.
> pybot --version
OR
> robot --version
NOTE: You can use any of the above mentioned commands to verify the installation of Robot Framework and it should return the version of package installed.
written with <3 by naresh_surisetty a.k.a devilrancy