-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Error while installing #2316
Comments
Does this happen in version 0.6.5? |
I'll check, just a moment. |
Did git checkout v0.6.5 Went a bit further, but still this error: _FILE_OFFSET_BITS=64 -Isrc/ares/config_linux src/ares/inet_net_pton.c -DHAVE_CONFIG_H |
Updated to lastest Python 3.2.2. But still no go. |
Did you compile Python from source of use the built in Python version? Run |
I have downloaded ziped package and compiled it. root@randevu:/opt/bzip2-1.0.6# which python |
Just installed bzip2 manually from here: http://www.bzip.org/downloads.html root@randevu:/opt/bzip2-1.0.6# bzip2 --version Copyright (C) 1996-2010 by Julian Seward. This program is free software; you can redistribute it and/or modify This program is distributed in the hope that it will be useful, bzip2: I won't write compressed data to a terminal. |
root@randevu:/opt/node# pydoc modules Please wait a moment while I gather a list of all available modules... BaseHTTPServer atexit importlib shlex Enter any module name to get more help. Or, type "modules spam" to search root@randevu:/opt/node# Shouldn't bz / bzip be in the list? How could this be? |
This is an issue with your build environment, not Node's build system. Your python is compiled without bz2 support. Either recompile or use your distro's python, bz2 is part of the core python package on most if not all major distros. |
Thanks i have followed and deleted everything from old python versions. Installed fresh package and all went ok it seems. |
Install bzip2. (For me, "yum install bzip2-devel"). Then recompile Python. Make sure you can import bz2 from a Python prompt. If you can't, you messed up. Try again. Then install Node again and it will work fine. |
FYI, python on debian doesnt have builtin bz2 support. so you need te reconfigure python with bz2 support :
|
Thank @jhuttner it's really work fine! |
root@randevu:/opt/node# python --version
Python 2.7.2
git clone git://github.com/joyent/node.git
git checkout v0.6.3
and then:
root@randevu:/opt/node# ./configure && make && sudo make install
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for program gcc or cc : /usr/bin/gcc
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for gcc : ok
Checking for library dl : yes
Checking for openssl : not found
Checking for function SSL_library_init : yes
Checking for header openssl/crypto.h : yes
Checking for library util : yes
Checking for library rt : yes
Checking for fdatasync(2) with c++ : yes
'configure' finished successfully (4.649s)
Waf: Entering directory
/opt/node/out' DEST_OS: linux DEST_CPU: ia32 Parallel Jobs: 1 Product type: program [ 5/35] libv8.a: deps/v8/SConstruct -> out/Release/libv8.a /usr/local/bin/python "/opt/node/tools/scons/scons.py" -j 1 -C "/opt/node/out/Release/" -Y "/opt/node/deps/v8" visibility=default mode=release arch=ia32 toolchain=gcc library=static snapshot=on scons: Reading SConscript files ... ImportError: No module named bz2: File "/opt/node/deps/v8/SConstruct", line 37: import js2c, utils File "/opt/node/deps/v8/tools/js2c.py", line 36: import bz2 Waf: Leaving directory
/opt/node/out'Build failed: -> task failed (err #2):
{task: libv8.a SConstruct -> libv8.a}
make: *** [program] Error 1
root@randevu:/opt/node#
That's it.
Where to take this bz2 module? Bzip as i understand. It's python module? Wasn't it added in Pythong 2.3 version or there is used another bzip module?
The text was updated successfully, but these errors were encountered: