-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RDS 배포 #56
Comments
sudo apt-get install postgresql postgresql-contrib
brew install postgresql
psql \
--host=엔드포인트 \
--port=5432 \
--username=postgres \
--password \ 비밀번호 입력 후 shell에서 접속 가능 참고 : https://docs.aws.amazon.com/ko_kr/AmazonRDS/latest/UserGuide/USER_ConnectToPostgreSQLInstance.html |
pip install psycopg2==2.8.6
pip install psycopg2-binary==2.8.5 config/settings/prod.py DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': '디비이름',
'USER': '유저이름',
'PASSWORD': '비밀번호',
'HOST': '엔드포인트',
'PORT': '5432',
}
} |
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for psycopg2 which pg_config # /usr/local/bin/pg_config
export PATH=$PATH:/usr/local/bin/ # /usr/local/bin/ 은 pg_config가 존재하는 path
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/ pip install --upgrade wheel
pip install --upgrade setuptools
|
Collecting psycopg2==2.8.6
Downloading psycopg2-2.8.6.tar.gz (383 kB)
|████████████████████████████████| 383 kB 1.1 MB/s
ERROR: Command errored out with exit status 1:
Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. sudo apt-get install libpq-dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: