Really just a link to this site:
http://www.linuxpowertop.org/powertop.php
Worth a look though.
Thursday, May 24, 2007
Wednesday, May 9, 2007
Debugging an install
I was trying to install a program and couldn't work out what was going wrong. It looked like it compiled okay but when I tried to run it the linked shared objects weren't there.
So, in order to find out what was happening I had to run the following to check out the compiled program.
This tells me that although the program compiled okay there the first library isn't found in the LD_LIBRARY_PATH. Now I had set this variable in my own bash profile, but not in apache's. So when I ran this program in a server through cgi the fucking thing didn't work. Adding the right environment to /etc/profile enabled everyone access to the correct path for the library. Success.
./exa_c: error while loading shared libraries: libdislin.so.9: cannot open shared object file: No such file or directory
So, in order to find out what was happening I had to run the following to check out the compiled program.
ldd exa_c
libdislin.so.9 => not found
libm.so.6 => /lib64/libm.so.6 (0x00002ba378eeb000)
libc.so.6 => /lib64/libc.so.6 (0x00002ba379141000)
/lib64/ld-linux-x86-64.so.2 (0x00002ba378ccd000)
This tells me that although the program compiled okay there the first library isn't found in the LD_LIBRARY_PATH. Now I had set this variable in my own bash profile, but not in apache's. So when I ran this program in a server through cgi the fucking thing didn't work. Adding the right environment to /etc/profile enabled everyone access to the correct path for the library. Success.
Tuesday, May 8, 2007
openBSD 3.2 Sucks
Just in case there was any doubt. I then went and asked one of the BSD admins about my problem and he just shrugged saying "That's odd, it normally just works". Wankers.
pkg_add - its like apt-get but for gays. That will be all the bsd commands you'll get from me.
pkg_add - its like apt-get but for gays. That will be all the bsd commands you'll get from me.
Subscribe to:
Posts (Atom)