Install PHPyuminstallg ++ yuminstallgccyuminstallmake? Install the python development component yuminstallpythonyuminstallpython-dev ??? Install makeyuminstallmake? Make: *** install PHP with Notargetsspecified
Yum install g ++
Yum install gcc
Yum install make
?
Install python development components
Yum install python
Yum install python-dev
?
?
?
Install make
Yum install make
?
Make: *** No targets specified and no makefile found. Stop. Solution
?
|
1. wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz
2. tar zxvf ncurses-5.6.tar.gz
3../configure-prefix =/usr/local-with-shared-without-debug
4. make
5. make install
|
?
?
?
? Yum install? Libjpeg-devel freetype-devel libpng-devel?
?
?. /Configure -- prefix =/usr/local/gd -- with-png =/usr/local/libpng -- with-freetype =/usr/local/freetype -- with-jpeg =/usr /local/jpeg
?
?
1. check whether freetype is installed
Rpm-qa | grep freetype
If not, compile freetype and download it here.
./Configure -- prefix =/usr/local/freetype
Make & make install.
2. check whether libjpeg is installed.
Rpm-qa | grep libjpeg
If not, compile libjpeg and download it here.
I haven't installed libjpeg either. download it and start compiling.
Jpegsrc.v6b.tar.gz
Tar-xzvf restart src.v6b.tar.gz
Cd jpeg-6b/
./Configure -- prefix =/usr/local/jpeg -- enable-shared
Make & make install
An error occurred while making install:
/Usr/bin/install-c-m 644 jconfig. h/usr/local/jpeg/include/jconfig. h
/Usr/bin/install: cannot create regular file '/usr/local/jpeg/include/jconfig. h': No such file or directory
Make: *** [install-headers] Error 1
/Usr/bin/install: cannot create regular file '/usr/local/jpeg/lib/libjpeg. so.62.0.0': No such file or directory
/Usr/bin/install: cannot create regular file '/usr/local/jpeg/bin/cjpeg': No such file or directory
Make: *** [install-lib] Error 1
Isn't the installation program able to create a new directory by itself ?? Dizzy. I will create a new directory myself.
Mkdir-p/usr/local/jpeg/include
Mkdir-p/usr/local/jpeg/lib
Mkdir-p/usr/local/jpeg/bin
Mkdir-p/usr/local/jpeg/man/man1
OK, then the compilation is successful.
3. check whether libpng is installed.
Rpm-qa libpng
If not, compile libpng and download it here.
./Configure -- prefix =/usr/local/png
Make & make install
4. install the GD Library. download it here.
Tar-zxvf gd-2.0.35.tar.gz
Cd gd-2.0.35
./Configure -- prefix =/usr/local/gd2
5. compile PHP and download it here
Tar-zxvf php-5.2.5.tar.gz
Cd php-5.2.5
. /Configure -- with-apxs2 =/usr/local/apache2/bin/apxs -- with-mysql -- with-zlib -- with-jpeg-dir =/usr/local/jpeg -- with-png -dir =/usr/local/png -- with-freetype-dir =/usr/local/freetype -- enable-ftp -- enable-sockets -- with-gd =/usr/local/ gd2 -- enable-gd-native-ttf -- with-ttf -- enable-magic-quotes -- with-iconv-enable-mbstring = all
OK all done
PS: If an error occurs during installation:
Configure. ac: 64: error: possibly undefined macro: AM_ICONV
??? If this token and others are legitimate, please use m4_pattern_allow.
??? See the Autoconf documentation.
Make: *** [configure] Error 1
Install gettext. download it here.