I'm new to Linux, and I had this same problem, I tried to do what reddazz suggested but it didn't work for me. Since this was the top link when I searched I figured I should add what I did that helped me.
I made a symbolic link (I had to be root to do it). Then everything worked fine (so far).
Code:
ln -s /usr/local/lib/libgaim.so.0 /usr/lib/libgaim.so.0