Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: lepomis on May 04, 2015, 04:28:55 PM

Title: nmap error while loading shared libraries liblua.so.5.2
Post by: lepomis on May 04, 2015, 04:28:55 PM
Hello,

i get this error:

tc@box:/mnt/sda1/tce$ nmap
nmap: error while loading shared libraries: liblua.so.5.2: cannot open shared object file: No such file or directory

What's wrong? 
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: gerald_clark on May 04, 2015, 04:42:43 PM
1. What version of Core?
2. Where did you get nmap?
3. Where did you get lua-lib?
For Core 6, nmap uses and lua-lib provides liblua.so.5.3
Your version of nmap does not match the version of lua-lib or your lua-lib is not loaded.
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: bmarkus on May 04, 2015, 05:43:03 PM
It looks like current LUA update to 5.3.0 breaks the extension. As a temporary fix make an 5.2.0 symlink to the 5.3.0 lib. It may work or not. Let us know the result.
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: gerald_clark on May 04, 2015, 06:16:54 PM
Yes, I see there is a very recent update to lib-lua.tcz which I have not loaded yet.
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: lepomis on May 05, 2015, 01:46:54 PM
It looks like current LUA update to 5.3.0 breaks the extension. As a temporary fix make an 5.2.0 symlink to the 5.3.0 lib. It may work or not. Let us know the result.

 This is my system:
-version 6.1
-3.16.6-tinycore


I installed nmap from the Apps program

Let's have a look at my lib dir...

tc@box:/usr/local/lib$ ls  |grep liblua
liblua.so
liblua.so.5.3
liblua.so.5.3.0


How could i  make an 5.2.0 symlink to the 5.3.0 lib ?

Maybe i can wait for the update you're talking about, i'm not in a hurry.




Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: Rich on May 05, 2015, 02:14:32 PM
Hi lepomis
Quote
How could i  make an 5.2.0 symlink to the 5.3.0 lib ?
Try:
Code: [Select]
tc@box:/usr/local/lib$ ln -s liblua.so.5.3 liblua.so.5.2
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: lepomis on May 05, 2015, 03:06:58 PM
Hi lepomis
Quote
How could i  make an 5.2.0 symlink to the 5.3.0 lib ?
Try:
Code: [Select]
tc@box:/usr/local/lib$ ln -s liblua.so.5.3 liblua.so.5.2

but i'd need liblua.so.5.2 in my directory ...
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: Rich on May 05, 2015, 04:40:13 PM
Hi lepomis
Quote
but i'd need liblua.so.5.2 in my directory ...
The command I gave you will make it appear there is a  liblua.so.5.2   in that directory.
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: lepomis on May 06, 2015, 08:20:16 AM
tc@box:/usr/local/lib$ sudo  ln -s liblua.so.5.3 liblua.so.5.2
tc@box:/usr/local/lib$ nmap
nmap: error while loading shared libraries: liblua.so.5.2: cannot open shared object file: No such file or directory
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: bmarkus on May 06, 2015, 08:23:03 AM
tc@box:/usr/local/lib$ sudo  ln -s liblua.so.5.3 liblua.so.5.2
tc@box:/usr/local/lib$ nmap
nmap: error while loading shared libraries: liblua.so.5.2: cannot open shared object file: No such file or directory

Did you run 'sudo ldconfig' ?
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: lepomis on May 06, 2015, 02:24:57 PM
I've just run it
thank you bmarkus! you had the right idea.
good job!
Title: Re: nmap error while loading shared libraries liblua.so.5.2
Post by: lepomis on May 06, 2015, 02:27:28 PM
i would add these commands in my bootlocal.sh what do you think?