I am able to compile my own but am unable to make it STATIC and get "error while loading shared libraries" when i run it on another linux pc
Maybe on the other linux you don't have all the dependencies installed or they are not updated or the libraries are in different places.
Have tried ldconfig command?