WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: libpng not listed as dependency of php5  (Read 3081 times)

Offline cosmin_ap

  • Newbie
  • *
  • Posts: 48
libpng not listed as dependency of php5
« on: May 10, 2011, 03:16:21 AM »
Hi. I noticed that php5 needs libpng to run but libpng is not listed as dependency, eg. try

  tce-audit dependson php5 |grep png

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: libpng not listed as dependency of php5
« Reply #1 on: May 10, 2011, 03:20:41 AM »
As expected, being shipped with TC base.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline cosmin_ap

  • Newbie
  • *
  • Posts: 48
Re: libpng not listed as dependency of php5
« Reply #2 on: May 10, 2011, 03:34:00 AM »
I don't have it in microcore. Is that different than tinycore?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: libpng not listed as dependency of php5
« Reply #3 on: May 10, 2011, 03:45:17 AM »
It's in Xlibs.tcz

microcore + Xlibs + Xprogs + flwm + wbar = tinycore

Offline cosmin_ap

  • Newbie
  • *
  • Posts: 48
Re: libpng not listed as dependency of php5
« Reply #4 on: May 10, 2011, 04:28:49 AM »
Sorry I wasn't explicit before: I have microcore, and after tce-load -wi php5, if you run php it gives the error that it doesn't find libpng12. Shouldn't therefore libpng be listed as a dependency of php5? I'm not sure I understand the answer that "it ships with TC base", but I don't have libpng in the base microcore install. I have to install it with tce-load -wi libpng.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: libpng not listed as dependency of php5
« Reply #5 on: May 10, 2011, 04:40:39 AM »
I'm not sure I understand the answer that "it ships with TC base"

It is included in Tiny Core base.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline cosmin_ap

  • Newbie
  • *
  • Posts: 48
Re: libpng not listed as dependency of php5
« Reply #6 on: May 10, 2011, 04:56:12 AM »
Ok, I finally got it :) It's in Xlibs.tcz which is in tinycore but not in microcore. So what do you think, should it be added as a dep. so that it works with microcore too out of the box?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: libpng not listed as dependency of php5
« Reply #7 on: May 10, 2011, 05:03:35 AM »
No.

This subject has been discussed to death already in several threads in this forum.
Until you understand you may be better off to use TC instead of MC if you want to rely on any graphics stuff.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: libpng not listed as dependency of php5
« Reply #8 on: May 10, 2011, 05:08:47 AM »
In the short term, this info should be added to the php5 info file.

See if someone can come up with a way of installing it when using microcore, but not when using Tiny Core. It actually only needs to be installed when microcore is installed but not Xlibs.

If you include other similar situations, that is, install something in one situation and not in another, it is not easy, as there are many different things to take into consideration.

In the long term, that would be a good solution. But it is not straight forward.
« Last Edit: May 10, 2011, 05:23:58 AM by Guy »
Many people see what is. Some people see what can be, and make a difference.

Offline cosmin_ap

  • Newbie
  • *
  • Posts: 48
Re: libpng not listed as dependency of php5
« Reply #9 on: May 10, 2011, 05:43:03 AM »
I don't want any graphics stuff but php doesn't start without it.

First I want to understand this: is it expected that a program (any program) in tinycore or microcore be able to start out of the box, i.e. should I report it as a bug at all when it doesn't, or is it more complicated than that?

Can you give me some search terms to find out these beaten threads please? I'm new to tinycore and trying to scan the threads as fast as I can :)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: libpng not listed as dependency of php5
« Reply #10 on: May 10, 2011, 06:03:03 AM »
First I want to understand this: is it expected that a program (any program) in tinycore or microcore be able to start out of the box

In brief: with MC not necessarily.

http://forum.tinycorelinux.net/index.php?topic=7314.0
http://forum.tinycorelinux.net/index.php?topic=8977.0
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline cosmin_ap

  • Newbie
  • *
  • Posts: 48
Re: libpng not listed as dependency of php5
« Reply #11 on: May 10, 2011, 07:12:35 AM »
Alright, thanks for the links. I won't report missing dependencies regarding MC then. Sorry for the noise.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: libpng not listed as dependency of php5
« Reply #12 on: May 10, 2011, 07:17:40 AM »
I think it is important that this is added to the info file.

Where a similar thing happens with other extensions, it should be added to the info file.
Many people see what is. Some people see what can be, and make a difference.