nerdneilsfield / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

The prolem of Setup pyv8 on Centos5.6, Python2.7 #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I try to setup pyv8 on Centos5.6, but have some problems.I do this installation 
on 2ways:
1)i download V8 and pyv8, than 
#export V8_HOME=/usr/local/src/v8
#python2.7 setup.py build
and have some errors:

PYTHONPATH="/usr/local/src/v8/tools/generate_shim_headers:" \
    GYP_GENERATORS=make \
    build/gyp/gyp --generator-output="out" build/all.gyp \
                  -Ibuild/standalone.gypi --depth=. \
                  -Dv8_target_arch=ia32 \
                  -S.ia32  -Dcomponent=shared_library -Dv8_enable_backtrace=1 -Dv8_enable_extra_checks=0 -Dv8_enable_gdbjit=0 -Dwerror='' -Darm_fpu=default -Darm_float_abi=default
ERROR: build v8 from SVN failed: code=2
DEBUG: Traceback (most recent call last):
  File "build/gyp/gyp", line 15, in ?
    import gyp
  File "build/gyp/pylib/gyp/__init__.py", line 8, in ?
    import gyp.input
  File "build/gyp/pylib/gyp/input.py", line 856
    except ImportError as e:
                        ^
SyntaxError: invalid syntax
make: *** [out/Makefile.ia32] Error 1

***and in the end ofcompilation process***
g++ -pthread -shared build/temp.linux-i686-2.7/src/Utils.o 
build/temp.linux-i686-2.7/src/Exception.o 
build/temp.linux-i686-2.7/src/Context.o build/temp.linux-i686-2.7/src/Engine.o 
build/temp.linux-i686-2.7/src/Wrapper.o build/temp.linux-i686-2.7/src/Debug.o 
build/temp.linux-i686-2.7/src/Locker.o build/temp.linux-i686-2.7/src/AST.o 
build/temp.linux-i686-2.7/src/PrettyPrinter.o 
build/temp.linux-i686-2.7/src/PyV8.o -L/usr/local/lib 
-L/usr/local/src/v8/out/ia32.release/obj.target/tools/gyp/ -lrt -lboost_python 
-lboost_thread -lboost_system -lv8_base.ia32 -lv8_snapshot -o 
build/lib.linux-i686-2.7/_PyV8.so
/usr/bin/ld: cannot find -lv8_base.ia32
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1

2)setup pyv8 trought pip install
#pip -v install pyv8
i i have some errors(added in attachment)

Original issue reported on code.google.com by jayrabo...@gmail.com on 19 Jul 2013 at 9:49

Attachments:

GoogleCodeExporter commented 9 years ago

Now situation is better but :
No emulation specific options

    ar: supported targets: elf32-i386 a.out-i386-linux efi-app-ia32 elf64-x86-64 elf64-little elf64-big elf32-little elf32-big srec symbolsrec tekhex binary ihex trad-core

    make[1]: *** [/usr/local/src/venv/build/pyv8/build/v8/out/ia32.release/obj.target/tools/gyp/libv8_nosnapshot.ia32.a] Error 1

    make[1]: *** Waiting for unfinished jobs....

    make: *** [ia32.release] Error 2

Original comment by jayrabo...@gmail.com on 24 Jul 2013 at 9:01

Attachments:

GoogleCodeExporter commented 9 years ago
It seems your v8 can't be linked with `ar` command, what's your ar version?

 ar: illegal option -- T

    Usage: ar [emulation options] [-]{dmpqrstx}[abcfilNoPsSuvV] [member-name] [count] archive-file file...

           ar -M [<mri-script]

Original comment by flier...@gmail.com on 14 Aug 2013 at 3:12

GoogleCodeExporter commented 9 years ago
ar -V
GNU ar 2.17.50.0.6-20.el5_8.3 20061020
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.

Original comment by jayrabo...@gmail.com on 14 Aug 2013 at 9:38

GoogleCodeExporter commented 9 years ago
I think you're gonna need a more recent binutils for this.

Original comment by jmalo...@gmail.com on 18 Nov 2013 at 1:03