Archive for the ‘Mac OS X’ Category
Remove .svn Or Any Other Hidden Folders in OS X
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`
gem install rjb on mac os x leopard
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
Leopard 10.5.1 Update Wacks Administrator User Account
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.
Installing Oracle Instant Client on Mac OS X
Getting right down to business...
- Download the Instant Client Packages (4 files)
- Unzip the files into
instantclient10_1CODE:-
unzip instantclient-basic-macosx-10.1.0.3.zip
-
unzip instantclient-sqlplus-macosx-10.1.0.3.zip
-
unzip instantclient-sdk-macosx-10.1.0.3.zip
-
unzip instantclient-jdbc-macosx-10.1.0.3.zip
-
- Create two symbolic links for the files that have the version appended. This is so the Ruby
OCI8driver can find what it’s looking for.CODE:-
cd instantclient10_1
-
ln -s libclntsh.dylib.10.1 libclntsh.dylib
-
ln -s libocci.dylib.10.1 libocci.dylib
-
cd ..
-
- Create directory
/usr/local/oracleand then copyinstantclient10_1into itCODE:-
sudo mkdir /usr/local/oracle
-
sudo mv instantclient10_1 /usr/local/oracle/instantclient10_1
-
- Open the system
/etc/profile
sudo pico /etc/profile - Add these lines to
/etc/profileCODE:-
DYLD_LIBRARY_PATH="/usr/local/oracle/instantclient10_1"
-
export DYLD_LIBRARY_PATH
-
SQLPATH="/usr/local/oracle/instantclient10_1"
-
export SQLPATH
Add
/usr/local/oracle/instantclient10_1to yourPATHwhile you have/etc/profileopen. Then save it. -
- Reload your profile
source /etc/profile
- Test it out with the
sqlpluscommand line app.CODE:-
sqlplus [username][/password]@//[hostname][:port][/database]
-
If you can connect with that, then you’re good to go.
