Tiny Core Linux
General TC => General TC Talk => Topic started by: secsgem on March 07, 2011, 11:45:24 PM
-
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...
-
i assume you have a permanent tce storage directory, it is /tmp/tce otherwise
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)
-
Dear Arslan S.,
I do follow your comment. And it is very good.
Thank you very much.
Nghia