Opened 12 years ago

Closed 12 years ago

#36190 closed defect (fixed)

nodejs (0.8.9), nodejs-devel (0.9.1): build fails when the default python version is 3.x

Reported by: msy@… Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: mikhail.zyatin@…
Port: nodejs

Description

:info:build Warning: targets not executed for nodejs: org.macports.install org.macports.build org.macports.destroot :notice:build Please see the log file for port nodejs for details:

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/main.log

Full log attached.

Attachments (1)

main.log (465.0 KB) - added by msy@… 12 years ago.
Same error, after clean and selfupdate, debug logging enabled.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by msy@…

Cc: msy@… added

Cc Me!

comment:2 Changed 12 years ago by ci42

Cc: msy@… removed
Keywords: nodejs removed
Owner: changed from macports-tickets@… to ciserlohn@…

This was not clean attempt. Please try again and attach the log file if it fails:

$ sudo port clean nodejs
$ sudo port selfupdate
$ sudo port -d install nodejs

In the future please remember to Cc the maintainer. If you are the ticket creator there is no need to Cc yourself. And don't add arbitrary keywords (see DraftKeywordGuidelines).

Last edited 12 years ago by ci42 (previous) (diff)

comment:3 Changed 12 years ago by msy@…

Same result. Attached debug log. Thanks!


[~]$ sudo port clean nodejs
--->  Cleaning nodejs
[~]$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.1.2 installed,
MacPorts base version 2.1.2 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
[~]$ sudo port install -d nodejs
--->  Computing dependencies for nodejs
--->  Fetching archive for nodejs
--->  Attempting to fetch nodejs-0.8.9_0+python27+ssl.darwin_11.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/nodejs
--->  Attempting to fetch nodejs-0.8.9_0+python27+ssl.darwin_11.x86_64.tbz2 from http://lil.fr.packages.macports.org/nodejs
--->  Attempting to fetch nodejs-0.8.9_0+python27+ssl.darwin_11.x86_64.tbz2 from http://packages.macports.org/nodejs
--->  Fetching distfiles for nodejs
--->  Verifying checksum(s) for nodejs
--->  Extracting nodejs
--->  Configuring nodejs
--->  Building nodejs
Error: org.macports.build for port nodejs returned: command execution failed
Please see the log file for port nodejs for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs/nodejs/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port nodejs failed
Last edited 12 years ago by msy@… (previous) (diff)

Changed 12 years ago by msy@…

Attachment: main.log added

Same error, after clean and selfupdate, debug logging enabled.

comment:4 Changed 12 years ago by mikhail.zyatin@…

Cc: mikhail.zyatin@… added

Cc Me!

comment:5 Changed 12 years ago by ci42

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  
Last edited 12 years ago by ci42 (previous) (diff)

comment:6 in reply to:  5 Changed 12 years ago by msy@…

Replying to ciserlohn@…:

I assume you've got a python > version 3 installed.

Yep, that was it. Temporarily went back to 2.7, did the nodejs install, it went OK, then I went back to 3.2. Many thanks to you...

comment:7 Changed 12 years ago by ci42

Resolution: fixed
Status: newclosed
Summary: nodejs 0.8.9 Install Errorsnodejs (0.8.9), nodejs-devel (0.9.1): build fails when the default python version is 3.x

Fixed in r97880.

Note: See TracTickets for help on using tickets.