View previous topic :: View next topic |
Author |
Message |
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Sun Jun 29, 2014 5:02 pm Post subject: [SOLVED] node build fails on gentoo |
|
|
I'm trying to build node, but it fails:
Code: | git clone git://github.com/joyent/node.git node.git
mkdir -p $HOME/js/js-libraries/node
cd node.git
export PYTHON=/usr/bin/python2.7
$PYTHON ./configure --prefix=$HOME/js/js-libraries/node
make
|
Which results in:
Code: | ../../src/weak_collection.js ../../src/promise.js ../../src/object-observe.js ../../src/macros.py
Traceback (most recent call last):
File "../../tools/js2c.py", line 514, in <module>
main()
File "../../tools/js2c.py", line 510, in main
JS2C(args[3:], args[0], args[1], args[2], options.raw, options.omit)
File "../../tools/js2c.py", line 481, in JS2C
sources = PrepareSources(source)
File "../../tools/js2c.py", line 372, in PrepareSources
assert len(macro_files) in [0, 1]
TypeError: object of type 'filter' has no len()
|
I tried the same on a CentOS system (python 2.6.6), and there I don't get any errors
Last edited by pgu on Sun Jun 29, 2014 6:29 pm; edited 1 time in total |
|
Back to top |
|
|
pgu l33t
Joined: 30 Jul 2009 Posts: 721 Location: Oslo, Norway
|
Posted: Sun Jun 29, 2014 6:29 pm Post subject: |
|
|
Is seems like something further down in the sub-system does not honor the $PYTHON setting and just calls "python" (which is version 3) causing the above error.
However, using eselect to set python to 2.7 resolves the problem. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|