beanstalk에 mysql 설치 에러

hyuckhoon.ko·2021년 5월 21일
0

What I learned in first year

목록 보기
79/146

빈스톡에서 아래와 같은 에러 메시지

sudo apt-get
sudo: apt-get: 명령이 없습니다

pip을 통한 mysql 설치시 에러 발생

pip install mysql
Defaulting to user installation because normal site-packages is not writeable
Collecting mysql
  Using cached mysql-0.0.2.tar.gz (1.9 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jsm8_kz_/mysql_b7f47fb1c3774154b4309fd0a61d4021/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jsm8_kz_/mysql_b7f47fb1c3774154b4309fd0a61d4021/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-i1nyxi6m
         cwd: /tmp/pip-install-jsm8_kz_/mysql_b7f47fb1c3774154b4309fd0a61d4021/
    Complete output (28 lines):
    WARNING: `mysql` is a virtual package. Please use `%s` as a dependency directly.running egg_info

솔루션 - 1

sudo yum install gcc
sudo yum install -y mysql-devel
# Try to reinstall
pip install mysqlclient==1.3.12

출처: https://stackoverflow.com/questions/48175057/pip-install-mysqlclient-on-amazon-linux





솔루션 - 2

sudo yum install mariadb-devel
sudo yum install mysql





출처: https://stackoverflow.com/questions/62111066/mysqlclient-installation-error-in-aws-elastic-beanstalk

0개의 댓글