title: Fatal Error: Object scala not found
body: <p>I just installed scala via macports on osx</p>
  
  <p>sudo port install scala28</p>
  
  <p>I created a simple script called test.scala</p>
  
  <pre><code>println("hello world")
  </code></pre>
  
  <p>when I run it via</p>
  
  <p>scala test.scala</p>
  
  <p>I get the following error:</p>
  
  <pre><code>scala test.scala 
  error: fatal error: object scala not found.
  one error found
  </code></pre>
  
  <p>any ideas?</p>
  
  <p>** UPDATE ** 
  Running from the REPL yields the correct results but still unable to use "scala" directly</p>
  
  <pre><code>Welcome to Scala version 2.8.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24).
  Type in expressions to have them evaluated.
  Type :help for more information.
  
  scala&gt; :load ./test.scala
  Loading ./test.scala...
  hi there sir
  
  scala&gt; 
  </code></pre>
  
  <p>** UPDATE FINAL **</p>
  
  <p>when I did ps -ef | grep scala 
  I had a couple scala compile servers running, when I shut those down and re-ran my script all was working again. Must have been in a bad state. </p>