STEP 1. PHP 설치를 한다.


[root@localhost download]# tar xvfz php-5.6.16.tar.gz 

..... 중략 .....

php-5.6.16/EXTENSIONS

php-5.6.16/README.namespaces

php-5.6.16/pear/

php-5.6.16/pear/install-pear.txt

php-5.6.16/pear/install-pear-nozlib.phar

php-5.6.16/pear/fetch.php

php-5.6.16/pear/Makefile.frag

php-5.6.16/README.SUBMITTING_PATCH

[root@localhost download]# 

[root@localhost download]# cd php-5.6.16
[root@localhost php-5.6.16]# 


[root@localhost php-5.6.16]# ./configure --prefix=/usr/local/server/php --with-apxs2=/usr/local/server/apache/bin/apxs --with-mysql=/usr/local/server/mysql --with-config-file-path=/usr/local/server/apache/conf --disable-debug --enable-safe-mode --enable-track-vars --enable-sockets --with-mod_charset --with-charset=utf8 --with-xml --with-language=korean --enable-mailparse --enable-calender --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-url-includes --enable-trans-id --enable-inline-optimization --enable-bcmath --with-jpeg --with-png --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --enable-exif --with-gd --with-ttf --with-gettext --enable-sigchild --enable-mbstring
..... 중략 .....

checking libxml2 install dir... /usr

checking for xml2-config path... 

configure: error: xml2-config not found. Please check your libxml2 installation.

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# 

[root@localhost php-5.6.16]# yum -y install xml2-config

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

 * base: mirror.premi.st

 * extras: mirror.premi.st

 * updates: mirror.premi.st

No package xml2-config available.

Error: Nothing to do

[root@localhost php-5.6.16]# yum -y install xml2

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

 * base: mirror.premi.st

 * extras: mirror.premi.st

 * updates: mirror.premi.st

No package xml2 available.

Error: Nothing to do

[root@localhost php-5.6.16]# 





STEP 2. libxml2, libxml2-devel을 설치한다.

[root@localhost php-5.6.16]# yum -y install libxml2 libxml2-devel

Loaded plugins: fastestmirror, refresh-packagekit, security

Setting up Install Process

Loading mirror speeds from cached hostfile

 * base: mirror.premi.st

 * extras: mirror.premi.st

 * updates: mirror.premi.st

Resolving Dependencies

--> Running transaction check

---> Package libxml2.x86_64 0:2.7.6-14.el6_5.2 will be updated

--> Processing Dependency: libxml2 = 2.7.6-14.el6_5.2 for package: libxml2-python-2.7.6-14.el6_5.2.x86_64

---> Package libxml2.x86_64 0:2.7.6-20.el6_7.1 will be an update

---> Package libxml2-devel.x86_64 0:2.7.6-20.el6_7.1 will be installed

--> Running transaction check

---> Package libxml2-python.x86_64 0:2.7.6-14.el6_5.2 will be updated

---> Package libxml2-python.x86_64 0:2.7.6-20.el6_7.1 will be an update

--> Finished Dependency Resolution


Dependencies Resolved


=====================================================================================================================

 Package                       Arch                  Version                            Repository              Size

=====================================================================================================================

Installing:

 libxml2-devel                 x86_64                2.7.6-20.el6_7.1                   updates                1.1 M

Updating:

 libxml2                       x86_64                2.7.6-20.el6_7.1                   updates                803 k

Updating for dependencies:

 libxml2-python                x86_64                2.7.6-20.el6_7.1                   updates                323 k


Transaction Summary

=====================================================================================================================

Install       1 Package(s)

Upgrade       2 Package(s)


Total download size: 2.2 M

Downloading Packages:

(1/3): libxml2-2.7.6-20.el6_7.1.x86_64.rpm                                                    | 803 kB     00:00     

(2/3): libxml2-devel-2.7.6-20.el6_7.1.x86_64.rpm                                              | 1.1 MB     00:00     

(3/3): libxml2-python-2.7.6-20.el6_7.1.x86_64.rpm                                             | 323 kB     00:00     

---------------------------------------------------------------------------------------------------------------------

Total                                                                                1.0 MB/s | 2.2 MB     00:02     

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Updating   : libxml2-2.7.6-20.el6_7.1.x86_64                                                                   1/5 

  Updating   : libxml2-python-2.7.6-20.el6_7.1.x86_64                                                            2/5 

  Installing : libxml2-devel-2.7.6-20.el6_7.1.x86_64                                                             3/5 

  Cleanup    : libxml2-python-2.7.6-14.el6_5.2.x86_64                                                            4/5 

  Cleanup    : libxml2-2.7.6-14.el6_5.2.x86_64                                                                   5/5 

  Verifying  : libxml2-python-2.7.6-20.el6_7.1.x86_64                                                            1/5 

  Verifying  : libxml2-2.7.6-20.el6_7.1.x86_64                                                                   2/5 

  Verifying  : libxml2-devel-2.7.6-20.el6_7.1.x86_64                                                             3/5 

  Verifying  : libxml2-2.7.6-14.el6_5.2.x86_64                                                                   4/5 

  Verifying  : libxml2-python-2.7.6-14.el6_5.2.x86_64                                                            5/5 


Installed:

  libxml2-devel.x86_64 0:2.7.6-20.el6_7.1                                                                            


Updated:

  libxml2.x86_64 0:2.7.6-20.el6_7.1                                                                                  


Dependency Updated:

  libxml2-python.x86_64 0:2.7.6-20.el6_7.1                                                                           


Complete!

[root@localhost php-5.6.16]# 










'Linux tools' 카테고리의 다른 글

CentOS 6.6 x64에 OpenSSL 1.0.2e 설치하기  (3) 2016.01.04
APM 다운로드 링크 찾는 법  (0) 2016.01.04
블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,





CentOS 6.6에서 openssl 버전이 낮아 yum update를 했는데 안된다.

그래서 직접 소스를 다운 받아 컴파일하는 방법을 작성한다.




STEP 1. OpenSSL 사이트(https://www.openssl.org/)로 이동한다.


1> Downloads를 클릭한다.




2> 아래로 스크롤을 내린다.




3> openssl-1.0.2e.tar.gz에서 마우스 우클릭으로 속성을 클릭한다.



4>주소 URL을 복사한다.

복사 된 링크 값 ( https://www.openssl.org/source/openssl-1.0.2e.tar.gz )






STEP 2. OpenSSL 다운 받아 설치한다.


[root@localhost download]# wget https://www.openssl.org/source/openssl-1.0.2e.tar.gz

--2016-01-03 23:06:27--  https://www.openssl.org/source/openssl-1.0.2e.tar.gz

Resolving www.openssl.org... 194.97.150.234, 2001:608:c00:180::1:ea

Connecting to www.openssl.org|194.97.150.234|:443... connected.

HTTP request sent, awaiting response... 200 OK

Length: 5256555 (5.0M) [application/x-gzip]

Saving to: “openssl-1.0.2e.tar.gz”


100%[===========================================================================>] 5,256,555    978K/s   in 5.3s    


2016-01-03 23:06:38 (978 KB/s) - “openssl-1.0.2e.tar.gz” saved [5256555/5256555]


[root@localhost download]# 



[root@localhost download]# tar xvfz openssl-1.0.2e.tar.gz 

..... 중략 .....
openssl-1.0.2e/VMS/ucx_shr_decc_log.opt
openssl-1.0.2e/VMS/ucx_shr_decc.opt
openssl-1.0.2e/VMS/ucx_shr_vaxc.opt
openssl-1.0.2e/VMS/VMSify-conf.pl
openssl-1.0.2e/VMS/WISHLIST.TXT
openssl-1.0.2e/test/bctest
openssl-1.0.2e/util/pod2mantest
[root@localhost download]# 
[root@localhost download]# cd openssl-1.0.2e
[root@localhost openssl-1.0.2e]# 


[root@localhost openssl-1.0.2e]# ./config --prefix=/usr --openssldir=/usr/local/openssl shared
..... 중략 .....
make[1]: Leaving directory `/download/openssl-1.0.2e/tools'
generating dummy tests (if needed)...
make[1]: Entering directory `/download/openssl-1.0.2e/test'
md2test.c => dummytest.c
rc5test.c => dummytest.c
jpaketest.c => dummytest.c
make[1]: Leaving directory `/download/openssl-1.0.2e/test'

Configured for linux-x86_64.
[root@localhost openssl-1.0.2e]# 


[root@localhost openssl-1.0.2e]# make
..... 중략 .....
make[2]: Leaving directory `/download/openssl-1.0.2e/test'
gcc -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -Wa,--noexecstack -m64 -DL_ENDIAN -O3 -Wall -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM   -c -o dummytest.o dummytest.c
make[2]: Entering directory `/download/openssl-1.0.2e/test'
make[2]: Leaving directory `/download/openssl-1.0.2e/test'
make[1]: Leaving directory `/download/openssl-1.0.2e/test'
making all in tools...
make[1]: Entering directory `/download/openssl-1.0.2e/tools'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/download/openssl-1.0.2e/tools'
[root@localhost openssl-1.0.2e]# 


[root@localhost openssl-1.0.2e]# make install
..... 중략 .....
make[1]: Entering directory `/usr/lib64'
make[2]: Entering directory `/usr/lib64'
make[2]: Leaving directory `/usr/lib64'
make[2]: Entering directory `/usr/lib64'
make[2]: Leaving directory `/usr/lib64'
make[1]: Leaving directory `/usr/lib64'
cp libcrypto.pc /usr/lib64/pkgconfig
chmod 644 /usr/lib64/pkgconfig/libcrypto.pc
cp libssl.pc /usr/lib64/pkgconfig
chmod 644 /usr/lib64/pkgconfig/libssl.pc
cp openssl.pc /usr/lib64/pkgconfig
chmod 644 /usr/lib64/pkgconfig/openssl.pc
[root@localhost openssl-1.0.2e]# 


[root@localhost openssl-1.0.2e]# openssl version
OpenSSL 1.0.2e 3 Dec 2015
[root@localhost openssl-1.0.2e]# 

 

 ./config를 하면 /usr/local/ssl로 설치되고, /usr/local/ssl/bin/openssl 로 설치 된다.

 openssl 를 /usr/bin에 덮어쓰기 위해서 --prefix=/usr 옵션을 준 것이다.

 




블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,





APM(Apache, PHP, MySQL)을 다운받을 때 경로를 모르는 경우 받는 방법에 대해 설명하겠다.



STEP 1. Apache 사이트(http://httpd.apache.org/)로 이동한다.


1> From a Mirror 클릭한다.



2> 2.4.18에서 마우스 우클릭으로 속성을 클릭한다.




3> 주소 URL을 복사한다.

복사 된 링크 값 ( https://httpd.apache.org/download.cgi#apache24 )






STEP 2. Apache 사이트(http://apr.apache.org/download.cgi)로 이동한다.


1> apr-1.5.2.tar.gz에서 마우스 우클릭으로 속성을 클릭한다.




2> 주소 URL을 복사한다.

복사 된 링크 값 ( http://apache.mirror.cdnetworks.com//apr/apr-1.5.2.tar.gz )






3> apt-util-1.5.4.tar.gz에서 마우스 우클릭으로 속성을 클릭한다.




4> 주소 URL을 복사한다.

복사 된 링크 값 ( http://apache.mirror.cdnetworks.com//apr/apr-util-1.5.4.tar.gz )






STEP 3. pcre 사이트(http://pcre.org/)로 이동한다.


1>  ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/를 클릭한다.




2> pcre-8.37.tar.gz에서 마우스 우클릭으로 속성을 클릭한다.




3> 주소 URL을 복사한다.

복사 된 링크 값 ( ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gz )






STEP 4. PHP 사이트(http://php.net/)로 이동한다.


1> Downloads를 클릭한다.




2> php-5.6.16.tar.gz를 클릭한다.




3> 스크롤을 아래로 내려서 한국을 찾는다.




4> kr1.php.net에서 마우스 우클릭으로 속성을 클릭한다.



5> 주소 URL을 복사한다.

복사 된 링크 값 ( http://pa1.php.net/get/php-5.6.16.tar.gz/from/this/mirror )





STEP 5. MySQL 사이트(http://dev.mysql.com/)로 이동한다.


1> Downloads를 클릭한다.




2> Community를 클릭한다.




3> DOWNLOAD를 클릭한다.




4> 스크롤을 아래로 내려서 플랫폼 체크박스를 찾는다.




5> Windows 플랫폼을 Source Code로 바꾼다.




6> CentOS 6.6 x64를 설치했으므로, 64비트 Download를 클릭한다.




7> 스크롤을 아래로 내린다.



8> No thanks, just start my download에서 마우스 우클릭으로 속성을 클릭한다.




9> 주소 URL을 복사한다.

복사 된 링크 값 ( http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.10.tar.gz )




블로그 이미지

쭈꾸댕이

아직 어설픈 실력으로 나름 제가 하는 것에 대한 것들을 옮기는 공간입니다. 틀린 부분도 있을 수 있으니 이 점 양해하시고, 도움이 되셨으면 좋겠네요.

,