I think those instructions should be updated. I personally would never put a program in /opt. I would usually put it in /usr/local. The reason it didn't work is because the folder that the library was in isn't in your search path, so you either need to put it in your search path or install it somewhere that is.