I ran into another problem, but was able to solve it. The installer.js file 
called by "make install" expects to use the built copy of node to run the 
installer, but the built copy is for the target architecture, not the build 
machine, so it wouldn't run. Just in case anyone wants to know the easy 
approach to fix this when building for the Drobo (using a VM like the one 
described on droboports):

Simply install a copy of nodejs on the host using the method described 
here: 
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager

Then run:
$ node tools/installer.js install $DEST
$ mv $DEST/usr/* $DEST/
$ rmdir $DEST/usr

The last two lines are because the host copy has a node_prefix value of 
"/usr" which apparently cannot be changed at runtime of the installer 
script. You could alternatively edit the installer.js file and change 
node_prefix to an empty string.

Ben, thanks again for all the help! I now have nodejs running successfully 
on my Drobo FS!

On Wednesday, July 11, 2012 9:11:40 PM UTC-4, Jason Schmidt wrote:
>
> It's quite alright. I tried it the way you described first, suspecting 
> that was the right approach (after all, I can always clean and build again 
> if I'm wrong) and {drum-roll} It linked successfully!
>
> Thank you very, very, very much! Now to install and test it on the Drobo. 
> If all goes well, I'll be submitting this package to 
> http://www.droboports.com/ and I'll be sure to reference this thread.
>
> Thanks again!
>
> On Wednesday, July 11, 2012 9:06:32 PM UTC-4, Ben Noordhuis wrote:
>>
>> On Thu, Jul 12, 2012 at 2:53 AM, Jason Schmidt wrote: 
>> > Should I use -march=armv5te or just -march=arm on the make line? 
>>
>> Sorry, I'm being unclear. :-) 
>>
>> Use -march=armv5te on the command line, that tells gcc what arch to 
>> compile for. Set target_arch to "arm", that's for general bookkeeping 
>> of the build system. 
>>
>
On Wednesday, July 11, 2012 9:11:40 PM UTC-4, Jason Schmidt wrote:
>
> It's quite alright. I tried it the way you described first, suspecting 
> that was the right approach (after all, I can always clean and build again 
> if I'm wrong) and {drum-roll} It linked successfully!
>
> Thank you very, very, very much! Now to install and test it on the Drobo. 
> If all goes well, I'll be submitting this package to 
> http://www.droboports.com/ and I'll be sure to reference this thread.
>
> Thanks again!
>
> On Wednesday, July 11, 2012 9:06:32 PM UTC-4, Ben Noordhuis wrote:
>>
>> On Thu, Jul 12, 2012 at 2:53 AM, Jason Schmidt wrote: 
>> > Should I use -march=armv5te or just -march=arm on the make line? 
>>
>> Sorry, I'm being unclear. :-) 
>>
>> Use -march=armv5te on the command line, that tells gcc what arch to 
>> compile for. Set target_arch to "arm", that's for general bookkeeping 
>> of the build system. 
>>
>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to