-
Notifications
You must be signed in to change notification settings - Fork 18
Error when installing mysqlapi on tsuru-bootstrap #36
Comments
Are you installing the API on the VM or as a tsuru application? If you're install on the VM, please ensure that you install all packages listed in the file requirements.apt. This libevent.h error comes from the fact that you don't have libevent-dev installed. So, the following command should fix it:
You can also deploy mysqlapi as an app in tsuru, and tsuru will handle that for you. |
We should add a note about |
which platform should I install to put it as an application ? |
@mouradsm you can deploy mysqlapi to tsuru using "python" plataform. |
Just clone and push to master repository ? |
After deploy in Admin/containers : How can I solve this? |
app log: |
@mouradsm you should define some environment variables. Here is an example if you want to create the mysql api using the shared database mode:
you can set them using |
@andrewsmedina desculpa eu falar em português mas já gastei meu inglês todo rs Eu coloquei as variáveis assim: Eu tenho quase certeza que não são essas informações... pois mesmo após o tsuru env-set está dando erro. Pode me ajudar? |
A api não deve estar executando corretamente por que você nao deve ter o mysql instalado. Primeiramente você precisa de um mysql para armazenar os metadados da Após ter esse mysql instalado é so configurar os dados deles nas variaveis de ambiente. |
Command: sudo pip install -r requirements.txt
running build_ext
building 'gevent.core' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/gevent
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c gevent/core.c -o build/temp.linux-x86_64-2.7/gevent/core.o
In file included from gevent/core.c:253:0:
gevent/libevent.h:9:19: fatal error: event.h: No such file or directory
#include "event.h"
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/tmp/pip_build_root/gevent/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-a8ZjvC-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_root/gevent
Storing debug log for failure in /home/vagrant/.pip/pip.log
The text was updated successfully, but these errors were encountered: