First, the following packages are to be downloaded -
The packages are to be untarred in a convinient location like /usr/local/
Set the variable PKG_CONFIG_PATH as
Then build scim, m17n-lib,scim-m17n, and then finally scim-tables.
After these packages are built, the following command was given as root
#gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
Then the folowing lines are to be added to /etc/profile.d/lang.sh
Care must be employed as the above commands are case-sensitive.
Then rebooted the system and started scim as -
$ scim -d
If everything goes smoothly, we should be able to enter text in Hindi.