Amazon EC2 t2.micro

时间:2015-11-01 18:11:10

标签: mysql linux amazon-web-services amazon-ec2

我从亚马逊发起了一个EC2 t2.micro实例,尝试使用命令安装MySQL服务器:

sudo yum install mysql-community-server

我收到了以下错误:

Error: Package: mysql-community-server-5.7.9-1.el7.x86_64 (mysql57-community)
           Requires: systemd

我尝试按照this post安装systemd命令,但我收到以下错误:

/usr/include/linux/loop.h:58:2: error: unknown type name '__u64'
  __u64     lo_init[2];
  ^
In file included from /usr/include/netinet/if_ether.h:25:0,
                 from /usr/include/netinet/ether.h:25,
                 from ./src/shared/socket-util.h:26,
                 from ./src/core/unit.h:39,
                 from ./src/core/busname.h:27,
                 from src/libsystemd/sd-bus/bus-kernel.h:26,
                 from src/libsystemd/sd-bus/bus-internal.h:38,
                 from src/libsystemd/sd-bus/bus-objects.c:26:
/usr/include/linux/if_ether.h:140:2: error: unknown type name '__be16'
  __be16  h_proto;  /* packet type ID field */
  ^
In file included from ./src/shared/socket-util.h:30:0,
                 from ./src/core/unit.h:39,
                 from ./src/core/busname.h:27,
                 from src/libsystemd/sd-bus/bus-kernel.h:26,
                 from src/libsystemd/sd-bus/bus-internal.h:38,
                 from src/libsystemd/sd-bus/bus-objects.c:26:
/usr/include/linux/if_packet.h:9:2: error: unknown type name '__be16'
  __be16 spkt_protocol;
  ^
/usr/include/linux/if_packet.h:14:2: error: unknown type name '__be16'
  __be16  sll_protocol;
  ^
/usr/include/linux/if_packet.h:195:2: error: unknown type name '__aligned_u64'
  __aligned_u64 seq_num;

来自uname -a命令的结果:Linux ip-172-31-19-10 4.1.7-15.23.amzn1.x86_64 #1 SMP Mon Sep 14 23:20:33 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

在CentOS7中systemd命令是新的时,想知道为什么在这个实例中缺少systemd命令?

我无法找出任何问题?

0 个答案:

没有答案