Jumat, 02 November 2018

How to solved configure: WARNING: *** Lua 5.3 5.2 or 5.1 library not found. when install apache lua mod

  Tidak ada komentar
Some day i need to install apache 2.4 with lua shared module, on installation process i got the error : configure: WARNING: *** Lua 5.3 5.2 or 5.1 library not found. configure: WARNING: Lua 5.3 5.2 or 5.1 library is required checking whether to enable mod_lua... configure: error: mod_lua has been requested but can not be built due to prerequisite failures, although i have install the lua package from default repository, on default repository the lua version was : lua-5.1.4-4.1.el6.x86_64



You have to install lua-devel, because lua package already installed as shown bellow
[root@localhost ~]# yum install lua
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.biz.net.id
 * epel: del-repos.extreme-ix.org
 * extras: centos.biz.net.id
 * updates: centos.biz.net.id
Package lua-5.1.4-4.1.el6.x86_64 already installed and latest version
Nothing to do
[root@localhost ~]#
Install lua-devel by typing following command
[root@localhost httpd-2.4.37]# yum install lua-devel
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.biz.net.id
 * epel: del-repos.extreme-ix.org
 * extras: centos.biz.net.id
 * ius: archive.linux.duke.edu
 * updates: centos.biz.net.id
Resolving Dependencies
--> Running transaction check
---> Package lua-devel.x86_64 0:5.1.4-4.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

======================================================================================================================================
 Package                         Arch                         Version                                Repository                  Size
======================================================================================================================================
Installing:
 lua-devel                       x86_64                       5.1.4-4.1.el6                          base                        20 k

Transaction Summary
======================================================================================================================================
Install       1 Package(s)

Total download size: 20 k
Installed size: 40 k
Is this ok [y/N]: y
Downloading Packages:
lua-devel-5.1.4-4.1.el6.x86_64.rpm                                                                             |  20 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : lua-devel-5.1.4-4.1.el6.x86_64                                                                                     1/1
  Verifying  : lua-devel-5.1.4-4.1.el6.x86_64                                                                                     1/1

Installed:
  lua-devel.x86_64 0:5.1.4-4.1.el6

Complete!
[root@localhost httpd-2.4.37]#

Install compile apache again with lua module enable
[root@localhost httpd-2.4.37]# ./configure --prefix=/usr/local/apache2 --enable-so --enable-mods-shared=most --enable-lua=shared --enable-mpms-shared=all --with-included-apr
You will successfully install lua module

Tidak ada komentar :

Posting Komentar