Error while loading shared libraries:

I got this liblua error while apache,php recompilation.

At first I tried to find the dependencies of lua

# ldd `which lua` => (0x00007fff1dd7d000) => not found => /lib64/ (0x0000003b68800000) => /lib64/ (0x0000003b68400000) => /lib64/ (0x0000003b68000000) => /lib64/ (0x0000003b67800000) => /lib64/ (0x0000003b67400000) => /lib64/ (0x0000003b6a400000)
/lib64/ (0x0000003b67000000)

Then I tried to search for liblua in “/” using find command.

# find / -iname liblua*

The made a symlink like as follows:

# ln -s /opt/lua/lib/ /opt/lua/lib/

# ll /opt/lua/lib/
lrwxrwxrwx 1 root root 13 Aug 18 11:08 /opt/lua/lib/ ->*

Now do recompile again and finish the process successfully 🙂

In case if lua is completely missing, you can install using yum or do manual compilation.

# yum install lua lua-devel

for manual compilation, download lua source from and install it.

Leave a Reply

Your email address will not be published. Required fields are marked *