Libpng Compiling related issues

Source: Internet
Author: User
Help: Libpng compilation problem
The following error occurred while compiling libpng:

/usr/bin/ld:cannot Find-lz
Collect2:ld returned 1 exit status
MAKE[1]: * * [libpng12.la] Error 1
MAKE[1]: Leaving directory '/usr/local/src/libpng-1.2.31 '
Make: * * * [ALL] Error 2



/**
* Zlib has been installed.
*/


------Solution--------------------
It's supposed to be something else.
------Solution--------------------
Check if your system has Libtool installed, you can use Rpm-qa
------Solution--------------------
grep Libtool

No, just install it with yum install libtool//.

JPEG compiled, okay?

------Solution--------------------
I don't think I've had a problem like this.
Libtool:link: ' l ' cannot specify a relative Directory//libtool: Link: '-L ' cannot specify related directory

Recompile it, give you two URLs, provide reference
CentOS installation of the GD library process: http://www.tabcn.cn/post/18.html
CentOS 5.5 under source installation configuration apache,php5.2.14,mysql:http://www.linux99.com/bbs/thread-36-1-1.html

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.