<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>luajit-20250212</title><link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" /><meta name="generator" content="DocBook XSL-NS Stylesheets Vsnapshot" /><link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print" /></head><body class="blfs" id="blfs-12.3"><div class="navheader"><h4>Beyond Linux<sup>®</sup> From Scratch
  
  <span class="phrase">(System V</span> Edition) - Version 12.3</h4><h3>Chapter 13. Programming</h3><ul><li class="prev"><a accesskey="p" href="lua.html" title="Lua-5.4.7">Prev</a><p>Lua-5.4.7</p></li><li class="next"><a accesskey="n" href="mercurial.html" title="Mercurial-6.9.2">Next</a><p>Mercurial-6.9.2</p></li><li class="up"><a accesskey="u" href="prog.html" title="Chapter 13. Programming">Up</a></li><li class="home"><a accesskey="h" href="../index.html" title="Beyond Linux® From Scratch&#10;  &#10;  (System V Edition) - Version 12.3">Home</a></li></ul></div><h1 class="sect1"><a id="luajit" name="luajit"></a>luajit-20250212</h1><div class="sect1" lang="en" xml:lang="en"><div class="package" lang="en" xml:lang="en"><h2 class="sect2">Introduction to luajit</h2><p>
      The <span class="application">luajit</span> package contains a Just-In-Time
      compiler for Lua. It is often used as scripting middleware, and it is
      high performance while also having a low memory footprint.
    </p><p>This package is known to build and work properly
                          using an LFS 12.3 platform.</p><h3>Package Information</h3><div class="itemizedlist"><ul class="compact"><li class="listitem"><p>
          Download (HTTP): <a class="ulink" href="https://anduin.linuxfromscratch.org/BLFS/luajit/luajit-20250212.tar.xz">https://anduin.linuxfromscratch.org/BLFS/luajit/luajit-20250212.tar.xz</a>
        </p></li><li class="listitem"><p>
          Download MD5 sum: ac5d07d31cc46d97e577764e402921c7
        </p></li><li class="listitem"><p>
          Download size: 728 KB
        </p></li><li class="listitem"><p>
          Estimated disk space required: 9.0 MB
        </p></li><li class="listitem"><p>
          Estimated build time: 0.2 SBU
        </p></li></ul></div></div><div class="installation" lang="en" xml:lang="en"><h2 class="sect2">Installation of luajit</h2><p>
      Install <span class="application">luajit</span> by running the following
      commands:
    </p><pre class="userinput"><kbd class="command">make PREFIX=/usr amalg</kbd></pre><p>
      This package does not come with a test suite.
    </p><p>
      Now, as the <code class="systemitem">root</code> user:
    </p><pre class="root"><kbd class="command">make PREFIX=/usr install &amp;&amp;
rm -v /usr/lib/libluajit-5.1.a</kbd></pre></div><div class="commands" lang="en" xml:lang="en"><h2 class="sect2">Command Explanations</h2><p>
      <em class="parameter"><code>amalg</code></em>: This ensures an amalgamated build,
      i.e. the LuaJIT core is compiled as one huge C file, allowing GCC
      to generate faster and shorter code.
    </p></div><div class="content" lang="en" xml:lang="en"><h2 class="sect2">Contents</h2><div class="segmentedlist"><div class="seglistitem"><div class="seg"><strong class="segtitle">Installed Programs: </strong><span class="segbody">
          luajit (symlink to luajit-2.1.ROLLING) and
          luajit-2.1.ROLLING
        </span></div><div class="seg"><strong class="segtitle">Installed Libraries: </strong><span class="segbody">
          libluajit-5.1.so
        </span></div><div class="seg"><strong class="segtitle">Installed Directories: </strong><span class="segbody">
          /usr/include/luajit-2.1 and
          /usr/share/luajit-2.1
        </span></div></div></div><div class="variablelist"><h3>Short Descriptions</h3><table border="0" class="variablelist"><colgroup><col align="left" valign="top" /><col /></colgroup><tbody><tr><td><p><a id="luajit-prog"></a><span class="term"><span class="command"><strong>luajit</strong></span></span></p></td><td><p>
            provides a Just-In-Time compiler for Lua
          </p></td></tr><tr><td><p><a id="libluajit-5.1"></a><span class="term"><code class="filename">libluajit-5.1.so</code></span></p></td><td><p>
            contains an API for the Just-In-Time compiler for Lua
          </p></td></tr></tbody></table></div></div></div><div class="navfooter"><ul><li class="prev"><a accesskey="p" href="lua.html" title="Lua-5.4.7">Prev</a><p>Lua-5.4.7</p></li><li class="next"><a accesskey="n" href="mercurial.html" title="Mercurial-6.9.2">Next</a><p>Mercurial-6.9.2</p></li><li class="up"><a accesskey="u" href="prog.html" title="Chapter 13. Programming">Up</a></li><li class="home"><a accesskey="h" href="../index.html" title="Beyond Linux® From Scratch&#10;  &#10;  (System V Edition) - Version 12.3">Home</a></li></ul></div></body></html>