php5-mysql 드라이버가 없어서 .. 설치 하려고
apt-get install php5-mysql 을 하니 ..
아파치에서 부터 별 이상한것들이 다 깔리는데 ...
전 필요한건 php5-mysql 입니다...
다른거 필요 없이 php5 만 설치 하는 방법이 있을까요 ?
소스를 다운받아서 .. 컴파일 이런건 안됩니다..
docker 가지고 하는거라 .. 그 안쪽에 컴파일 관련된걸 죄다 설치 해야 해서요 ...
apt-get 로 php5-mysql 만 설치 하는 방법은 없을까요? nginx에 php5-fpm 을 사용하고 있는데
php5-mysql 을 설치하면 php5-fpm 도 삭제해버리고 아파치를 깔아버려서 난감하네요 .
apt-get install php5-mysql Çϸé,
libmysqlclient18 mysql-common php5-common php5-json php5-mysql
¿ä·¸°Ô À§¿¡°Í¸¸ ¼³Ä¡ÇÏ·Á°í Çϴµ¥¿ä...?
Á¦°¡ Å×½ºÆ®Çغ» ȯ°æÀº ¿ìºÐÅõ 14.04 64bitÀÔ´Ï´Ù.
¹èÆ÷ÆÇ ¹öÀü¿¡ µû¶ó¼ ÆÐÅ°Áö ÀÇÁ¸¼ºÀÌ ´Ù¸£±â ¶§¹®¿¡ ¹öÀüÀ» ¾Ë·ÁÁÖ¼Å¾ß ÇÒ °Í °°½À´Ï´Ù.
ÀÇÁ¸¼ºÀÌ ¾ø´Â ¹öÀüÀ» »ç¿ëÇÏ½Ã¸é µÉ °Í °°Àºµ¥¿ä? docker·Î ±¸ÃàÇÏ¸é ±×·± ºÎºÐ¿¡¼ Á¶±Ý ´õ ÀÚÀ¯·Î¿ï °Í °°±¸¿ä.
ÇÏÁö¸¸ »ç¿ëÇÏ·Á´Â ¹èÆ÷ÆÇÀÌ Á¤ÇØÁ® ÀÖ°í, °Å±â¿¡¼´Â php5-mysqlÀÌ apache°ü·Ã ÆÐÅ°Áö¸¦ ÀÇÁ¸ÇÏ°í ÀÖ´Â °æ¿ì¶ó¸é ¸î°¡Áö ¹æ¹ýÀÌ ÀÖÀ»ÅÙµ¥¿ä.
ÀÏ´Ü ¹«½ÄÇÑ ¹æ¹ýÀ¸·Î ÀÇÁ¸¼ºÀ» ¹«½ÃÇÏ°í ¼³Ä¡ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
(debÆÄÀÏÀ» ¹Þ¾Æ¼, sudo dpkg --force-depends -i XXX.deb ÇÏ¸é µË´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº °Ë»öÀ̳ª manÀ» Âü°íÇϼ¼¿ä. ±Ùµ¥ ÀÌ°Ç Â÷ÈÄ¿¡ ¹®Á¦°¡ »ý±æ °¡´É¼ºÀÌ ¸¹½À´Ï´Ù.)
´Ù¸¥ ¹æ¹ýÀ¸·Î´Â ÇÊ¿äÇÑ ÆÄÀÏÀ» ÀçÆÐŰ¡ Çؼ .deb ÆÄÀÏÀ» ¸¸µå´Â ¹æ¹ýµµ ÀÖÀ» °Í °°½À´Ï´Ù.
NAME="Ubuntu"
VERSION="14.04.1 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.1 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
root@651425f76101:/etc#
Á¦°Íµµ 14.04ÀÔ´Ï´Ù.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libsystemd-daemon0
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
apache2 apache2-bin apache2-data libapache2-mod-php5 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libmysqlclient18 mysql-common php5
php5-cli php5-common php5-readline
Suggested packages:
www-browser apache2-doc apache2-suexec-pristine apache2-suexec-custom ufw
apache2-utils php-pear php5-user-cache
Recommended packages:
ssl-cert
The following packages will be REMOVED:
php5-fpm
The following NEW packages will be installed:
apache2 apache2-bin apache2-data libapache2-mod-php5 libapr1 libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-ldap libmysqlclient18 mysql-common
php5-mysql
The following packages will be upgraded:
php5 php5-cli php5-common php5-readline
4 upgraded, 11 newly installed, 1 to remove and 87 not upgraded.
Need to get 6772 kB of archives.
After this operation, 9834 kB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
Àü ÀÌ·¸°Ô ³ª¿À³×¿ä.
(±âº» OS¸¸ ¼³Ä¡ÇÑ ¿ìºÐÅõ 14.04.1 64bit ¼¹ö ¹öÀüÀÔ´Ï´Ù.)
ÇöÀç ÆÐÅ°Áö ¼³Ä¡ »óŸ¦ Á¦°¡ ¾Ë ¼ö ¾ø±â ¶§¹®¿¡ ¿ÏÀüÇÑ ÇØ´äÀº ¸øµå¸± °Í °°°í,
¹æ¹ý¸¸ ¸»¾¸µå¸®¸é ¾î¶² ÆÐÅ°Áö ¶§¹®¿¡ ±×·¸°Ô µÇ´ÂÁö ÀÇÁ¸¼º Æ®¸®¸¦ »ìÆ캸¼Å¾ß ÇÒ °Í °°½À´Ï´Ù.
apt-cache show ÆÐÅ°Áö¸í ¸í·ÉÀ¸·Î ÀÇÁ¸¼º °ü°è¸¦ È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.
'4 upgraded, 11 newly installed, 1 to remove and 87 not upgraded.'
±×·±µ¥, À§ ¸Þ½ÃÁö¿¡ 87 not upgraded ¶ó´Â °ÍÀ» º¸´Ï, ÇöÀç ¼³Ä¡µÈ ÆÐÅ°ÁöµéÀÌ ¾÷µ¥ÀÌÆ® µÈÁö ¿À·¡µÈ °ÍÀ¸·Î º¸ÀÔ´Ï´Ù.
apt-get update && apt-get upgrade ¶Ç´Â apt-get dist-upgrade·Î ÆÐÅ°Áö¸¦ ÃֽŠ¹öÀüÀ¸·Î ¸ÂÃç ³õ°í ÇÏ½Ã´Â°Ô ÁÁ½À´Ï´Ù.