View previous topic :: View next topic |
Author |
Message |
mfairchi n00b
Joined: 23 Apr 2002 Posts: 57 Location: Ventura, California
|
Posted: Mon Jun 17, 2002 11:00 pm Post subject: php wont display png images |
|
|
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 |
|
|
bk-tech n00b
Joined: 16 Jun 2002 Posts: 3 Location: Denver, Colorado
|
Posted: Tue Jun 18, 2002 2:43 am Post subject: php wont display png images |
|
|
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 |
|
|
mfairchi n00b
Joined: 23 Apr 2002 Posts: 57 Location: Ventura, California
|
Posted: Fri Jun 21, 2002 2:15 am Post subject: |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Fri Jun 21, 2002 2:38 am Post subject: |
|
|
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 |
|
|
rizzo Retired Dev
Joined: 30 Apr 2002 Posts: 1067 Location: Manitowoc, WI, USA
|
Posted: Fri Jun 21, 2002 1:00 pm Post subject: |
|
|
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 |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Fri Jun 21, 2002 3:00 pm Post subject: |
|
|
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 |
|
|
|