New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache 2.4.27 + PHP 5.3.29 + MySQL 5.7 Error #26

Open
CarlosMtnez opened this Issue Jul 20, 2017 · 8 comments

Comments

Projects
None yet
3 participants
@CarlosMtnez

CarlosMtnez commented Jul 20, 2017

Hello, i'm trying to install with this script this combination Apache 2.4.27 + PHP 5.3.29 + MySQL 5.7 and gave me this error, last lines:

checking for floorf... yes
checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
configure: error: libXpm.(a|so) not found.

+------------------+
| ERROR DETECTED |
+------------------+
Installation php-5.3.29 failed.

Hope this helps.

@CarlosMtnez

This comment has been minimized.

CarlosMtnez commented Jul 20, 2017

I also tried with diferent version of mysql (5.5) and same error happens

@teddysun

This comment has been minimized.

Owner

teddysun commented Jul 20, 2017

Please check libXpm-devel (CentOS) or libxpm-dev (Debian/Ubuntu) package is correctly installed.

@teddysun teddysun added the question label Jul 20, 2017

@CarlosMtnez

This comment has been minimized.

CarlosMtnez commented Jul 20, 2017

Thanks for your reply.

I already installed libxpm-dev, I run this command before:

apt-get install libbz2-dev libxml2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libfreetype6-dev libc-client2007e-dev libkrb5-dev libmcrypt-dev libpq-dev libmysqlclient-dev

Also make symbolic links if library is not located where the configure expected:

sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.a /usr/lib/libXpm.a

and also to this location:

mkdir -p /usr/lib/x86_64-linux-gnu/lib64/
ln -s /usr/lib/x86_64-linux-gnu/libXpm.so /usr/lib/x86_64-linux-gnu/lib64/

I'm reading about this problem, and people is having problems with --with-libdir= directive in configure, and locations are different from debian distributions, from old squeeze to recent distros like jessie.
PHP 5.3 maybe is trying to use old locations like in debian 6 squeeze.

I'm not an expert, so, maybe im not in the correct way.

Thanks for your time, your script looks great!

@CarlosMtnez

This comment has been minimized.

CarlosMtnez commented Jul 20, 2017

I tried again with a clean install Debian 7 and a new install Debian 8. I installed libxpm-dev with apt-get using the command in my previous post, and the problem is still there, same error.

Have you tried installing PHP 5.3 in Debian 7 or 8?
If you want, I can give you a VPS test box. I have a proxmox server, im using official Debian templates.

Thanks for your help

@teddysun

This comment has been minimized.

Owner

teddysun commented Jul 21, 2017

libxpm-dev files list (Debian):
/usr/include/X11/xpm.h
/usr/lib/x86_64-linux-gnu/libXpm.a
/usr/lib/x86_64-linux-gnu/libXpm.so
/usr/lib/x86_64-linux-gnu/pkgconfig/xpm.pc
/usr/share/doc/libxpm-dev/changelog.Debian.gz
/usr/share/doc/libxpm-dev/changelog.gz
/usr/share/doc/libxpm-dev/copyright
/usr/share/doc/libxpm-dev/xpm.PS.gz

PHP 5.3's libXpm configure:

 for i in $PHP_XPM_DIR /usr/local /usr/X11R6 /usr; do
  test -f $i/$PHP_LIBDIR/libXpm.$SHLIB_SUFFIX_NAME || test -f $i/$PHP_LIBDIR/libXpm.a && GD_XPM_DIR=$i && break
done

if test -z "$GD_XPM_DIR"; then
  { echo "configure: error: libXpm.(a|so) not found." 1>&2; exit 1; }
fi

for i in include include/X11; do
  test -f $GD_XPM_DIR/$i/xpm.h && GD_XPM_INC=$GD_XPM_DIR/include
done

if test -z "$GD_XPM_INC"; then
  { echo "configure: error: xpm.h not found." 1>&2; exit 1; }
fi

@teddysun teddysun closed this Jul 21, 2017

@teddysun teddysun reopened this Jul 21, 2017

@teddysun

This comment has been minimized.

Owner

teddysun commented Jul 21, 2017

libXpm-devel files list (CentOS):
/usr/bin/cxpm
/usr/bin/sxpm
/usr/include/X11/xpm.h
/usr/lib64/libXpm.so
/usr/lib64/pkgconfig/xpm.pc
/usr/share/man/man1/cxpm.1.gz
/usr/share/man/man1/sxpm.1.gz

It's no problem in CentOS when install PHP 5.3
So, create symbolic links in Debian or Ubuntu like this:
64bit:

sudo ln -s /usr/lib/x86_64-linux-gnu/libXpm.a /usr/lib64/libXpm.a

32bit:

sudo ln -s /usr/lib/i386-linux-gnu/libXpm.a /usr/lib/libXpm.a

and try again.
Thanks for your suggestion.

@CarlosMtnez

This comment has been minimized.

CarlosMtnez commented Jul 21, 2017

Thanks for your reply. I tried and the error with libXpm looks solved, then another error "configure: error: freetype.h not found." appears and I solved doing this symbolic links:

mkdir /usr/include/freetype2/freetype
ln -s /usr/include/freetype2/freetype.h /usr/include/freetype2/freetype/freetype.h

I tried again and again error, last lines:

`checking for iconv support... yes
checking for iconv... yes
checking if iconv is glibc's... yes
checking if iconv supports errno... no
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... yes
checking for IMAP Kerberos support... no
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether rfc822_output_address_list function present... no
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

+------------------+
| ERROR DETECTED |
+------------------+
Installation php-5.3.29 failed.
The Full Log is available at /root/lamp-master/lamp.log
Please visit website: https://lamp.sh/faq.html for help
`

I can't find config.log and lamp.log contains the same info Im pasting.

Thanks a lot.
Regards.

@Wladimi

This comment has been minimized.

Wladimi commented Dec 12, 2017

Разобрался в причине? У меня такая же ошибка. На этой же версии php
configure: error: build test failed. Please check the config.log for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment