相关疑难解决方法(0)

将Postgres11部署到Elastic Beanstalk-需要/ etc / redhat-release

我在将我的第一个应用程序部署到Elastic Beanstalk时遇到了麻烦,真的可以使用一些帮助。尽管RDS正式支持Postgres11,但我无法安装它。

问题
如果我运行,eb deploy我会收到消息说pg_config找不到可执行文件。需要psycopg2从源代码构建。

/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
  warnings.warn(msg)
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source.  Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option: ...
Run Code Online (Sandbox Code Playgroud)

我想我需要添加回购吗?很公平。接下来,我尝试添加回购协议,就像我在互联网上的其他帖子中所发现的那样:

[ec2-user@ip-... etc]$ sudo yum -y install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm
Loaded plugins: priorities, …
Run Code Online (Sandbox Code Playgroud)

django postgresql amazon-web-services amazon-elastic-beanstalk

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