Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install pyv8 on Ubuntu 16 #170

Closed
danweller18 opened this issue Jun 11, 2016 · 7 comments
Closed

Cannot install pyv8 on Ubuntu 16 #170

danweller18 opened this issue Jun 11, 2016 · 7 comments
Assignees

Comments

@danweller18
Copy link

I tried following the guide here:

https://buffer.github.io/thug/doc/build.html#google-v8-pyv8

with the commands:

$ git clone https://github.com/buffer/pyv8.git
$ cd pyv8
~/pyv8 $ python setup.py build
~/pyv8 $ sudo python setup.py install

When I run python setup.py build I get an error message:

/usr/bin/ld: cannot find -lv8_base.x64 
/usr/bin/ld: cannot find -lv8_snapshot
collect2: error: ld returned 1 exit status
error: command 'c++' failed with exit status 1

The weird thing is that it works fine in Ubuntu 14 without any problems.

Thanks

@buffer
Copy link
Owner

buffer commented Jun 13, 2016

This should be a PyV8 issue and not a Thug issue. BTW I see just a few lines of the output but it seems like PyV8 was properly compiled but the linking failed. Are you sure V8 was properly compiled? Did you get any errors/warnings during the V8 compilation?

@buffer buffer self-assigned this Jun 13, 2016
@buffer
Copy link
Owner

buffer commented Jun 13, 2016

I performed a few tests in an Ubuntu 16.04 environment and I can't reproduce the issue. It seems like you are missing some dependencies. Could you please install the package libboost-all-dev and try again?

@danweller18
Copy link
Author

I have no idea if that was the problem but it works now. I included your suggestion- however I had to install the following so I couldn't tell you what works:

For boost: sudo apt-get install libboost-all-dev

For pyv8:

sudo git clone https://github.com/buffer/pyv8.git
cd pyv8
sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev
sudo easy_install greenlet
sudo easy_install gevent
python setup.py build
sudo python setup.py install

@hchaithanya
Copy link

hchaithanya commented Nov 18, 2017

I am still facing similar errors.

WARN: V8_HOME doesn't exists or point to a wrong folder, 
/usr/local/lib/python2.7/dist-packages/setuptools/dist.py:331: UserWarning: Normalizing '1.0-dev' to '1.0.dev0'
  normalized_version,
running build
====================
INFO: Patching the GYP scripts
INFO: skip to patch the Google v8 build/standalone.gypi file 
====================
INFO: building Google v8 with GYP for x64 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 x64.release
--------------------
INFO: generate DTrace probes.h ...
DEBUG: > dtrace -h -C -s /home/rockstar/pyv8/src/probes.d -o /home/rockstar/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/rockstar/pyv8/src/probes.d -o /home/rockstar/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

How can I resolve them?

@buffer
Copy link
Owner

buffer commented Nov 21, 2017

Are you following the procedure detailed at https://buffer.github.io/thug/doc/build.html#thug-installation ?

@dufferzafar
Copy link

@hchaithanya Did you find a resolution to your issue? I'm facing the same one.

@klikevil
Copy link

klikevil commented Apr 4, 2024

@buffer

Are you following the procedure detailed at https://buffer.github.io/thug/doc/build.html#thug-installation ?

Uhhh yeah, https://buffer.github.io/thug/doc/build.html#thug-installation tells you to clone the repo, python setup.py build then sudo python setup.py install
image

There is no setup.py in the repo for thug, could you please add that I'd like to try the latest because i'm running into issues when it is dealing with event listeners for some odd reason, just built libv8 and stpyv8 then went to build thug and noticed setup.py was missing. I'm trying to build it under python3.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants