Hi,
I am trying to dump the contact force to vtk file in order to see the force chain by Paraview. However, it shows no snapshot. I saw that Mark Bentley had coded it. But when I install the EVTK by "python setup.py install", it shows an error as "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c src/cevtk.c -o build/temp.linux-i686-2.7/src/cevtk.o
src/cevtk.c:4:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1". Does anyone know how to modify it? In addition, is it possible to dump the vtk file instead of intalling EVTK? Thanks.
shokeyi
richti83 | Fri, 02/22/2013 - 14:00
Python.h: No such file or
Python.h: No such file or directory
http://packages.ubuntu.com/search?searchon=contents&keywords=python.h&mo...
you need to install the python2.7-dev package by
sudo apt-get install python2.7-dev
shokeyi | Fri, 02/22/2013 - 16:02
Still has an error
Hi,
I intall the python2.7 by the code above, but it still has an error shown as "running install_lib
creating /usr/local/lib/python2.7/dist-packages/evtk
error: could not create '/usr/local/lib/python2.7/dist-packages/evtk': Permission denied". I think the python 2.7 is installed. I also installed it by the Ubuntu software center. Does anyone know how to modfiy it? Thanks.
richti83 | Fri, 02/22/2013 - 20:44
try sudo python setup.py
try
sudo python setup.py install
you have to be root to write into /usr/...