我正在部署和使用彈性beanstalk。當我做EB創造,我讓你requirements.txt是無效的,當我看清楚我得到兩個錯誤在庫libxml2中找不到函數xmlCheckVersion。是否安裝了libxml2?錯誤:命令'gcc'失敗,退出狀態1
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: command 'gcc' failed with exit status 1
我不知道什麼我可能做更多,我試圖 卸載枕頭 然後sudo apt-get install libjpeg-dev
安裝pillow
回 和pip install lxml
我試圖
sudo apt-get install libxml2-dev libxslt1-dev python-dev
和
apt-get install libxml2-dev libxslt1-dev python-dev
我只是想部署我有什麼,但這個枕頭的事情是抓住我的腳踝,你可以幫我
我需要什麼,也許在這裏?
packages:
yum:
git: []
postgresql93-devel: []
libjpeg-turbo-devel: []
libpng-devel: []
freetype-devel: []
container_commands:
01_migrate:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py migrate --noinput"
leader_only: true
02_createsu:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py createsu"
leader_only: true
03_collectstatic:
command: "source /opt/python/run/venv/bin/activate && python ebagu/manage.py collectstatic --noinput"
04_uninstall_pil:
command: "source /opt/python/run/venv/bin/activate && yes | pip uninstall Pillow"
05_reinstall_pil:
command: "source /opt/python/run/venv/bin/activate && yes | pip install Pillow --no-cache-dir"
option_settings:
"aws:elasticbeanstalk:application:environment":
DJANGO_SETTINGS_MODULE: "app.settings"
"PYTHONPATH": "/opt/python/current/app/app:$PYTHONPATH"
"aws:elasticbeanstalk:container:python":
WSGIPath: app/app/wsgi.py
NumProcesses: 3
NumThreads: 20
"aws:elasticbeanstalk:container:python:staticfiles":
"/static/": "www/static/"
安裝'的libxml2-dev'解決了這個錯誤我。 –