2
1
I get the following error when I run the import
command of ImageMagick from command-line
import: unable to open X sever '(null)' @error /import.c/ImportImageCommand/362 [No such file or directory]
However, I have installed X-Server and it is launched in my task-bar. Even then I get this error.
Could you please provide me with some relevant links or solutions.
Try the localhost:0.0 instead – whitequark – 2010-08-23T06:48:07.260
but what that means , i tried
localhost
it gives me this error
'localhost' is not recognized as an internal or external command, operable program or batch file. – Muhammad Irfan – 2010-08-23T06:50:36.643
i am not using php and i just want to capture image from command-line through imagicmagick?? – Muhammad Irfan – 2010-08-23T06:52:38.073
I thought that ImageMagick doesn't have an address of X server to connect to, and that is reason of this error, but apparently it isn't. – whitequark – 2010-08-23T07:09:38.717
1@Muhammad Irfan: The error means that the DISPLAY variable is not set. If you get "localhost' is not recognized as a command", then you made a mistake setting it. Try
set DISPLAY=:0
orset DISPLAY=127.0.0.1:0
; many Windows installations don't know "localhost". – Aaron Digulla – 2010-08-23T08:08:29.203@Aaron, that's interesting. Isn't it aliased in
hosts
by default? – whitequark – 2010-08-23T08:15:42.903@whitequark: It should be in hosts but it's not by default. – Aaron Digulla – 2010-08-23T13:26:30.660
And the hosts file is located in windows/system32/driver/etc/hosts i checked that file and when i install Flashcs5 and FlashBuilder4, i changed host file data.. i am at imageMagick directory and set DISPLAY=127.0.0.1:0; it works, gives no error but import.. gives SAME ERROR again. – Muhammad Irfan – 2010-08-24T06:42:41.807