Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php wont display png images
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
mfairchi
n00b
n00b


Joined: 23 Apr 2002
Posts: 57
Location: Ventura, California

PostPosted: Mon Jun 17, 2002 11:00 pm    Post subject: php wont display png images Reply with quote

I recently upgraded to the latest php 4.2.11-r1 php ebuild and it broke my png support. Since i am working on a site that relies heavily on PNG images this is a problem. Whenever i go to access a php script that generates a png image I get the error "document contains no data" If i just change all the pngs to jpegs, it works.
Has anyone else encountered this problem or have any ideas how ti might be fixed?
thanks,
michael
Back to top
View user's profile Send private message
bk-tech
n00b
n00b


Joined: 16 Jun 2002
Posts: 3
Location: Denver, Colorado

PostPosted: Tue Jun 18, 2002 2:43 am    Post subject: php wont display png images Reply with quote

I believe this is because you do not have PNG in your USE variable.

http://www.gentoo.org/doc/en/use-howto.xml

Try adding php and emerge -p php to see if any dependencies are added. You should see a bunch of libraries needed to generate pngs. Then emerge php to update.


Hope this helps. :)
Back to top
View user's profile Send private message
mfairchi
n00b
n00b


Joined: 23 Apr 2002
Posts: 57
Location: Ventura, California

PostPosted: Fri Jun 21, 2002 2:15 am    Post subject: Reply with quote

actually i had added png to my make.default before the emerge of php.
I even checked the ebuild script and found --with-png-dir=/usr. Since the libpng files are actually in /usr/lib and --with-jpeg-dir=/usr/lib so i thought this might be the problem. I editing the script to --with-png-dir=/usr/lib, but that didn't make any difference. I have also done emerge libpng.
Any more ideas? Im stumped :?
-michael[/code]
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Jun 21, 2002 2:38 am    Post subject: Reply with quote

mfairchi wrote:
I have also done emerge libpng.


There's been a lot of posts about libpng problems -- some have been fixed by simply remerging libpng. Others have had success with unmerging their existing libpng and then remerging the new version.

You might try running the following:

Code:
emerge -ep --onlydeps php


and make sure that php is installing libpng as a dependency. Then, remerge that specific version that php expects.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Fri Jun 21, 2002 1:00 pm    Post subject: Reply with quote

mfairchi wrote:
actually i had added png to my make.default before the emerge of php.


What is make.default? I hope you mean /etc/make.conf. I only know of make.conf and make.globals for setting USE vars.
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Fri Jun 21, 2002 3:00 pm    Post subject: Reply with quote

rizzo wrote:
What is make.default?


/usr/portage/profiles/default-1.0/make.defaults (default-1.0 might be different from system to system.)

You shouldn't edit make.defaults, however -- you should use make.conf instead. make.defaults gets overwritten every time you emerge rsync.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum