Skip to content

Commit

Permalink
added hints about the --with-pcre-jit and --with-ipv6 ./configure opt…
Browse files Browse the repository at this point in the history
…ions to the "Installation" page as per Jared Feng's suggestion in openresty#62.
  • Loading branch information
agentzh committed Jul 21, 2014
1 parent 5d80bec commit e582214
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 43 deletions.
16 changes: 10 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2990,7 +2990,7 @@
* bugfix: applied our patch for the nginx core to fix the long standing memory fragmentation issue for blocks larger than the page size in the nginx slab allocator: http://mailman.nginx.org/pipermail/nginx-devel/2014-May/005316.html thanks Shuxin Yang for the help.
See ChangeLog1005012 for change log for OpenResty 1.5.12.x.</pre>
</div>
<div title="ChangeLog1007002" creator="YichunZhang" modifier="YichunZhang" created="201407010508" modified="201407130319" changecount="41">
<div title="ChangeLog1007002" creator="YichunZhang" modifier="YichunZhang" created="201407010508" modified="201407130324" changecount="42">
<pre>&lt;&lt;toolbar permalink&gt;&gt;
! Version 1.7.2.1 - 12 July 2014
* upgraded the Nginx core to 1.7.2.
Expand Down Expand Up @@ -3638,19 +3638,22 @@
Project page: https://github.com/calio/iconv-nginx-module
</pre>
</div>
<div title="Installation" creator="YichunZhang" modifier="YichunZhang" created="201106210440" modified="201401251754" tags="doc install" changecount="59">
<div title="Installation" creator="YichunZhang" modifier="YichunZhang" created="201106210440" modified="201407211945" tags="doc install" changecount="62">
<pre>&lt;&lt;toolbar permalink&gt;&gt;
If you haven't downloaded the OpenResty source code tarball, please go to the [[Download]] page first.

Basically, building and installing OpenResty is as simple as
{{{
tar xzvf ngx_openresty-VERSION.tar.gz
cd ngx_openresty-VERSION/
./configure --with-luajit
./configure
make
make install
}}}
where {{{VERSION}}} should be replaced by a concrete version number of OpenResty, like {{{0.8.54.6}}}.

If your system environment is modern enough, then you almost always want to enable the PCRE JIT support and ~IPv6 support in your NGINX by passing the {{{--with-pcre-jit}}} and {{{--with-ipv6}}} options to the {{{./configure}}} script.

If you have problems while building or want finer control over the building process, please read on.
!Prerequisites
You should have {{{perl 5.6.1+}}}, {{{libreadline}}}, {{{libpcre}}}, {{{libssl}}} installed into your system. For Linux, you should also ensure that {{{ldconfig}}} is in your PATH environment.
Expand Down Expand Up @@ -3705,14 +3708,15 @@
!!./configure
Then enter the {{{ngx_openresty-VERSION/}}} directory, and type the following command to configure:
{{{
./configure --with-luajit
./configure
}}}
By default, {{{--prefix=/usr/local/openresty}}} is assumed. The {{{--with-luajit}}} option is not required for OpenResty 1.5.8.1+ because it becomes the default since then. You should use LuaJIT wherever possible (for best performance). You should only disable LuaJIT 2 when your platform does not support LuaJIT.
By default, {{{--prefix=/usr/local/openresty}}} is assumed. You should only disable LuaJIT 2 when your platform does not support LuaJIT.

You can specify various options, as in
{{{
./configure --prefix=/opt/openresty \
--with-luajit \
--with-pcre-jit \
--with-ipv6 \
--without-http_redis2_module \
--with-http_iconv_module \
--with-http_postgres_module \
Expand Down
Loading

0 comments on commit e582214

Please sign in to comment.