WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: nmap error while loading shared libraries liblua.so.5.2  (Read 7339 times)

Offline lepomis

  • Newbie
  • *
  • Posts: 36
nmap error while loading shared libraries liblua.so.5.2
« 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? 

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #1 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.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #2 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.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #3 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.

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #4 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.





Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #5 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

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #6 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 ...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #7 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.

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #8 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

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #9 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' ?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #10 on: May 06, 2015, 02:24:57 PM »
I've just run it
thank you bmarkus! you had the right idea.
good job!

Offline lepomis

  • Newbie
  • *
  • Posts: 36
Re: nmap error while loading shared libraries liblua.so.5.2
« Reply #11 on: May 06, 2015, 02:27:28 PM »
i would add these commands in my bootlocal.sh what do you think?