I am trying to install new laravel app on my machine but i am getting errors during installation.I am attaching the image files that shows the errors that i am getting. I am using ubuntu 14.04
This is my typical list of "extras" for a ubuntu install. Your requirements may differ:
apt-get install -y fish
apt-get install -y zip
apt-get install -y sqlite
apt-get install -y php-mbstring
apt-get install -y php-curl
apt-get install -y php-dom
You have a missing requirement php5.6-mbstring.
It has already been answered over here but for php7.0:
https://askubuntu.com/a/731380/588546
You could install it using the apt get method.
If you are using php5 use:
apt-get install php5-mbstring
If you are using php5.6 (as i could see you are using it) use:
apt-get install php5.6-mbstring
If you are using php7.0 use:
apt-get install php7.0-mbstring
There might be some other missing dependencies too.
Hope it helps.
Related
I wanted to install php7.3 on Ubuntu 18.04 using the following ppa:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y php7.3-fpm
So far it worked flawlessly, but when I do apt upgrade now it forces me to install apache2-bin and php8.0, which I do not want as I am using Nginx.
How can I upgrade now without installing new packages I do not want?
apt upgrade install(update) also dependenc packages.. try upgrade manually sudo apt --only-upgrade install Package or use apt-mark hold Package - this will prevent the package from being automatically installed, upgraded or removed
original source
In ubuntu 16.04 I've already checked php 7.0 version has installed.
However, I found that I have missed below extensions.
with-openssl
with-libxml-dir
with-mcrypt
enable-sockets
Is there any waty to install these php extensions easily in ubuntu 16.04?
sudo apt-get install openssl
sudo apt-get install libxml2-dev
sudo apt-get install php7.0-mcrypt
how to install sockets.installation
sudo apt-get install -y php7.0-mcrypt
Installing PHP 5.6 here is a good guide to install all of the extensions and other details but it's for Redhat and CentOS, the concept is pretty same for all though.
Is there a way to find and install the php5-gmp module on Ubuntu 16.04? I looked for this repository but I can't find it here. In fact, when I tried to do:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5-gmp
The results is:
Unable to find php5-gmp package
Try php5.6-gmp:
sudo apt install php5.6-gmp
Obvously this will only install gmp extension for PHP5.6.
If you want it to 7.0, use the right package name:
sudo apt install php7.0-gmp
Hi I am trying to install homebrew php56 on ubuntu 14.04
I installed php 5.6 and apache2 and other dependencies of installation like perl, curl , etc.
But still I am getting this error.
That's rather a freaky way — install something on Ubuntu Linux through homebrew — it's actually should not work.
You'd better use apt package manager. You can install php-5.6 binaries from PPA:
sudo apt-get update && sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-5.6
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install php5
Recently the new php7 has been released. However, when I am trying to install the gd package, the library can not be found.
I have tried through
sudo apt-get install php70-gd
and
sudo apt-get install php70-php-gd
Does anybody have an idea if gd is available for php 7?
PHP7 packages for Ubuntu including php7.0-gd can be installed via PPA for PHP by Ondřej Surý:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Next, install the desired version:
sudo apt-get install php7.0-gd
# or
sudo apt-get install php7.1-gd
# or
sudo apt-get install php7.2-gd
# or
sudo apt-get install php7.3-gd
# or
sudo apt-get install php7.4-gd
EDIT:
As MacroMan stated, under Ubuntu 16.04 you don't need to add the repository any more. Simply issuing sudo apt-get install php7.0-gd works.
just try
sudo apt-get install php7.0-gd
i got it working that way.
Greetings.
In 2018, there is an alias package for this:
sudo apt-get install php-gd
Use this to retrieve the last version.
my php version is 7.1
sudo apt-get install php7.1-gd
this command is work for me
For
Ubuntu 16.04.4 LTS
this is the command:
sudo apt-get install php7.0-gd
check php verison first using
php -v
It will give version number suppose your version is 7.0.1 then use this command to install GD Library
sudo yum install php70-gd
OR use this command depending upon server specification
sudo apt-get install php7.0-gd