The instructions I noted were as follows . . . apt-get install python build-essential mkdir /nodejs cd /nodejs wget http://nodejs.org/dist/v0.10.15/node-v0.10.15.tar.gz tar xzvf node-v0.10.15.tar.gz cd node-v0.10.15 *./configure --without-snapshot* make ./node -e 'console.log("Testing . . .");' make install node -v npm -v
The bold line being the command needed to build for ARM. Also this is where having a rootfs on an NFS share comes in handy. As the very latest version failed to build correctly but somehow managed to install. So, not knowing much of how Node is installed, and instead of hoping I find all the crap that needs removing. I just revert from a pre-existing backup ( tar the whole rootfs directory on the server prior). This way I can experiment with newer versions and just revert when it doesn't work out. Maybe I should write another blogpost on how I personally think such a dev system needs to be setup . . . I dont know. It seems as though it would save a lot of grief for Debian + BBB newbs. On Mon, Jun 16, 2014 at 7:19 PM, Robert Nelson <[email protected]> wrote: > On Mon, Jun 16, 2014 at 9:11 PM, William Hermans <[email protected]> > wrote: > > Hmm, odd. I followed the "how to from source" instructions from the git > repo > > for Node, and it mentions that npm is now part of the Node.js build now. > > When I did get a workign build, sure enough npm was already installed. > Those > > instructions as is did not work, but was very close( required some MAKE > > switch for ARM I'd have to read my notes to remember ). Oddly enough I > found > > information on this switch from armhf's dated instructions . . . worked > like > > a charm. > > before we had a *.deb package on debian.beagleboard.org this how i was > building it: > > --without-snapshot --shared-cares --shared-openssl --shared-zlib > --prefix=${node_prefix} > > > https://github.com/beagleboard/image-builder/blob/bb.org-v2014.02.18/target/chroot/beagleboard.org.sh#L33 > > Regards, > > -- > Robert Nelson > http://www.rcn-ee.com/ > > -- > For more options, visit http://beagleboard.org/discuss > --- > You received this message because you are subscribed to the Google Groups > "BeagleBoard" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
