Tiny Core Linux
Tiny Core Extensions => TCE Q&A Forum => Topic started by: batnas on March 10, 2010, 07:28:59 AM
-
Hi everybody
I have installed lighttpd, and it works excelent with plain HTML.
But I cant make it running PHP5, it says:
tc@box:/usr/local/bin$ ./php
./php: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
I have then installed base-dev, which includes libpng.
It also has a libpng-config, but i dont know how to use it.
And also 4 files:
- libpng.a
- libpng.la
- libpng12.a
- libpng12.la
Maybe the problem is PHP's include directorys??
Im running it on MicroCore 2.9
\\Batnas
-
I'm not at a tc machine at the moment to check, but:
1. is /usr/lib/libpng12.so.0 present?
2. have you set PKG_CONFIG_PATH?
-
ummm
no:
tc@box:~$ set
G_FILENAME_ENCODING='iso8859-1'
HISTFILE='/home/tc/.ash_history'
HOME='/home/tc'
IFS='
'
LANG='C'
LOGNAME='tc'
OLDPWD='/home/batnas'
OPTIND='1'
PATH='/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin'
PPID='1431'
PS1='\e[1;32m\u@\h\e[0m:\e[1;34m\w\e[0m\$ '
PS2='> '
PS4='+ '
PWD='/home/tc'
SHELL='/bin/sh'
TERM='xterm'
TZ='UTC'
USER='tc'
_='set'
tc@box:~$ ls /usr/lib/*png*
/usr/lib/libpng.a /usr/lib/libpng12.a
/usr/lib/libpng.la /usr/lib/libpng12.la
tc@box:~$ ls -l /usr/lib/*png*
lrwxrwxrwx 1 root root 37 Jan 28 23:07 /usr/lib/libpng.a -> /tmp/tcloop/base-dev/usr/lib/libpng.a
lrwxrwxrwx 1 root root 38 Jan 28 23:07 /usr/lib/libpng.la -> /tmp/tcloop/base-dev/usr/lib/libpng.la
lrwxrwxrwx 1 root root 39 Jan 28 23:07 /usr/lib/libpng12.a -> /tmp/tcloop/base-dev/usr/lib/libpng12.a
lrwxrwxrwx 1 root root 40 Jan 28 23:07 /usr/lib/libpng12.la -> /tmp/tcloop/base-dev/usr/lib/libpng12.la
-
You probably need Xlibs.gz.
-
.gz and not .tcz??
Then where do i get it?? I have Xlibs_soppurt.tcz in the repo, it is what you mean??
also Im running microcore and do not have Xorg installed.
\\Batnas
-
It's where you got the microcore iso.
http://ftp.nluug.nl/pub/metalab/distributions/tinycorelinux/2.x/release/microcore/
I don't remember right now whether it should be in tce or optional.
-
That didn't work.
In fact i placed it in my tce dir, and then after next reboot the entire tce dir is wiped out. nothing left, but optional
any other suggestions??
\\Batnas
-
@batnas: How do you maintain persistence? I mean, where do you "keep" your extensions (USB pendrive, harddisk, ...)? What boot codes are you using?
-
As hinted on IRC, those are initramfs (ie you will need to add it to your bootloader entry)
-
I have configured backup correct. I can't get the bootcodes now. And i keep them on a usb drive.
However, I found out, that lilypond included libpng12.so.0, but now it tells me that it cant get version number.
Ill post more when i come home