[MacPorts] #49538: nodejs-4.2.1_0+ssl fails to build
#49538: nodejs-4.2.1_0+ssl fails to build --------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: nodejs --------------------+-------------------------------- See attached log file. -- Ticket URL: <https://trac.macports.org/ticket/49538> MacPorts <https://www.macports.org/> Ports system for OS X
#49538: nodejs-4.2.1_0+ssl fails to build ---------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: nodejs | ---------------------+-------------------------------- Comment (by nils@…): It seems the port expects Python 2.7 to be present, but it isn't installed on my system and apparently it's not declared as a dependency. (I do have Python 3.4 from MacPorts installed.) -- Ticket URL: <https://trac.macports.org/ticket/49538#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#49538: nodejs-4.2.1_0+ssl fails to build ---------------------+------------------------- Reporter: nils@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: nodejs | ---------------------+------------------------- Changes (by ciserlohn@…): * owner: macports-tickets@… => ciserlohn@… Comment: Replying to [comment:1 nils@…]:
It seems the port expects Python 2.7 to be present, but it isn't installed on my system and apparently it's not declared as a dependency. (I do have Python 3.4 from MacPorts installed.)
The port expects python2.x to be installed and the dependencies are declared in the python2X variants. If not variant is selected the port defaults to python27. Please provide the output of: {{{ $ port installed nodejs $ port installed python25 $ port installed python26 $ port installed python27 }}} What was the exact command you used to install nodejs? In the future please don't forget to Cc the port maintainer ({{{port info --maintainer <portname>}}}). -- Ticket URL: <https://trac.macports.org/ticket/49538#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#49538: nodejs-4.2.1_0+ssl fails to build ---------------------+------------------------- Reporter: nils@… | Owner: ciserlohn@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: nodejs | ---------------------+------------------------- Comment (by nils@…): {{{ $ port installed nodejs The following ports are currently installed: nodejs @0.12.7_0+ssl (active) $ port installed python25 None of the specified ports are installed. $ port installed python26 None of the specified ports are installed. $ port installed python27 None of the specified ports are installed. }}} I ran the following command: {{{ $ sudo port upgrade outdated }}} I can reproduce this issue by trying to upgrade nodejs specifically: {{{ $ sudo port upgrade nodejs Password: ---> Computing dependencies for nodejs ---> Configuring nodejs Error: org.macports.configure for port nodejs returned: configure failure: 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_ports_devel_nodejs/nodejs/main.log Error: Unable to upgrade port: 1 To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets }}} -- Ticket URL: <https://trac.macports.org/ticket/49538#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#49538: nodejs @ 4.2.1_0+ssl: fails to build ----------------------+------------------------- Reporter: nils@… | Owner: ciserlohn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: nodejs | ----------------------+------------------------- Changes (by ciserlohn@…): * status: new => closed * resolution: => invalid Comment: Replying to [comment:3 nils@…]:
{{{ $ port installed nodejs The following ports are currently installed: nodejs @0.12.7_0+ssl (active)
Don't know how and why you installed nodejs without any python variant in the first place. This could only have worked if you actively deselected all python variants while installing nodejs and simultaneously had python27 from MacPorts installed. Anyway, just installing nodejs with a python variant should fix your problem: {{{ $ sudo port install nodejs +ssl +python27 }}} -- Ticket URL: <https://trac.macports.org/ticket/49538#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#49538: nodejs @ 4.2.1_0+ssl: fails to build ----------------------+------------------------- Reporter: nils@… | Owner: ciserlohn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: nodejs | ----------------------+------------------------- Comment (by nils@…): I'm pretty sure I have never actively deselected a variant for any package. Maybe that variant didn't exist at the time I first installed nodejs? That install command wouldn't work right away, but after cleaning nodejs it worked: {{{ $ sudo port install nodejs +ssl +python27 Error: Requested variants "+python27+ssl" do not match those the build was started with: "+ssl". Error: Please use the same variants again, or run 'port clean nodejs' first to remove the existing partially completed build. To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port nodejs failed $ sudo port clean nodejs ---> Cleaning nodes $ sudo port install nodejs +ssl +python27 ---> Computing dependencies for nodes (...) }}} I think what may have happened is that I uninstalled the python27 package at some point (since I hadn't installed it willingly) and nothing complained, so I figured it would be fine. -- Ticket URL: <https://trac.macports.org/ticket/49538#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#49538: nodejs @ 4.2.1_0+ssl: fails to build ----------------------+------------------------- Reporter: nils@… | Owner: ciserlohn@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: Port: nodejs | ----------------------+------------------------- Comment (by ciserlohn@…): Replying to [comment:5 nils@…]:
I'm pretty sure I have never actively deselected a variant for any package. Maybe that variant didn't exist at the time I first installed nodejs?
The variant exists since 2011-04-05 (nodejs version 0.4.5).
I think what may have happened is that I uninstalled the python27 package at some point (since I hadn't installed it willingly) and nothing complained, so I figured it would be fine.
The python27 port must have been installed when you installed {{{nodejs @0.12.7_0+ssl}}}. Anyway, I'm glad you've got it working. -- Ticket URL: <https://trac.macports.org/ticket/49538#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts