WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Help. Need the liblua5.1.so.0 file  (Read 3206 times)

Offline secsgem

  • Newbie
  • *
  • Posts: 2
Help. Need the liblua5.1.so.0 file
« on: March 08, 2011, 02:45:24 AM »
Dear All,

My application need the liblua5.1.so.0 to run. I already use AppBrowser to add the lua.tcz into TinycoreLinux, but when running it report:

root@box:/mnt/hda1/secsgem# ./MingwSecs secs.ini
./MingwSecs: error while loading shared libraries: liblua5.1.so.so: cannot open shared object file: No such file or directory
root@box:/mnt/hda1/secsgem#

So, i manually copy the file liblua5.1.so.0.0.0 to /usr/lib

root@box:/mnt/hda1/secsgem# sudo cp liblua5.1.so.0.0.0 /usr/lib/liblua5.1.so.0

Then the MingwSecs can run normally.

When i reboot the TinycoreLinux, the file in /usr/lib/liblua5.1.so.0 are not saved.
How can i add the file liblua5.1.so.0 into /usr/lib ? Like the .tcz?

Thank for your answer...


Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: Help. Need the liblua5.1.so.0 file
« Reply #1 on: March 08, 2011, 06:33:12 AM »
i assume you have a permanent tce storage directory, it is /tmp/tce otherwise

Code: [Select]
mkdir -p liblua/usr/local/lib
cp liblua5.1.so.0.0.0 liblua/usr/local/lib
ln -s liblua5.1.so.0.0.0 liblua/usr/local/lib/liblua5.1.so.0
tce-load -wi squashfs-tools-4.x
sudo mksquashfs liblua liblua.tcz
cp liblua.tcz `cat /opt/.tce_dir`/optional

then add liblua.tcz to your onboot list (appsaudit -> onboot)
« Last Edit: March 08, 2011, 06:36:55 AM by Arslan S. »

Offline secsgem

  • Newbie
  • *
  • Posts: 2
Re: Help. Need the liblua5.1.so.0 file
« Reply #2 on: March 09, 2011, 02:22:04 AM »
Dear Arslan S.,

I do follow your comment. And it is very good.
Thank you very much.

Nghia