小编ian*_*ian的帖子

试图安装Perl-Mysql DBD,无法找到mysql_config

这是输出:

Ian-MacBook-Pro:DBD-mysql-4.011 ianseyer$ sudo Perl Makefile.PL
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.

Cannot find the file 'mysql_config'! Your execution PATH doesn't seem 
not contain the path to mysql_config. Resorting to guessed values!
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option to specify where mysql_config is located
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't find mysql_config. Use --mysql_config option …

mysql database perl

27
推荐指数
5
解决办法
4万
查看次数

无效的政策文件。请检查策略语法并确保 Principals 有效

尝试为 API 网关创建资源策略文档。

我有以下几点:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Principal": {
                "AWS": "*"
            },
            "Action": "execute-api:Invoke",
            "Resource": "arn:aws:execute-api:eu-west-1:<acct id>:g2wpcs1pk8/*"
        },
        {
            "Effect": "Deny",
            "Principal": {
                "AWS": "*"
            },
            "Action": "execute-api:Invoke",
            "Resource": "arn:aws:execute-api:eu-west-1:<acct_id>:g2wpcs1pk8/*",
            "Condition": {
                "IpAddress": {
                    "aws:SourceIp": [
                        "192.0.2.0/24",
                        "198.51.100.0/24"
                    ]
                }
            }
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

但是,我收到标题错误:

Invalid policy document. Please check the policy syntax and ensure that Principals are valid.

在 API 网关 UI 中。

我试过包括ForAnyValue:IpAddress在条件中。

amazon-web-services amazon-iam aws-api-gateway

5
推荐指数
1
解决办法
4570
查看次数