Install php pdo db library in Amazon ec2 - linux

i want to install the php (5.6) pdo db lib in ec2 instance, when i tried
sudo yum install php56-pdo-dblib
i am getting
No package php56-pdo-dblib available.
Please help
Thanks
Thanigaivelan

Search for the package using yum:
yum search pdo*
When you get the list of pdo packages, use the package name listed to install the one you need:
yum install <package_name>

php56-mysqlnd by default should support pdo.
Try installing that and see how that goes.
M$SQL = php56-mssql
The above is the default mssql driver for linux+php

Related

E: Unable to locate package mysql E: Unable to locate package server

what to do with this i am in linux terminal.I am trying to install mysql in my system
This error is because the package 'mysql' is not found in systems repositorys list (and to my knowlege, does not exist).
However, the 'mysql-server' package does exist (assumining you want the server) and it can be instaled by (Install MySQL using APT):
sudo apt-get update
sudo apt-get install mysql-server
There are also different ways that MySQL can be installed outlined on the MySQL Website: MySQL Installtion Options

Unable to install yum downloadonly plugin on RHEL8

I am trying to install Yum downloadonly plugin using $yum install yum-downloadonly but i get " Error: Unable to find a match: yum-downloadonly". I am using RHEL 8. Any help in this regard is greatly appreciated.
I am using RHEL8.3
On RHEL8.x you can achieve that via dnf which has such functionality already built-in:
dnf download rootsh
or including dependencies:
dnf download rootsh --resolve
Taken from: https://linoxide.com/download-packages-without-installing-rpm-distros/

PostgreSQL on Elastic Beanstalk (Amazon Linux 2)

With former generation of Amazon Linux, all I needed to do is add the following in .ebextensions in order to use PostgreSQL:
packages:
yum:
postgresql93-devel: []
Now when I deploy on EB with the following platform:
Python 3.7 running on 64bit Amazon Linux 2/3.0.0
I get the following error on deployment:
[ERROR] Error occurred during build: Yum does not have postgresql93-devel available for installation
Therefore it is impossible to deploy as I need to connect to a PostgreSQL database in RDS.
What config in .ebextensions do I need to do?
The following works:
packages:
yum:
amazon-linux-extras: []
commands:
01_postgres_activate:
command: sudo amazon-linux-extras enable postgresql10
02_postgres_install:
command: sudo yum install -y postgresql-devel
postgresql93-devel is pretty old. The yum PostgreSQL repository starts at 9.5. Depending on your needs you may want to upgrade to at least 9.5. PostgreSQL 12 is the latest production release.
EDIT
As to the comment #jordanm made - that's correct, the AWS Linux 2 environment does have PostgreSQL 9.2.24 available. If you're ok with that version then you can just install postgresql-devel. Change your .ebextensions to just run:
packages:
yum:
postgresql-devel: []
This will install the devel package for 9.2.24.
If you'd like something a bit newer, it's apparently a bunch harder. I was unable to get this to work for the devel package. If you change your .ebextensions to contain something like (not tested!):
container_commands:
command: 'amazon-linux-extras install -y postgresql9.6'
Then you'll get PostgreSQL 9.6 but it does not appear to have the devel package available.
It doesn't look possible to use the RPM's from https://yum.postgresql.org/ as AWS Linux 2 is not supported. Trying CentOS or RHEL gives an error.
Is 9.2 usable for your environment?
Something that helped me with Amazon Linus 1, is the fact that I didn't need to install Postgres at all when plugging in a RDS service and specifying Postgres as the driver. It's just a thought for people having this problem. But maybe just try to not explicitly install Postgres.
I haven't validated which version will be installed by default.
This configuration works fine with the ElasticBeanstalk environment (Python 3.6 running on 64bit Amazon Linux). After this, I was able to install psycopg2 with requirements.txt
packages:
yum:
libicu-devel: []
commands:
01_postgres_libs:
command: rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-libs-10.7-1PGDG.rhel6.x86_64.rpm
02_postgres_install:
command: rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-10.7-1PGDG.rhel6.x86_64.rpm
03_symink_pg_config:
command: sudo ln -sf /usr/pgsql-10/bin/pg_config /usr/bin/pg_config
04_postgres_devel:
command: sudo rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-devel-10.7-1PGDG.rhel6.x86_64.rpm

Installing mysql cluster on Ubuntu

Mysql supposedly provides an APT repository for installing mysql cluster
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-cluster-install
My understanding is that in order to use this repository I need to install the mysql-apt-config package, which I have done:
sudo dpkg -i mysql-apt-config_0.8.4-1_all.deb
However when I try to run the command:
sudo apt-get install mysql-cluster-community-server
I get this error:
E: Unable to locate package mysql-cluster-community-server
Any ideas why I get this?
Also, has anyone else installed mysql cluster using any other methods that you can recommend?

Unable to install postgresql on oracle linux with yum

When i try to install the package it says package is already installed, But when i try to install then it says that no package is available.
Downloads $ sudo rpm -i pgdg-oraclelinux91-9.1-7.noarch.rpm
package pgdg-oraclelinux91-9.1-7.noarch is already installed
Downloads $ sudo yum -y install postgresql91 postgresql91-contrib postgresql91-devel postgresql91-libs postgresql91-plperl postgresql91-plpython postgresql91-pltcl postgresql91-docs postgresql91-server
Loaded plugins: langpacks, ulninfo
Repository google-chrome is listed more than once in the configuration
No package postgresql91 available.
No package postgresql91-contrib available.
No package postgresql91-devel available.
No package postgresql91-libs available.
No package postgresql91-plperl available.
No package postgresql91-plpython available.
No package postgresql91-pltcl available.
No package postgresql91-docs available.
No package postgresql91-server available.
Error: Nothing to do
Thanks in Advance.
Use yum list postgresql91\* to find this package first and then use full name to install a package
I have facing same issue when downloading postgres in linux.
As i have followed some step from surfing some site.
I have download repository RPM first and its downloaded successfully.
then after in next step i have run below command
yum install postgresql10-server postgresql10
then getting below error
No package postgresql10-server available.
No package postgresql10 available.
in resolution of that i have run yum list command. and you can find out list of available software where postgres also mentioned so used specific name of postgres in command like
sudo yum install postgresql-server.x86_64
And it is working fine.

Resources