Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nolstedt/84d63b18553845cd5e1b to your computer and use it in GitHub Desktop.
Save nolstedt/84d63b18553845cd5e1b to your computer and use it in GitHub Desktop.

Revisions

  1. @pythonicrubyist pythonicrubyist revised this gist May 22, 2014. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions ruby_env_setup_on_os x_mavericks
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,24 @@
    # Instlled Xcode, Github and Sublime Text 3
    # Instlled Xcode, Github and Sublime Text 3 by runing their installation packages.

    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    git config --global user.name "Your Full Name"
    git config --global user.email "Your Email Address"

    brew doctor
    # Homebrew Installation:

    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    brew doctor
    echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile

    git config --global user.name "Your Full Name"
    git config --global user.email "Your Email Address"

    echo "gem: --no-document" >> ~/.gemrc
    # RVM Installation:

    echo "gem: --no-document" >> ~/.gemrc
    \curl -sSL https://get.rvm.io | bash -s stable --autolibs=enable

    echo source ~/.profile >> ~/.bash_profile

    # Installing Oracle Client
    # Oracle Client Installation

    # Download Oracle client from the follwoing links:
    http://blog.codiez.co.za/2013/09/setup-oracle-instant-client-ruby-oci8-gem-mac/
    # Download Oracle basic client, SQLplus and SDK packages for Mac OSX 64bit from the follwoing link:
    http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

    cd ~/Downloads
    @@ -64,7 +64,7 @@ ln -s libocci.dylib.11.1 libocci.dylib

    gem install ruby-oci8

    # reference: http://blog.codiez.co.za/2013/09/setup-oracle-instant-client-ruby-oci8-gem-mac/
    # MySQL Installation:

    brew install mysql
    mysql.server start
    @@ -73,6 +73,6 @@ mysql.server stop
    gem install mysql2


    @INstalling Java
    # Java Installation:

    http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html
  2. @pythonicrubyist pythonicrubyist created this gist May 22, 2014.
    78 changes: 78 additions & 0 deletions ruby_env_setup_on_os x_mavericks
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,78 @@
    # Instlled Xcode, Github and Sublime Text 3

    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

    brew doctor

    echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile

    git config --global user.name "Your Full Name"
    git config --global user.email "Your Email Address"

    echo "gem: --no-document" >> ~/.gemrc

    \curl -sSL https://get.rvm.io | bash -s stable --autolibs=enable

    echo source ~/.profile >> ~/.bash_profile

    # Installing Oracle Client

    # Download Oracle client from the follwoing links:
    http://blog.codiez.co.za/2013/09/setup-oracle-instant-client-ruby-oci8-gem-mac/
    http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

    cd ~/Downloads
    unzip -qq instantclient-basic-macos.x64-11.2.0.4.0.zip
    unzip -qq instantclient-sqlplus-macos.x64-11.2.0.4.0.zip
    unzip -qq instantclient-sdk-macos.x64-11.2.0.4.0.zip

    cd instantclient_11_2
    mkdir -p /usr/local/oracle/product/instantclient_64/11.2.0.4.0/bin
    mkdir -p /usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib
    mkdir -p /usr/local/oracle/product/instantclient_64/11.2.0.4.0/jdbc/lib
    mkdir -p /usr/local/oracle/product/instantclient_64/11.2.0.4.0/rdbms/jlib
    mkdir -p /usr/local/oracle/product/instantclient_64/11.2.0.4.0/sqlplus/admin

    mv ojdbc* /usr/local/oracle/product/instantclient_64/11.2.0.4.0/jdbc/lib/
    mv x*.jar /usr/local/oracle/product/instantclient_64/11.2.0.4.0/rdbms/jlib/

    # rename glogin.sql to login.sql
    mv glogin.sql /usr/local/oracle/product/instantclient_64/11.2.0.4.0/sqlplus/admin/login.sql

    # Move lib & sdk
    mv *dylib* /usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib/
    mv sdk /usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib/sdk

    mv *README /usr/local/oracle/product/instantclient_64/11.2.0.4.0/
    mv * /usr/local/oracle/product/instantclient_64/11.2.0.4.0/bin/

    touch ~/.oracle_client

    echo export ORACLE_BASE=/usr/local/oracle >> ~/.oracle_client
    echo export ORACLE_HOME=$ORACLE_BASE/product/instantclient_64/11.2.0.4.0 >> ~/.oracle_client
    echo export PATH=$ORACLE_HOME/bin:$PATH >> ~/.oracle_client
    echo export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib:$DYLD_LIBRARY_PATH >> ~/.oracle_client
    echo export TNS_ADMIN=$ORACLE_BASE/admin/network >> ~/.oracle_client
    echo export SQLPATH=$ORACLE_HOME/sqlplus/admin >> ~/.oracle_client

    echo "source ~/.oracle_client" >> ~/.bash_profile
    source ~/.bash_profile

    cd /usr/local/oracle/product/instantclient_64/11.2.0.4.0/lib
    ln -s libclntsh.dylib.11.1 libclntsh.dylib
    ln -s libocci.dylib.11.1 libocci.dylib

    gem install ruby-oci8

    # reference: http://blog.codiez.co.za/2013/09/setup-oracle-instant-client-ruby-oci8-gem-mac/

    brew install mysql
    mysql.server start
    mysql -uroot
    mysql.server stop
    gem install mysql2


    @INstalling Java

    http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html