(PMT:6498): Gtk-WARNING **: cannot open display:

Error message:

 
(PMT:6498): Gtk-WARNING **: cannot open display:

How to solve this issue in linux?

More information is needed. All we know at this point is that you have a graphical application and it apparently wasn't able to connect to the X Server. How are you connecting? Is it through ssh, console, or graphical terminal?