Skip to content

Instantly share code, notes, and snippets.

@nowhereman
Created October 1, 2009 15:36
Show Gist options
  • Save nowhereman/199050 to your computer and use it in GitHub Desktop.
Save nowhereman/199050 to your computer and use it in GitHub Desktop.
Fix ruby-oci8 gem install on Ubuntu 8.10
sudo env LD_LIBRARY_PATH=$LD_LIBRARY_PATH ORACLE_HOME=$ORACLE_HOME gem install ruby-oci8
#Fix ruby-oci8 gem install on Ubuntu
#Because LD_LIBRARY_PATH env var isn't recognize by last Ruby EE 1.8.6
#In the file $RUBY_HOME/lib/ruby/gems/1.8/gems/ruby-oci8-*/ext/oci8/oraconf.rb
#add this line
ENV['LD_LIBRARY_PATH']||='/usr/lib/oracle/10.2.0.4/client/lib'#Lib path of Oracle Instant Client
#before the line #489
@@ld_envs.each do |env|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment