title: Operation Not Permitted in SBT / Typesafe Activator inside Vagrant Synced Folder
body: <p>I'm running SBT through the Typesafe Activator on an Ubuntu machine provisioned by Vagrant / Virtualbox. The host machine is Windows 8.  </p>
  
  <p>I'm trying to compile a Play project <a href="https://github.com/markisus/ScalaPoker" rel="nofollow">https://github.com/markisus/ScalaPoker</a> by entering the commands <code>./activator</code> (or <code>sudo ./activator</code>) and then <code>compile</code> after cloning the repo on to the machine. <strong>The repo is inside a synced folder</strong>. I think this is the root of the problem.</p>
  
  <p>I get the error <code>Operation not permitted</code> in:    </p>
  
  <pre><code>[info] Compiling 34 Scala sources to /home/vagrant/sp2/ScalaPoker/ScalaPokerEngine/target/scala-2.11/classes...
  [error] Operation not permitted
  [error] one error found
  [error] (ScalaPokerEngine/compile:compile) Compilation failed
  [error] Total time: 91 s, completed Jan 26, 2015 4:29:22 AM  
  </code></pre>
  
  <p>I'm not sure which operation exactly is not permitted. The project compiles fine on my host machine.  </p>
  
  <p>Running <code>last</code>, I get  </p>
  
  <pre><code>[debug] Running cached compiler e13c8f, interfacing (CompilerInterface) with Scala compiler version 2.11.1
  [debug] Calling Scala compiler with arguments  (CompilerInterface):
  [debug]         -bootclasspath
  [debug]         /usr/lib/jvm/java-6-openjdk-i386/jre/lib/resources.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/rt.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/jsse.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/jce.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/charsets.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/jfr.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/netx.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/plugin.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/rhino.jar:/usr/lib/jvm/java-6-openjdk-i386/jre/classes:/root/.ivy2/cache/org.scala-lang/scala-library/jars/scala-library-2.11.1.jar
  [debug]         -classpath
  [debug]         /home/vagrant/sp2/ScalaPoker/ScalaPokerEngine/target/scala-2.11/classes
  [error] Operation not permitted
  [error] one error found
  [debug] Compilation failed (CompilerInterface)
  [error] (ScalaPokerEngine/compile:compile) Compilation failed
  </code></pre>
  
  <p>So it looks like I'm not allowed to run the Scala compiler? I'm not sure where Activator puts the Scala compiler and now I'm stuck.</p>
  
  <p>Settings for the virtual machine (Vagrantfile and salt files) can be found here <a href="https://github.com/markisus/ActivatorVagrant/tree/scalapoker" rel="nofollow">https://github.com/markisus/ActivatorVagrant/tree/scalapoker</a></p>