|
1 | 1 | <h1>
|
2 |
| -<a name="user-content-1-installation" class="anchor" href="#1-installation" aria-hidden="true"><span class="octicon octicon-link"></span></a>1. Installation</h1> |
| 2 | +<a id="user-content-1-installation" class="anchor" href="#1-installation" aria-hidden="true"><span class="octicon octicon-link"></span></a>1. Installation</h1> |
3 | 3 |
|
4 |
| -<p>The lastest release is 0.2.5. Please check the <a href="HISTORY.md">Update History</a> for more details.</p> |
| 4 | +<p>The lastest release is 0.2.7. Please check the <a href="HISTORY.md">Update History</a> for more details.</p> |
5 | 5 |
|
6 | 6 | <h2>
|
7 |
| -<a name="user-content-11-installation-by-binary" class="anchor" href="#11-installation-by-binary" aria-hidden="true"><span class="octicon octicon-link"></span></a>1.1 Installation by Binary</h2> |
| 7 | +<a id="user-content-11-installation-by-binary" class="anchor" href="#11-installation-by-binary" aria-hidden="true"><span class="octicon octicon-link"></span></a>1.1 Installation by Binary</h2> |
8 | 8 |
|
9 | 9 | <ol>
|
10 |
| -<li>First you can download Release 0.2.5 from <a href="https://sourceforge.net/projects/nginx-clojure/files/">here</a>. |
| 10 | +<li>First you can download Release 0.2.7 from <a href="https://sourceforge.net/projects/nginx-clojure/files/">here</a>. |
11 | 11 | The zip file includes Nginx-Clojure binaries about Linux x64, Linux i586, Win32, Win64 and Mac OS X.</li>
|
12 | 12 | <li>Unzip the zip file downloaded then rename the file <code>nginx-${os-arc}</code> to <code>nginx</code>, eg. for linux is <code>nginx-linux-x64</code>
|
13 | 13 | </li>
|
14 | 14 | </ol>
|
15 | 15 |
|
16 | 16 | <h2>
|
17 |
| -<a name="user-content-12-installation-by-source" class="anchor" href="#12-installation-by-source" aria-hidden="true"><span class="octicon octicon-link"></span></a>1.2 Installation by Source</h2> |
| 17 | +<a id="user-content-12-installation-by-source" class="anchor" href="#12-installation-by-source" aria-hidden="true"><span class="octicon octicon-link"></span></a>1.2 Installation by Source</h2> |
18 | 18 |
|
19 | 19 | <p>Nginx-Clojure may be compiled successfully on Linux x64, Linux x86 32bit, Win32, Win64 and Mac OS X x64.</p>
|
20 | 20 |
|
|
27 | 27 | <li>
|
28 | 28 | <p>Setting Java header include path in nginx-clojure/src/c/config</p>
|
29 | 29 |
|
30 |
| -<div class="highlight highlight-nginx"><pre><span class="c1">#eg. on ubuntu</span> |
31 |
| -<span class="k">JNI_HEADER_1="/usr/lib/jvm/java-7-oracle/include"</span> |
32 |
| -<span class="s">JNI_HEADER_2="</span><span class="nv">${JNI_HEADER_1}/linux"</span> |
33 |
| -</pre></div> |
| 30 | +<div class="highlight highlight-nginx"><pre><span class="pl-c">#eg. on ubuntu</span><span class="pl-pdv"></span> |
| 31 | +<span class="pl-pdv">JNI_HEADER_1=<span class="pl-s1">"/usr/lib/jvm/java-7-oracle/include"</span></span> |
| 32 | +<span class="pl-pdv">JNI_HEADER_2=<span class="pl-s1">"${JNI_HEADER_1}/linux"</span></span></pre></div> |
34 | 33 | </li>
|
35 | 34 | <li>
|
36 | 35 | <p>Add Nginx-Clojure module to Nginx configure command, here is a simplest example without more details about <a href="http://wiki.nginx.org/InstallOptions">InstallOptions</a></p>
|
37 | 36 |
|
38 |
| -<div class="highlight highlight-bash"><pre><span class="c">#If nginx source is checked out from hg, please replace ./configure with auto/configure</span> |
39 |
| -<span class="nv">$.</span>/configure <span class="se">\</span> |
40 |
| - --add-module<span class="o">=</span>nginx-clojure/src/c |
41 |
| -<span class="nv">$ </span>make |
42 |
| -<span class="nv">$ </span>make install |
43 |
| -</pre></div> |
| 37 | +<div class="highlight highlight-bash"><pre><span class="pl-c"><span class="pl-pdc">#</span>If nginx source is checked out from hg, please replace ./configure with auto/configure</span> |
| 38 | +$./configure \ |
| 39 | + --add-module=nginx-clojure/src/c |
| 40 | +$ make |
| 41 | +$ make install</pre></div> |
44 | 42 | </li>
|
45 | 43 | <li>
|
46 | 44 | <p>Create the jar file about Nginx-Clojure</p>
|
47 | 45 |
|
48 | 46 | <p>Please check the lein version <code>lein version</code>, it should be at least 2.0.0.</p>
|
49 | 47 |
|
50 |
| -<div class="highlight highlight-bash"><pre><span class="nv">$ </span><span class="nb">cd </span>nginx-clojure |
51 |
| -<span class="nv">$ </span>lein jar |
52 |
| -</pre></div> |
| 48 | +<div class="highlight highlight-bash"><pre>$ <span class="pl-sf">cd</span> nginx-clojure |
| 49 | +$ lein jar</pre></div> |
53 | 50 |
|
54 |
| -<p>Then you'll find nginx-clojure-${version}.jar (eg. nginx-clojure-0.2.5.jar) in the target folder. |
| 51 | +<p>Then you'll find nginx-clojure-${version}.jar (eg. nginx-clojure-0.2.7.jar) in the target folder. |
55 | 52 | The jar file is self contained. If your project use clojure it naturally depends on the clojure core jar, e.g clojure-1.5.1.jar.
|
56 | 53 | If your project use groovy it naturally depends on the groovy runtime jar, e.g. groovy-2.3.4.jar.</p>
|
57 | 54 | </li>
|
|
0 commit comments