Thursday, May 29, 2008

Random Ubuntu Sillyness

Earlier today I wanted to use the OpenCV libraries to run a program I was working on, and I didn't have the libraries installed. There weren't any binaries available for Ubuntu 'Gutsy', so I went ahead and compiled the libraries myself. After wrangling with make and the compiler for a while, I finally got things set up and compiled the way I wanted. Fair enough. Afterwards, I compiled my program, no sweat. Then I tried to run my program, a straightforward task, except the loader came back and told me the libraries I just compiled and installed were no where to be found!!!!11!

Why? Apparently, the libraries were placed in /usr/local/lib, but the /etc/ld.so.conf file didn't know to search that directory by default. All I had to do was add /usr/local/lib to the end of the file and walk away, but still, it's silly to have to do such a thing because that's where libraries go by default.

What a crazy world.