Monday, February 28, 2011

Could not open library 'xml2' 'libxml2.so'


Could not open library 'xml2' : xml2:
cannot open shared object file: No such file or directory.
Could not open library 'libxml2.so' :
libxml2.so: cannot open shared object file: No such file or directory
(LoadError)


To fix the issue, please run the following command:


sudo apt-get install ruby1.8-dev
sudo apt-get install libxml2 libxml2-dev libxslt1-dev

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

When running my 'ant' script I get the following error:


Unable to locate tools.jar.
Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar


To solve it, I need to install java-sdk:


sudo apt-get install openjdk-6-jdk

Thursday, February 10, 2011

Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80

This is my first time trying to install an Apache server on my Windows XP machine. Previously I was using IIS. I installed Apache 2.2 and was using the self installation program provided by Apache.

Upon installing Apache, I immediately received the following errors;


The Apache service named reported the following error:
(OS 10048)Only one usage of each socket address
(protocol/network address/port) is normally permitted.
: make_sock: could not bind to address 0.0.0.0:80 .





It seems that the error was saying that there was a conflict in using the port 80. My natural response was to stop my windows firewall. However, it did not work. I was finally able to figure out the issue and it was because I was still running IIS on my Windows machine and therefore there was a conflict between Apache and IIS server.

I uninstalled IIS and I can immediately start Apache server with no problems.