Thursday, October 27, 2011

Ubuntu: Running Dynamo Executable: No such file or directory

Symptom:

root@testMachine:~/iometer-2006_07_27.linux.i386-bin/src# ls
dynamo  iomtr_kstat  scripts
root@testMachine:~/iometer-2006_07_27.linux.i386-bin/src# ./dynamo
-bash: ./dynamo: No such file or directory

For this case, you need to make sure you have ia32-libs installed. To check whether the package is installed, run:

root@testMachine:/# dpkg -l ia32-libs
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  ia32-libs      20090808ubuntu ia32 shared libraries for use on amd64 and i

if it shows "un", meaning ia32-libs is not installed. If is installed, it will show "ii".

Install ia32-libs by

apt-get install ia32-libs

* Please note that, for simplicity, i using root account to run the above command, you might need to add sudo in front of the above commands if you are not using root account.

Thursday, October 13, 2011

dpkg : status database area is locked by another process while trying to install

This will happen if you accidentally kill the apt-get process and dpkg become orphan process. To solve this problem you can either

Reboot your server or do the following:

sudo rm /var/lib/dpkg/lock

sudo dpkg --configure -a