View previous topic :: View next topic |
Author |
Message |
Mordarion_Drakenhoff n00b
Joined: 29 Oct 2002 Posts: 5
|
Posted: Sat Nov 09, 2002 3:29 am Post subject: Emerge php fails |
|
|
I have a problem when trying to emerge php. It says that no usable png libaray is found, however I emerged libpng. Here's the exact error:
checking for png_create_read_struct in -lpng... no
configure: error: No usable pnglib library found.
!!! ERROR: The ebuild did not complete successfully.
!!! Function econf, Line 10, Exitcode 1
!!! econf failed
Any suggestions would be appreciated. |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Sat Nov 09, 2002 3:58 pm Post subject: |
|
|
Try to rebuild libpng cause it's definitly in there well it's in libpng-1.2.4 and libpng-1.2.5 anyway. Maybe there's another reason check the config.log (i think) file in the /var/tmp/portage/php*/work/???? directory.
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
int1 Tux's lil' helper
Joined: 08 Nov 2002 Posts: 139
|
Posted: Sat Nov 09, 2002 4:34 pm Post subject: You could also try... |
|
|
You could also try running ldconfig before emerge. I've noticed that occasionally (rarely) the library bindings don't get properly updated after some packages.
Hope this helps!
int1 |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Sun Nov 10, 2002 12:15 am Post subject: solution LDFLAGS="-lm -lz" |
|
|
Got the same error and checked updating pdflib or something. Checked config.log and saw some familiar undefined symbols. Somehow the ld command (configure script) doesn't include -lm -lz for the libpng package, although it is in /usr/lib/pkgconfig/libpng12.pk. So I don't think these packages use the pkgconfig system.
So use the following:
Code: | LDFLAGS="-lm -lz" emerge <packages> |
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
|