Installing Hue can be tricky as the latest version Hue 4.1.0 is available only as source code and Compiling it requires a lot of dependencies and development libraries for which there is very little information available on the Internet
The best document that I could find as reference was Hue 4.1.0 Installation Guide, though there are a few packages missing in the doc
After series of trial and error came up with the below steps to Compile / Install Hue successfully
Install JDK, Hue dependencies, and development Libraries