- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Unable to establish connection to compilation daemon
Wed, 2011-05-11, 15:27
I had this error message on Debian with scala 2.8.1, which prevented
me from runing scala scripts in terminal. (ex. scala hello.scala)
After some research I found this solution to fix the problem
Scala-Unable to establish connection to compilation daemon
– MY SOLUTION –
add this line to /etc/hosts:
0.0.0.0 MY_HOST_NAME
this fixed the problem for me. other solutions with adding '127.0.0.1
YOUR_HOST_NAME' didn’t work. MY_HOST_NAME is to be replaced with the
output of ‘hostname’ command run in the termanal. I also removed
MY_HOST_NAME from other lines in /etc/hosts
I spent a couple of hours finding this out, so I hope this will be
helpful to others who encountered this obstacle :)
one more remark, for this to work don't use -
Djava.net.preferIPv4Stack=true' option when running fsc (which I also
tried out, as a possible fix)