Digital Sanctum

software development, technology and other square topics

Archive for the ‘Mac OS X’ Category

Remove .svn Or Any Other Hidden Folders in OS X

without comments

Finder in OS X seems to be retarded at finding hidden files and folders. In my case, I wanted to recursively remove all .svn folders from a directory. To do this, it’s command line to the rescue:

rm -rf `find . -type d -name .svn`

Written by Shane

March 7th, 2008 at 7:55 am

Posted in Mac OS X

gem install rjb on mac os x leopard

with 5 comments

If you’ve tried installing the rjb 1.1.x gem on Mac OS X Leopard, you will probably end up with an error like:


lipo: can't open input file: /var/tmp//ccpyNy8b.out (No such file or directory)
make: *** [load.o] Error 1

In order to get around this you have to run the following commands:


sudo su -
export JAVA_HOME='/System/Library/Frameworks/JavaVM.framework/Home'
gem install rjb

Written by Shane

February 2nd, 2008 at 8:22 pm

Leopard 10.5.1 Update Wacks Administrator User Account

without comments

So I just finished updating OS X Leopard to 10.5.1 and found my default user account, which was an administrator, is now a standard user. After some Googling, I found a solution on Apple’s support site. So it seems you should NOT update unless you have the Leopard install disc handy.

Written by Shane

November 15th, 2007 at 11:40 pm

Posted in Mac OS X

Installing Oracle Instant Client on Mac OS X

with 7 comments

Installing Oracle Instant Client on Mac OS X



Getting right down to business...

  1. Download the Instant Client Packages (4 files)
  2. Unzip the files into instantclient10_1
    CODE:
    1. unzip instantclient-basic-macosx-10.1.0.3.zip
    2. unzip instantclient-sqlplus-macosx-10.1.0.3.zip
    3. unzip instantclient-sdk-macosx-10.1.0.3.zip
    4. unzip instantclient-jdbc-macosx-10.1.0.3.zip

  3. Create two symbolic links for the files that have the version appended. This is so the Ruby OCI8 driver can find what it’s looking for.
    CODE:
    1. cd instantclient10_1
    2. ln -s libclntsh.dylib.10.1 libclntsh.dylib
    3. ln -s libocci.dylib.10.1 libocci.dylib
    4. cd ..

  4. Create directory /usr/local/oracle and then copy instantclient10_1 into it
    CODE:
    1. sudo mkdir /usr/local/oracle
    2. sudo mv instantclient10_1 /usr/local/oracle/instantclient10_1

  5. Open the system /etc/profile
    sudo pico /etc/profile
  6. Add these lines to /etc/profile
    CODE:
    1. DYLD_LIBRARY_PATH="/usr/local/oracle/instantclient10_1"
    2. export DYLD_LIBRARY_PATH
    3. SQLPATH="/usr/local/oracle/instantclient10_1"
    4. export SQLPATH

    Add /usr/local/oracle/instantclient10_1 to your PATH while you have /etc/profile open. Then save it.

  7. Reload your profile

    source /etc/profile
  8. Test it out with the sqlplus command line app.
    CODE:
    1. sqlplus [username][/password]@//[hostname][:port][/database]

If you can connect with that, then you’re good to go.

Written by Shane

July 26th, 2007 at 10:57 am