LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Urgent - Trying to install Mysql 5.6 on amazon ami (https://www.linuxquestions.org/questions/linux-server-73/urgent-trying-to-install-mysql-5-6-on-amazon-ami-4175595281/)

dolphin_1 12-12-2016 09:26 AM

Urgent - Trying to install Mysql 5.6 on amazon ami
 
Hello ,

Trying to install mysql 5.6 on linux and keep getting REQUIRES : systemd error. Not sure how do i install systemd or should i simply ignore the broken pipe using --skip-broken during yum installation of mysql-server. Following are the details of system .

#cat /proc/version
Linux version 4.4.30-32.54.amzn1.x86_64 (mockbuild@gobi-build-60008) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 10 15:52:05 UTC 2016

cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2016.09"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2016.09"
PRETTY_NAME="Amazon Linux AMI 2016.09"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2016.09:ga"
HOME_URL="http://aws.amazon.com/amazon-linux-ami/"


#rpm -qa | grep mysql
mysql56-5.6.33-1.21.amzn1.x86_64
mysql-config-5.5.52-1.13.amzn1.x86_64
mysql56-libs-5.6.33-1.21.amzn1.x86_64
mysql56-errmsg-5.6.33-1.21.amzn1.x86_64
mysql56-server-5.6.33-1.21.amzn1.x86_64
mysql56-common-5.6.33-1.21.amzn1.x86_64
mysql-community-release-el6-5.noarch


and below is the error of dependancey i keep getting ....

# yum install mysql-server mysql
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
5 packages excluded due to repository priority protections
Package mysql-server is obsoleted by mysql-community-server, trying to install mysql-community-server-5.6.34-2.el7.x86_64 instead
Package mysql is obsoleted by mysql-community-client, trying to install mysql-community-client-5.6.34-2.el7.x86_64 instead
Resolving Dependencies
--> Running transaction check
---> Package mysql-community-client.x86_64 0:5.6.34-2.el7 will be installed
--> Processing Dependency: mysql-community-libs(x86-64) >= 5.6.10 for package: mysql-community-client-5.6.34-2.el7.x86_64
---> Package mysql-community-server.x86_64 0:5.6.34-2.el7 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.34-2.el7 for package: mysql-community-server-5.6.34-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.34-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.34-2.el7.x86_64
--> Running transaction check
---> Package mysql-community-common.x86_64 0:5.6.34-2.el7 will be installed
---> Package mysql-community-libs.x86_64 0:5.6.34-2.el7 will be installed
---> Package mysql-community-server.x86_64 0:5.6.34-2.el7 will be installed
--> Processing Dependency: systemd for package: mysql-community-server-5.6.34-2.el7.x86_64
--> Processing Dependency: systemd for package: mysql-community-server-5.6.34-2.el7.x86_64
--> Finished Dependency Resolution
Error: Package: mysql-community-server-5.6.34-2.el7.x86_64 (mysql56-community)
Requires: systemd
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest


NOTE: not sure from where system is getting this 5.6.34 version

Thanks in advance...

D

bathory 12-12-2016 11:27 AM

Quote:

#rpm -qa | grep mysql
mysql56-5.6.33-1.21.amzn1.x86_64
mysql-config-5.5.52-1.13.amzn1.x86_64
mysql56-libs-5.6.33-1.21.amzn1.x86_64
mysql56-errmsg-5.6.33-1.21.amzn1.x86_64
mysql56-server-5.6.33-1.21.amzn1.x86_64
mysql56-common-5.6.33-1.21.amzn1.x86_64
mysql-community-release-el6-5.noarch
The above means that mysql is already installed in your system

Quote:

Error: Package: mysql-community-server-5.6.34-2.el7.x86_64 (mysql56-community)
Requires: systemd
The error you get is because you're trying to install a package that is built for a different system (note the el7 in the package name above)

Regards

dolphin_1 12-14-2016 03:52 AM

Quote:

Originally Posted by bathory (Post 5641082)
The error you get is because you're trying to install a package that is built for a different system (note the el7 in the package name above)

@bathory,

Thanks for the response and clarification. I had tried el7.9 package too but had same error popping up. However, it was good news and helpful to know that mysql is already installed.
So i would try now to configure and migrate existing h2 db to the new mysql db (fingers crossed).


All times are GMT -5. The time now is 10:32 AM.