Last active
October 12, 2015 04:38
-
-
Save voidius/3972064 to your computer and use it in GitHub Desktop.
How to get running a Rails project that uses Instant Client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Probably you will need to start with removing all your ruby stuff :) | |
rvm uninstall all | |
# Install just 32bit ruby | |
# NB! I failed with ruby-1.9.3, so... | |
rvm install 1.9.2 -n i386 --with-arch=i386 | |
# Then 32bit libyaml | |
CONFIGURE_OPTS="--with-arch=i386" CFLAGS="-arch i386" LDFLAGS="-arch i386" rvm pkg install libyaml | |
# Then reinstall 32bit ruby for libyaml support | |
rvm reinstall 1.9.2 -n i386 --with-arch=i386 | |
# Get Instant Client Basic and SDK from here | |
# http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html | |
# unpack somewhere IC Basic, put IC SDK into it | |
# Add these lines to ~/.bash_profile | |
export DYLD_LIBRARY_PATH="/Users/<user_name>/Development/libs/instant_client_10_2/" | |
export SQLPATH="/Users/<user_name>/Development/libs/instant_client_10_2/" | |
export TNS_ADMIN="/usr/local/oracle/network/admin" | |
export NLS_LANG="AMERICAN_AMERICA.UTF8" | |
export PATH=$PATH:$DYLD_LIBRARY_PATH | |
# install gems | |
bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment