Skip to content

Instantly share code, notes, and snippets.

@ebeigarts
Created September 1, 2009 22:48
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 ebeigarts/179442 to your computer and use it in GitHub Desktop.
Save ebeigarts/179442 to your computer and use it in GitHub Desktop.
Ruby + Oracle + Snow Leopard
= Ruby + Oracle + Snow Leopard
Jāuzliek 64bit InstantClient:
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/intel_macsoft.html
$ su -
$ export DYLD_LIBRARY_PATH=/path/to/instantclient
$ cd /path/to/instantclient && ln -s libclntsh.dylib.10.1 libclntsh.dylib
$ gem uninstall ruby-oci8 --all --executables --ignore-dependencies
$ rm -rf /Library/Ruby/Gems/1.8/gems/ruby-oci8-*
$ ARCHFLAGS="-arch x86_64" gem install ruby-oci8
$ ARCHFLAGS="-arch x86_64" gem install ruby-oci8 -v 1.0.6
Vajadzīgs ja lieto veco activerecord-oracle-adapter:
$ tar zxf ./ruby-oci8-1.0.6.tar.gz
$ cd ruby-oci8-1.0.6
$ ARCHFLAGS="-arch x86_64" make && make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment