我在laravel中安装错误时遇到了麻烦。 首先在ubuntu 16.04中安装xampp。 之后
words = ['demo', 'none', 'tied', 'evil', 'dome', 'mode', 'live',
'fowl', 'veil', 'wolf', 'diet', 'vile', 'edit', 'tide',
'flow', 'neon']
words.group_by { |word| word.chars.sort }.values
#=> [["demo","dome","mode"],["none","neon"],["tied","diet","edit","tide"],["evil","live","veil","vile"],["fowl","wolf","flow"]]
安装laravel与作曲家发生一些错误
cd /opt/lampp/htdocs/
composer create-project --prefer-dist laravel/laravel blog
如何修复此错误。我的xampp php版本是7.0.10
答案 0 :(得分:3)
错误消息详细说明了错误:
laravel / framework v5.3.4需要ext-mbstring * - >系统中缺少所请求的PHP扩展名mbstring。
运行sudo apt install php-mbstring
进行安装。
答案 1 :(得分:0)
运行此
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
如果您不需要再次更新php 7,请运行此
sudo apt-get install php-mcrypt
安装这些可选组件
libnet-libidn-perl - Perl bindings for GNU Libidn
php-all-dev - package depending on all supported PHP development packages
php-cgi - server-side, HTML-embedded scripting language (CGI binary) (default)
php-cli - command-line interpreter for the PHP scripting language (default)
php-common - Common files for PHP packages
php-curl - CURL module for PHP [default]
php-dev - Files for PHP module development (default)
php-gd - GD module for PHP [default]
php-gmp - GMP module for PHP [default]
sudo apt-get install package_name
最好的教程How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 16.04 - 使用并且适用于我
答案 2 :(得分:0)
默认情况下,Ubuntu 16.04安装了php7.0。你需要安装第一个php5(在你的情况下)。然后在重新安装laravel之前切换到php5。
https://askubuntu.com/questions/756879/cant-install-php5-on-ubuntu-16-04