Hi, Mike. Looks like IBM has already done the port of node.js:
http://www.ibm.com/developerworks/web/nodesdk/ "The IBM SDK for Node.js ™ provides a stand-alone JavaScript ® runtime and server-side JavaScript solution for IBM platforms. It provides a high-performance, highly scalable, event-driven environment with non-blocking I/O that is programmed with the familiar JavaScript programming language. The IBM SDK for Node.js ™ is based on the Node.js ™ open source project. It provides a compatible solution for IBM POWER ™ and Intel ® products that require Node.js ™ functionality and package management. " let us know how that works out, and good luck. DJ On 09/02/2014 07:02 AM, Dan Horák wrote: > On Tue, 2 Sep 2014 07:46:49 -0400 > Michael MacIsaac <[email protected]> wrote: > >> Has anyone built node.js on zLinux? >> >> I can't find an RPM on RHEL 6.5 nor a s390x prebuilt package, so I >> assume it has to be built manually. > > AFAIK node.js requires v8 JavaScript engine, which hasn't been ported > to s390 yet > >> I untar it and invoke make, but get an error early on: >> >> lab141:~/node-v0.10.31 # make >> ... >> cc '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' >> '-D_FILE_OFFSET_BITS=64' '-D_GNU_SOURCE' '-DHAVE_CONFIG_H' >> '-DCARES_STATICLIB' -I../deps/cares/include -I../deps/cares/src >> -I../deps/cares/config/linux -Wall -Wextra -Wno-unused-parameter >> -pthread -m32 -g --std=gnu89 -pedantic -Wall -Wextra >> -Wno-unused-parameter -O2 -fno-strict-aliasing -fno-tree-vrp >> -fno-tree-sink -fno-omit-frame-pointer -MMD -MF >> /root/node-v0.10.31/out/Release/.deps//root/node-v0.10.31/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o.d.raw >> -c -o >> /root/node-v0.10.31/out/Release/obj.target/cares/deps/cares/src/ares_cancel.o >> ../deps/cares/src/ares_cancel.c >> cc1: error: unrecognized command line option "-m32" >> >> I don't see a man page on cc, but there is a -m32 described in the >> gcc man page (???). > > supported options on s390(x) are -m64 and -m31, ideally projects > shouldn't use them at all, the distro compilers (or distro wide options) > are pre-set correctly > >> -m32-bit >> -m16-bit >> -m8-bit >> Similar to the stack- data- and const-align options above, >> these options >> arrange for stack-frame, writable data and constants to >> all be 32-bit, 16-bit >> or 8-bit aligned. The default is 32-bit alignment. > > > Dan > > ---------------------------------------------------------------------- > For LINUX-390 subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO LINUX-390 or visit > http://www.marist.edu/htbin/wlvindex?LINUX-390 > ---------------------------------------------------------------------- > For more information on Linux on System z, visit > http://wiki.linuxvm.org/ > -- Dave Jones V/Soft Software www.vsoft-software.com Houston, TX 281.578.7544 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For more information on Linux on System z, visit http://wiki.linuxvm.org/
