I am trying to install php7.0-pgsql, but always get
E: Unable to locate package phpXXX-pgsql
I am trying
apt-get update
apt-get install php7.0-pgsql=7.0.12-1+deb
or
apt-get install php7.0-pgsql=7.0.12-1
or
apt-get install php7.0-pgsql
or even
apt-get install php-pgsql
always with the same result. Anyone can help me please?
echo "deb http://ftp.de.debian.org/debian stretch main" >> /etc/apt/sources.list
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y php7.0-pgsql
Related
I am using Linux Mint 19.1. My PHP configuration is like below
I am getting below error while I am trying to install mcrypt.
Try out using these commands
To install the dependencies :
sudo apt-get -y install gcc make autoconf libc-dev pkg-config
sudo apt-get -y install php7.2-dev
sudo apt-get -y install libmcrypt-dev
Once the dependencies have been installed, you can install mcrypt with the command:
sudo pecl install mcrypt-1.0.1
For a while now, I'm trying to install the php7-mysql driver into different PHP docker containers from php/docker with no luck.
My Dockerfile looks like this:
# Dockerfile
FROM php:7.3-rc-apache-stretch
RUN apt-get update && apt-get upgrade -y
When I attach to the container and try to run
apt-get install php7.0-mysql
Debian stretch says that it has no installation candidate.
E: Package 'php7.0-mysql' has no installation candidate
What can I do to be able to install php7.0 modules to Debian Stretch?
Thanks in advance, this really took me some pomodores now!
It appears you are missing the repository for php7.
Adding the php7 ppa:
sudo add-apt-repository ppa:ondrej/php
Then update:
sudo apt-get update
Now do a search to confirm php7 is there:
sudo apt search php7
Now install the php7 package:
sudo apt install php7.0-mysql
Did not work with ppa:ondrej/php but this works:
sudo apt-get update
sudo apt-get install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
sudo apt-get update
sudo apt-get install php7.0-mysql
You can also install php7.0 from there
When I try to install APC inside my docker image with
apt-get update && apt-get install php-apcu
I get the message :
Unable to locate package php-apcu
But in my local machine the installation works perfectly. Did I miss something ?
You need to add the universe repository:
RUN apt-get update &&\
apt-get install -y software-properties-common &&\
add-apt-repository universe &&\
apt-get install -y php-apcu
If you get a "Error: 'universe' invalid" then you need to use the full source line:
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
instead of "universe" in your apt-add-repository line.
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.
I am at the initial stages of preparing for multiphp nginx following a complete install of Ubuntu and the git page
http://phpbrew.github.io/phpbrew/
I have duplicated steps followed here for clarity and re-installed Ubuntu and followed exactly what is below in case my error correction attempts were causing issues
https://docs.google.com/spreadsheets/d/1KbfqW5PqFejlCMV9yEUHgEr5FdCh5P6Ufv-HRQH3u9g/edit?usp=sharing
but fails with /usr/bin/env: php: No such file or directory.
Please check out our wiki and install the requirements
https://github.com/phpbrew/phpbrew/wiki/Requirement
apt-get build-dep php5
apt-get install -y php5 php5-dev php-pear autoconf automake curl libcurl3-openssl-dev build-essential libxslt1-dev re2c libxml2 libxml2-dev php5-cli bison libbz2-dev libreadline-dev
apt-get install -y libfreetype6 libfreetype6-dev libpng12-0 libpng12-dev libjpeg-dev libjpeg8-dev libjpeg8 libgd-dev libgd3 libxpm4 libltdl7 libltdl-dev
apt-get install -y libssl-dev openssl
apt-get install -y gettext libgettextpo-dev libgettextpo0
apt-get install -y libicu-dev
apt-get install -y libmhash-dev libmhash2
apt-get install -y libmcrypt-dev libmcrypt4
I did not post this without much effort trying to resolve first - about a day and many visited links.
Anyway the issue lay with thinking php was installed with Ubuntu +/ updates.
Note that phpbrew has php as one of its dependencies.
I guess a fresh OS install went against me on this occasion.
sudo apt-get install php5