error "/xxx/xx//ruby: no such file to load -- ubygems (LoadError)" while running ora_setup
説明
While running ora_setup against a new SharePlex 8.6.1 installation, you get the following error:
"/db/app/oracle/acfsmounts/data_shareplex1/prod/.meta-inf/tools/bin/ruby: no such file to load -- ubygems (LoadError)".
原因
There is other Ruby installed from outside of SharePlex, and the following environment variables are set to point to the installation of outside of Shareplex:
RUBYROOT, RUBYOPT and RUBYLIB
対策
Workaround:
Unset RUBYROOT, RUBYOPT and RUBYLIB environment variables as below:
unset RUBYROOT
unset RUBYOPT
unset RUBYLIB
追加情報
This issue can happen in any version of SharePlex. An enhancement request has been created to have ora_setup check the environment to see if the variables are set, then to unset them automatically. Enhancement request ID JIRA-1024.