<div dir="ltr"><div><span style="color:rgb(55,55,55);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:24.375px">These should help:</span></div><span style="color:rgb(55,55,55);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:24.375px">sudo yum -y install mysql-devel<br></span><span style="color:rgb(55,55,55);font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:15px;line-height:24.375px">sudo pip install MySQL-python</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 20, 2014 at 9:15 AM, Deepak Shetty <span dir="ltr"><<a href="mailto:dpkshetty@gmail.com" target="_blank">dpkshetty@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><span style="font-family:courier new,monospace">I keep hitting this issue in my F20 based devstack env ...<br><br>./run_tests.sh -V<br><br>....<br>.....<br><br>gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1<br><br>_mysql.c:44:23: fatal error: my_config.h: No such file or directory<br><br> #include "my_config.h"<br><br>                       ^<br><br>compilation terminated.<br><br>error: command 'gcc' failed with exit status 1<br><br>----------------------------------------<br>Cleaning up...<br>Command /opt/stack/manila/.venv/bin/python -c "import setuptools, tokenize;__file__='/opt/stack/manila/.venv/build/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-J7FYeG-record/install-record.txt --single-version-externally-managed --compile --install-headers /opt/stack/manila/.venv/include/site/python2.7 failed with error code 1 in /opt/stack/manila/.venv/build/MySQL-python<br>Traceback (most recent call last):<br>  File "/opt/stack/manila/.venv/bin/pip", line 11, in <module><br>    sys.exit(main())<br>  File "/opt/stack/manila/.venv/lib/python2.7/site-packages/pip/__init__.py", line 185, in main<br>    return command.main(cmd_args)<br>  File "/opt/stack/manila/.venv/lib/python2.7/site-packages/pip/basecommand.py", line 161, in main<br>    text = '\n'.join(complete_log)<br>UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 36: ordinal not in range(128)<br>Command "tools/with_venv.sh pip install --upgrade -r /opt/stack/manila/requirements.txt -r /opt/stack/manila/test-requirements.txt" failed.<br>None<br><br>============================================<br><br></span></div><span style="font-family:courier new,monospace">Version of different tools on my system...<br><br>[stack@devstack-large-vm manila]$ pip --version<br>pip 1.5.6 from /usr/lib/python2.7/site-packages (python 2.7)<br>[stack@devstack-large-vm manila]$ tox --version<br>1.7.2 imported from /usr/lib/python2.7/site-packages/tox/__init__.pyc<br>[stack@devstack-large-vm manila]$ virtualenv --version<br>1.11.6<br><br>=========================================<br><br></span></div><span style="font-family:courier new,monospace">Can anybody see what I am missing for ./run_tests.sh to fail during install/build of mysql<br><br>thanx,<br>deepak<br><br></span></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Kind Regards<br>Valeriy Ponomaryov<br><a href="http://www.mirantis.com" target="_blank">www.mirantis.com</a><br><a href="mailto:vponomaryov@mirantis.com" target="_blank">vponomaryov@mirantis.com</a><br></div>
</div>