clojure-jack-in : error in process filter: open-network-stream: make client process failed: Connecti

clojure-jack-in 启动出错

出错信息如下:

Connecting to Swank on port 65280.. [2 times]
error in process filter: open-network-stream: make client process failed: Connection refused, :name, SLIME Lisp, :buffer, nil, :host, localhost, :service, 65280, :nowait, nil
error in process filter: make client process failed: Connection refused, :name, SLIME Lisp, :buffer, nil, :host, localhost, :service, 65280, :nowait, nil

解决办法如下:

My hostname was set to "localhost" which is why the underlying dns lookup was returning the actual interface, not the loopback. Here's the fix:

localhost:~ amitava$ sudo scutil --set HostName amitava.local
amitava:~ amitava$ scutil --get HostName
amitava.local
amitava:~ amitava$ clj
Clojure 1.3.0
user=> (import 'java.net.InetAddress)
java.net.InetAddress
user=> (InetAddress/getByName "localhost")
#
user=> 

详细见:

https://github.com/technomancy/swank-clojure/issues/68

你可能感兴趣的:(Clojure)