PyV* build is failing

44 views
Skip to first unread message

Arun Ram

unread,
Jan 9, 2015, 1:52:21 AM1/9/15
to py...@googlegroups.com
Hi ,

 I  am trying to setup pyv8 environment in my debian  to execute java script in my python code .


sudo apt-get install python-setuptools build-essential python-chardet python-html5lib libboost-python-dev
libboost-dev python-pefile python-httplib2 python-cssutils libboost-thread-dev libc6-dev libreadline-dev
libboost-system-dev

 I have downloaded latest  V8 and PyV8 from the following URL using my svn client. I have installed all the library

http://v8.googlecode.com/svn/trunk/v8

http://pyv8.googlecode.com/svn/trunk/pyv8

I have downloaded both the source folder in /home/ois/PyV8Setup


  • cd v8

  • export V8_HOME="/home/ois/PyV8Setup/v8"
  • cd ../pyv8
  • sudo python setup.py build


INFO: Found Google v8 base on V8_HOME </home/ois/PyV8Python/setup/v8>

/usr/local/lib/python2.7/dist-packages/setuptools-8.2.1-py2.7.egg/setuptools/dist.py:289: UserWarning: The version specified requires normalization, consider using '1.0.dev0' instead of '1.0-dev'.
running build
INFO: we will try to update v8 to the latest SVN trunk at <http://v8.googlecode.com/svn/trunk/>
====================
INFO: Checking out or Updating Google V8 code from SVN...

INFO: we will try to use the system 'svn' command to checkout/update V8 code
--------------------
INFO: checkout or update Google V8 code from SVN ...
DEBUG: > svn up /home/ois/PyV8Python/thug/v8
ERROR: checkout or update Google V8 code from SVN failed: code=127
DEBUG: /bin/sh: 1: svn: not found

--------------------
INFO: save the current V8 SVN revision to REVISION file ...
DEBUG: > svn info /home/ois/PyV8Python/thug/v8
ERROR: save the current V8 SVN revision to REVISION file failed: code=127
DEBUG: /bin/sh: 1: svn: not found

ERROR: fail to fetch SVN info, %s /bin/sh: 1: svn: not found

====================
INFO: Installing or updating GYP...
--------------------
INFO: Check out GYP from SVN ...
DEBUG: > make dependencies
ERROR: Check out GYP from SVN failed: code=2
DEBUG: make: svn: Command not found
make: *** [builddeps] Error 127

====================
INFO: Patching the GYP scripts
INFO: skip to patch the Google v8 build/standalone.gypi file
====================
INFO: building Google v8 with GYP for ia32 platform with release mode
--------------------
INFO: build v8 from SVN ...
DEBUG: > make -j 8 objectprint=off i18nsupport=off verifyheap=off debuggersupport=on regexp=native vtunejit=off extrachecks=off visibility=on snapshot=on strictaliasing=on liveobjectlist=off backtrace=on gdbjit=off disassembler=off werror=no library=shared ia32.release
ERROR: build v8 from SVN failed: code=2
DEBUG: /bin/sh: 1: build/gyp/gyp: not found
make: *** [out/Makefile.ia32.release] Error 127

--------------------
INFO: generate DTrace probes.h ...
DEBUG: > dtrace -h -C -s /home/ois/PyV8Python/thug/pyv8/src/probes.d -o /home/ois/PyV8Python/thug/pyv8/src/probes.h
ERROR: generate DTrace probes.h failed: code=127
DEBUG: /bin/sh: 1: dtrace: not found

--------------------
INFO: generate DTrace probes.o ...
DEBUG: > dtrace -G -C -s /home/ois/PyV8Python/thug/pyv8/src/probes.d -o /home/ois/PyV8Python/thug/pyv8/build/probes.o
ERROR: generate DTrace probes.o failed: code=127
DEBUG: /bin/sh: 1: dtrace: not found

running build_py
running build_ext
building '_PyV8' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DBOOST_PYTHON_STATIC_LIB -DV8_NATIVE_REGEXP -DENABLE_DEBUGGER_SUPPORT -I/home/ois/PyV8Python/thug/v8/include -I/home/ois/PyV8Python/thug/v8 -I/home/ois/PyV8Python/thug/v8/src -I/usr/local/include -I/usr/include/python2.7 -c src/Utils.cpp -o build/temp.linux-i686-2.7/src/Utils.o -Wno-write-strings -g -O3
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from src/Utils.cpp:12:0:
src/V8Internal.h:11:26: fatal error: src/platform.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1


I don't know what is the issue, whether I have to build V8 source folder ?. But v8 folder doesn't contain any setup.py file.  how to solve this issue in debian


Reply all
Reply to author
Forward
0 new messages