Expected a module declaration, found something else?
<p>I'm working on a Racket script (on a Linux machine) that requires the math/number-theory library.  My entire script at the moment is thus:</p>

<pre><code>#!/usr/bin/racket

(require math/number-theory)
</code></pre>

<p>Yes, it's literally just requiring the library.</p>

<p>When I try to run it, I get an error that reads "expected a `module' declaration found: something else".</p>

<p>However, when I actually start up Racket in the terminal like so:</p>

<pre><code>/usr/bin/racket
</code></pre>

<p>and enter (require math/number-theory) in the command line, it treats it like it's totally valid.</p>

<p>What's going on here?</p>