php5-mcrypt를 설치할 수 없습니다

php5-mcrypt를 설치할 수 없습니다

PHP에서 mcrypt를 설치하려고 하는데 설치할 수 없습니다. 그렇게 하면 php test.php | grep mcrypt(test.php에 가 포함되어 있는 경우 phpinfo()) 아무 것도 나타나지 않으므로 설치하고 싶습니다.

그렇게 하면 sudo apt-get install php5-mcrypt다음과 같은 결과를 얻습니다.

E: Unable to locate package php5-mcrypt

내가하면 sudo apt-cache search mcrypt아무것도 나오지 않습니다.

여기 내 /etc/apt/sources.list가 있습니다.

deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release amd64 (20130424)]/ raring main restricted
deb http://archive.ubuntu.com/ubuntu raring main restricted
deb-src http://archive.ubuntu.com/ubuntu raring main restricted

deb http://security.ubuntu.com/ubuntu raring-security main restricted
deb-src http://security.ubuntu.com/ubuntu raring-security main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu raring-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu raring-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
 deb http://archive.ubuntu.com/ubuntu raring universe
 deb-src http://archive.ubuntu.com/ubuntu raring universe
 deb http://archive.ubuntu.com/ubuntu raring-updates universe
 deb-src http://archive.ubuntu.com/ubuntu raring-updates universe
 deb http://security.ubuntu.com/ubuntu raring-security universe
 deb-src http://security.ubuntu.com/ubuntu raring-security universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
 deb http://archive.ubuntu.com/ubuntu raring multiverse
 deb-src http://archive.ubuntu.com/ubuntu raring multiverse
 deb http://archive.ubuntu.com/ubuntu raring-updates multiverse
 deb-src http://archive.ubuntu.com/ubuntu raring-updates multiverse
 deb http://security.ubuntu.com/ubuntu raring-security multiverse
 deb-src http://security.ubuntu.com/ubuntu raring-security multiverse

deb http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe

deb / deb-src 항목의 마지막 세트는http://forums.linuxmint.com/viewtopic.php?f=90&t=135896

에 따르면https://stackoverflow.com/q/19446679/569976이것은 작동합니다 :

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt

유일한 문제: /etc/php5/conf.d/mcrypt.ini가 없습니다.

어떤 아이디어가 있나요? 우분투에서 작동하게 하려면 소스에서 mcrypt를 직접 컴파일해야 합니까? 저는 우분투 13.04를 실행하고 있습니다.

감사해요!

답변1

여러분도 나와 같은 문제를 겪고 있는지 잘 모르겠지만(13.04가 아닌 Ubuntu 13.10을 실행하고 있습니다) 이것은 제 자신에게는 효과적이었습니다. 원래 답변은 다음과 같습니다.https://stackoverflow.com/questions/19446679/mcrypt-not-present-after-ubuntu-upgrade-to-13-10

sudo ln -s /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available
sudo php5enmod mcrypt
sudo service apache2 restart

관련 정보