I am running oracle DBD installation perl script which returns an error
~$ sudo perl -MCPAN -e 'install DBD::Oracle'
The ORACLE_HOME environment variable is not set and I couldn't guess it.
It must be set to hold the path to an Oracle installation directory
on this machine (or a machine with a compatible architecture).
See the appropriate troubleshooting guide for your OS for more information.
''
~$ whereis perl
output
perl: /usr/bin/perl /usr/bin/perl5.30-x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/perl /usr/local/lib/x86_64-linux-gnu/perl /etc/perl /usr/share/perl /usr/share/man/man1/perl.1.gz
''
~$ echo $ORACLE_HOME
output
/u01/app/oracle/product/11.2.0/xe
and
~$ echo $LD_LIBRARY_PATH
output
/u01/app/oracle/product/11.2.0/xe/lib
i tried re installing perl5, oracle and ora2pg but still getting the same error. I am completely confused.