From 1d1fed48a002dfc0919135911057ebc255a53e0a Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 8 Dec 2009 19:49:20 +0100 Subject: RELEASE LuaJIT-2.0.0-beta2 --- doc/install.html | 59 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 26 deletions(-) (limited to 'doc/install.html') diff --git a/doc/install.html b/doc/install.html index b7211d21..3aa60f1c 100644 --- a/doc/install.html +++ b/doc/install.html @@ -58,17 +58,15 @@ application under x64-based systems, too.

Configuring LuaJIT

The standard configuration should work fine for most installations. -Usually there is no need to tweak the settings, except when you want to -install to a non-standard path. The following three files hold all -user-configurable settings: +Usually there is no need to tweak the settings. The following files +hold all user-configurable settings:

@@ -97,9 +95,8 @@ terminal window and change to this directory. Now unpack the archive and change to the newly created directory:

-tar zxf LuaJIT-2.0.0-beta1.tar.gz
-cd LuaJIT-2.0.0-beta1
-
+tar zxf LuaJIT-2.0.0-beta2.tar.gz +cd LuaJIT-2.0.0-beta2

Building LuaJIT

The supplied Makefiles try to auto-detect the settings needed for your @@ -109,6 +106,18 @@ which is probably the default on your system, anyway. Simply run:

 make
 
+

+By default modules are only searched under the prefix /usr/local. +You can add an extra prefix to the search paths by appending the +PREFIX option, e.g.: +

+
+make PREFIX=/home/myself/lj2
+
+

+Note for OSX: MACOSX_DEPLOYMENT_TARGET is set to 10.4 +in src/Makefile. Change it, if you want to build on an older version. +

Installing LuaJIT

The top-level Makefile installs LuaJIT by default under @@ -124,20 +133,19 @@ sudo make install Otherwise specify the directory prefix as an absolute path, e.g.:

-sudo make install PREFIX=/opt/lj2
+make install PREFIX=/home/myself/lj2
 

-But note that the installation prefix and the prefix for the module paths -(configured in src/luaconf.h) must match. +Obviously the prefixes given during build and installation need to be the same.

Note: to avoid overwriting a previous version, the beta test releases only install the LuaJIT executable under the versioned name (i.e. -luajit-2.0.0-beta1). You probably want to create a symlink +luajit-2.0.0-beta2). You probably want to create a symlink for convenience, with a command like this:

-sudo ln -sf luajit-2.0.0-beta1 /usr/local/bin/luajit
+sudo ln -sf luajit-2.0.0-beta2 /usr/local/bin/luajit
 

Windows Systems

@@ -145,8 +153,8 @@ sudo ln -sf luajit-2.0.0-beta1 /usr/local/bin/luajit

Either install one of the open source SDKs (» MinGW or -» Cygwin) which come with modified -versions of GCC plus the required development headers. +» Cygwin), which come with a modified +GCC plus the required development headers.

Or install Microsoft's Visual C++ (MSVC) — the freely downloadable @@ -159,8 +167,8 @@ Next, download the source package and unpack it using an archive manager

Building with MSVC

-Open a "Visual Studio .NET Command Prompt" and cd to the -directory where you've unpacked the sources. Then run this command: +Open a "Visual Studio .NET Command Prompt", cd to the +directory where you've unpacked the sources and run these commands:

 cd src
@@ -176,14 +184,12 @@ are in your path. Then cd to the directory where
 you've unpacked the sources and run this command for MinGW:
 

-cd src
 mingw32-make
 

Or this command for Cygwin:

-cd src
 make
 

@@ -191,10 +197,11 @@ Then follow the installation instructions below.

Installing LuaJIT

-Copy luajit.exe and lua51.dll -to a newly created directory (any location is ok). Add lua -and lua\jit directories below it and copy all Lua files -from the lib directory of the distribution to the latter directory. +Copy luajit.exe and lua51.dll (built in the src +directory) to a newly created directory (any location is ok). +Add lua and lua\jit directories below it and copy +all Lua files from the lib directory of the distribution +to the latter directory.

There are no hardcoded -- cgit v1.2.3-55-g6feb