wataradio
wataradio

Reputation: 85

can't run a scala script on Mac OS X

Running a scala script on Mac OS X results in the following error:

Unable to establish connection to compilation daemon

I found a page reporting the same problem:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=576568

To solve the problem, the page said:

Can you please tell what does /etc/sysctl.d/bindv6only.conf contain?

If the value is 1, can you try to:

1) sudo sed -i 's/net.ipv6.bindv6only\ =\ 1/net.ipv6.bindv6only\ =\ 0/' \ /etc/sysctl.d/bindv6only.conf && sudo invoke-rc.d procps restart

2) Then, run scala/fsc as usual and see if the bug is still there.

But I can't find a bindv6only.conf in my Mac OS X. How can I solve the problem?

-- System Information:

Scala version 2.7.7.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20)

Mac OS X 10.6.3

Upvotes: 1

Views: 933

Answers (1)

Brian Agnew
Brian Agnew

Reputation: 272247

Have you tried setting the Java property java.net.preferIPv4Stack to disable Java's IPv6 ?

For more details see here.

Upvotes: 3

Related Questions