[MacPorts] #36190: nodejs 0.8.9 Install Errors

MacPorts noreply at macports.org
Tue Sep 18 04:59:35 PDT 2012


#36190: nodejs 0.8.9 Install Errors
---------------------+-------------------------
  Reporter:  msy@…   |      Owner:  ciserlohn@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.1.2
Resolution:          |   Keywords:
      Port:  nodejs  |
---------------------+-------------------------

Comment (by ciserlohn@…):

 I assume you've got a python > version 3 installed.
 What does
 {{{
 python --version
 }}}
 print?

 The gyp build system used in node.js doesn't work with python 3.x but only
 with 2.6/2.7. Although the portfile sets $PYTHON to python 2.6/2.7
 (depending on the choosen variant) and the Makefile will use $PYTHON, its
 ignored by gyp. Instead it simply uses the 'python' command. I'll fix
 that.

 If you like to install node,js before the fix is available just install
 python 2.7, install node.js and switch back to your python 3.x:
 {{{
 $ sudo port install python27
 $ sudo port select --set python python27
 $ sudo port clean nodejs
 $ sudo port install nodejs
 $ sudo port select --set python python32
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/36190#comment:5>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list