Since the operating system comes with the GD PNG JPEG library and so on, it is impossible to specify dir directly in the form of--with-jpeg.
The following error occurred while 2.make install:
Installing PHP SAPI Module:apache2handler
/usr/share/apache2/build/instdso.sh sh_libtool= '/usr/share/apr-1.0/build/libtool ' libphp5.la/usr/lib/apache2/ Modules
/usr/share/apr-1.0/build/libtool--mode=install CP libphp5.la/usr/lib/apache2/modules/
Libtool:install:warning:remember to run ' Libtool--finish/home/hcc/php-5.2.13/libs '
Apxs:Error:Activation failed for custom/etc/apache2/httpd.conf file:
apxs:Error:At least one ' LoadModule ' directive already have to exist.
Make: * * * [INSTALL-SAPI] Error 1
Actually, httpd.conf already exists. Do not know why the above error, using the following methods, first backup httpd.conf
and re-build a httpd.conf.
#LoadModule directive to aid module installations
This will install successfully
3. After the PHP installation, found that PHP does not support JPEG, but in the above configuration has been added--with-jpeg, and libjpeg rpm is also installed, but it is always unable to support, had to reinstall the JPEG library
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to email@example.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
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:
and provide relevant evidence. A staff member will contact you within 5 working days.