我已经在Ubuntu 16.04上尝试安装Laravel 3天了。我按照Laravel安装过程的最高搜索链接进行操作,但是我无法成功执行任何一种方法。现在我在安装PHP时遇到了不同的问题。我曾经安装过MariaDB,但没有成功。但是可能已经破坏了某些东西,导致我无法安装PHP。我面临的问题是:
Reading package lists... Done
Building dependency tree
Reading state information... Done
php is already the newest version (1:7.2+62+ubuntu16.04.1+deb.sury.org+3).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
mysql-server : Depends: mysql-server-5.7 but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
当我尝试执行
php -v
时,出现了以下错误。PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20170718/mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718//usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718//usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 7.2.9-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Aug 19 2018 07:16:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.9-1+ubuntu16.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies
我对Ubuntu和Laravel完全是新手。如果有人能指导我如何在Ubuntu 16.04上安装Laravel,我将非常感激。 谢谢。
sudo phpdismod mcrypt
看看是否有效。 - M. Eriksson