"LuisGLopez" <············@gmail.com> writes:
> I'm sorry; I think this is not a pure lisp issue, but I don't know any
> other place for finding help for this...
>
> I'm trying to re-run an old app; it worked perfect with my old linux
> distro (Mandrake 10.0); but now (Ubuntu 5.10), it gives me this error:
>
> ---------
> Error in function CONNECT-TO-INET-SOCKET:
> Error connecting socket to [localhost:6000]: Connection refused
> [Condition of type SIMPLE-ERROR]
>
> Restarts:
> 0: [ABORT] Abort handling SLIME request.
> 1: [ABORT] Return to Top-Level.
>
> Backtrace:
> 0: (CONNECT-TO-INET-SOCKET "localhost" 6000 :STREAM)
> 1: (XLIB::OPEN-X-STREAM "localhost" 0 :TCP)
> 2: (XLIB:OPEN-DISPLAY "localhost" :DISPLAY 0 :PROTOCOL ...)
> 3: (OPEN-WINDOW)
> 4: (MANDELBROT :|MáXIMO| 100 :X0 -2.0 ...)[:OPTIONAL]
> --more--
> ----------
Your CLX is attempting to connect over TCP, whereas your X server is
not listening there; it is probably only listening on a unix socket.
At a guess, your $DISPLAY environment variable is something like
localhost:0.0 (where it should be :0.0 or unix:0.0 to request a unix
socket connection), or else your display-variable parsing code is
wrong (probably the latter).
You may be interested in the code to parse the display variable in
either McCLIM, Backends/CLX/port.lisp, function PARSE-CLX-SERVER-PATH,
or else the similar code in the portable-clx darcs repository.
Christophe
Christophe Rhodes wrote:
> Your CLX is attempting to connect over TCP, whereas your X server is
> not listening there; it is probably only listening on a unix socket.
> At a guess, your $DISPLAY environment variable is something like
> localhost:0.0 (where it should be :0.0 or unix:0.0 to request a unix
> socket connection), or else your display-variable parsing code is
> wrong (probably the latter).
>
> You may be interested in the code to parse the display variable in
> either McCLIM, Backends/CLX/port.lisp, function PARSE-CLX-SERVER-PATH,
> or else the similar code in the portable-clx darcs repository.
Hi!
Hey! You are great! Trying to follow your advice (I don't know much
about X server, sockets, etc.), I just change this line:
(host-name (if (zerop colon) "localhost" (subseq s 0 colon)))
into this:
(host-name (if (zerop colon) "" (subseq s 0 colon)))
and it worked!
I don't know if it's elegant... but it worked ;)
Thank you so much,
Luis.