Skip to content

Instantly share code, notes, and snippets.

@tcaddy
Created May 14, 2013 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcaddy/5577673 to your computer and use it in GitHub Desktop.
Save tcaddy/5577673 to your computer and use it in GitHub Desktop.
ENV setup to make oracle db connection work before executing Rails/irb (this is for the ruby-oci8 Rubygem)
#!/bin/sh
export ORACLE_HOME=/usr/lib/oracle/11.1/client
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export PATH=$PATH:$ORACLE_HOME/bin
exec "/usr/bin/ruby" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment