Fast scala compiler: unable to connect to compilation daemon

I have an ubuntu machine under OpenVZ virtualization. When I run fsc test.scala, I get:

Unable to establish connection to compilation daemon

Then it ps auxshows me a lot of processes that look like

ren      17482  0.0  0.0   4908  1400 pts/0    S    00:29   0:00 /bin/bash --posix /usr/bin/scala -Djava.net.preferIPv4Stack=true scala.tools
ren      17490  0.2  0.5 1246676 24268 pts/0   Sl   00:29   0:00 java -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Xbootc

I have run out of ideas on how to do this, version Scala code runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL. Any ideas?

Edit:

Found this , so

  • selinux is not installed
  • export | grep SCALA doesn't return anything, however scalac and SCALA compiling / working fine, so I assume this step is ok
  • ping localhost - works
  • fsc - reset - same error
  • fsc -verbose -> logfile.log 2> & 1 produces this:
Fast Scala compiler version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL
[Given arguments: -verbose]
[Transformed arguments: -verbose -current-dir /home/ren]
[VM arguments: ]
[Temp directory: /tmp/scala-devel/ren]
[Port number: 36737]
java.net.SocketException: Invalid argument or cannot assign requested address
[Connecting to compilation daemon at port 36737 failed; re-trying...]
No compile server running: starting one with args ''
[Executing command: scala scala.tools.nsc.CompileServer -v]
Starting CompileServer on port 34962
Redirect dir is /tmp/scala-devel/ren/output-redirects
[Port number: 34962]
java.net.SocketException: Invalid argument or cannot assign requested address
[Connecting to compilation daemon at port 34962 failed; re-trying...]
[Port number: 34962]
java.net.SocketException: Invalid argument or cannot assign requested address
[Connecting to compilation daemon at port 34962 failed; re-trying...]
No compile server running: starting one with args '' and so on ...

Edit 2:

, scala scala.tools.nsc.CompileServer -v ! , , fsc , - , . fsc -server localhost:port test.scala . .

+5
1

, fsc hostname . ping. localhost /etc/hostname .

+3

All Articles