install fails on Debian 4.0 (Etch) - node v0.8.11 #4076

Closed
flosse opened this Issue Oct 2, 2012 · 3 comments

Projects

None yet

3 participants

@flosse
flosse commented Oct 2, 2012

FYI: Compiling node v0.8.11on Debian Etch requires some workarounds:

  1. install python 2.5 and link it correctly (ln -sf /usr/bin/python2.5 /usr/bin/python)
  2. compile with LINK=g++ make because flock command is not available in the util-linux package
  3. modify tools/install.py: change import json to import simplejson as json
@bnoordhuis
Member

Noted, but what would you expect us to do? Python 2.6 is the minimal requirement, the fact that flock is missing is a Debian bug. (I think I even reported that, years ago.)

I could land a patch that falls back to simplejson if json is not found but that doesn't really help, you still need 2.6 for other things.

By the way, you don't have to symlink your python binary, this works as well:

$ export PYTHON=/path/to/python
$ $PYTHON ./configure
$ make PYTHON=$PYTHON
@bnoordhuis bnoordhuis closed this Oct 2, 2012
@flosse
flosse commented Oct 4, 2012

Noted, but what would you expect us to do?

Nothing ;-) I just thought it might be helpful for others who has to use such an old Debian.

@aapo
aapo commented Oct 15, 2012

I just compiled nodejs 0.8.12 for Maemo5, which is Debian derivate (--without-snapshot).

  1. I got it compiled with python2.5, only diff is:
--- node-v0.8.12/tools/install.py       2012-09-27 19:39:23.000000000 +0300
+++ install.py  2012-10-14 09:04:56.527667927 +0300
@@ -1,7 +1,7 @@
 #!/usr/bin/env python

 import errno
-import json
+import simplejson as json
 import os
 import re
 import shutil
  1. I have flock, but it is not working properly:
node-v0.8.12/out/Release/linker.lock: No such file or directory

This helps:

LINK=g++ make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment