Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: ECHOSIDE on October 26, 2013, 11:43:40 PM

Title: Installing programs that don't have tcz
Post by: ECHOSIDE on October 26, 2013, 11:43:40 PM
I'd like to install Dosbox in TC, but I'm not sure if it has a tcz. Up until now, everything I've wanted is available in the App browser. I have also tinkered with tce-load at the command line. Neither of these methods produce results for Dosbox. How can I install this (or any other) program without a *.tcz file?

EDIT: I am running TC 5.0
Title: Re: Installing programs that don't have tcz
Post by: Rich on October 27, 2013, 09:19:33 AM
Hi ECHOSIDE
You didn't mention which version of Tinycore you are running. TC4 does have  dosbox.tcz  available. It is not yet in the
TC5 repository. If you are running TC5, you can fetch dosbox from from the TC4 repository like this:
Code: [Select]
wget http://www.tinycorelinux.net/4.x/x86/tcz/dosbox.tcz
wget http://www.tinycorelinux.net/4.x/x86/tcz/dosbox.tcz.dep
Copy those files to your tce directory. Use the Apps utility to install its dependencies  SDL.tcz.
If dosbox works, please report that to:
http://forum.tinycorelinux.net/index.php/topic,15906.msg95105.html#msg95105
so that it can be copied to the TC5 repository.
Title: Re: Installing programs that don't have tcz
Post by: Misalf on October 27, 2013, 09:47:09 AM
edit: whoops, I've read dropbox instead of dosbox. Anyway.

Programs and scripts that don't rely on other files not included in tinycore, can easily be stored in  ~/.local/bin  so they can be saved and can always be executed too.

I also had a program that refused to run from inside the home folder and had to be executed from  /usr/bin  or  /usr/local/bin . I just moved the program files there and included these to my backup via ControlPanel -> Backup/Restore. I wouldn't suggest doing that concerning bigger programs though.
Title: Re: Installing programs that don't have tcz
Post by: ECHOSIDE on October 27, 2013, 11:36:25 AM
I did as you instructed Rich.
When trying to execute Dosbox I now get:
/usr/local/bin/dosbox: error while loading shared libraries: libSDL_sound-1.0.so.1: cannot open shared object file: No such file or directory
I tried downloading and installing SDL2 as well but get the same error.
How can I remedy this?

Thank you
Title: Re: Installing programs that don't have tcz
Post by: Rich on October 27, 2013, 01:41:23 PM
Hi ECHOSIDE
Quote
/usr/local/bin/dosbox: error while loading shared libraries: libSDL_sound-1.0.so.1: cannot open shared object file: No such file or directory
That would be in  sdl-sound.tcz  which did not show up in the dependency list. It also is not in the TC5 repository.
Try fetching it from TC4 and try again:
Code: [Select]
wget http://www.tinycorelinux.net/4.x/x86/tcz/sdl-sound.tcz
Title: Re: Installing programs that don't have tcz
Post by: ECHOSIDE on October 31, 2013, 07:59:50 AM
Hey Rich,

I fetched that file successfully but still receive the same error. Do you have any other ideas?

Thank you
Title: Re: Installing programs that don't have tcz
Post by: Rich on October 31, 2013, 08:50:21 AM
Hi ECHOSIDE
After fetching it you either need to load it yourself  OR  add  sdl-sound.tcz  to the  dosbox.tcz.dep  file so that it gets loaded
automatically when  dosbox.tcz  gets loaded.
Title: Re: Installing programs that don't have tcz
Post by: ECHOSIDE on November 03, 2013, 03:54:43 PM
I added:

sdl-sound.tcz
libSDL_sound-1.0.so.1
/home/tc/sdl-sound.tcz


to dosbox.tcz.dep and still received the same error.

I tried starting sdl-sound manually with tce-run sdl-sound and sdl-sound and receive:

/etc/sysconfig/tcedir/optional/sdl-sound.tcz not found!

Thank you for all your help Rich.
Title: Re: Installing programs that don't have tcz
Post by: tinypoodle on November 03, 2013, 05:20:57 PM
You should place the extension into your tcedir, where your other extensions are stored.
Title: Re: Installing programs that don't have tcz
Post by: ECHOSIDE on November 12, 2013, 06:51:29 AM
Ok, I fixed that error by moving sdl-sound.tcz to the correct directory and starting it with
Code: [Select]
tce-run sdl-sound. I am now receiving the error:

Code: [Select]
dosbox: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
I tried starting libpng with
Code: [Select]
tce-run libpng. The extension appears to start (sh gives no feedback), but the same error occurs.

Does anyone know how to proceed?

Thank you
Title: Re: Installing programs that don't have tcz
Post by: Rich on November 12, 2013, 07:43:44 AM
Hi ECHOSIDE
Enter this:
Code: [Select]
find /usr -name libpng12.so.0If it does not return a result, use the  Apps  utility to install  libpng.tcz.
Title: Re: Installing programs that don't have tcz
Post by: gerald_clark on November 12, 2013, 08:05:49 AM
Core 5 has libpng16.so, not libpng12.so.
Any package that requires libpng12.so needs to be recompiled for Core 5.