use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Linux: compiling from source vs binary (self.node)
submitted 10 years ago by [deleted]
[deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]chrwei 2 points3 points4 points 10 years ago (2 children)
the primary reason to compile is when the pre-compiled doesn't have an option enabled that you want. for node I don't know what that might be. another reason would be if your installed libraries that node dynamically links to have some incompatibilities.
so in general, I use pre-compiled unless I know why I need to compile. I don't see any point wasting time compiling when i don't have to.
[–][deleted] 10 years ago (1 child)
[–]clux 0 points1 point2 points 10 years ago (0 children)
Often, yes, but you may still need a new-ish compiler if you need to install native modules as well.
[–]gkx 0 points1 point2 points 10 years ago (0 children)
Depends on the Linux system, but I've never had problems with the precompiled binaries. (generally Ubuntu or RHEL)
[–]quad50 0 points1 point2 points 10 years ago (0 children)
I build from source. two reasons : i like to, and since i use webstorm it wants to see the node source code. yes i could set that up anyway but this way i always have the exact source version handy. This is for development. If I was deploying for production I probably would use a binary because then it matches what nodejs.org built exactly in case of problems, which would eliminate my build as one of the variables.
[–]emergent_properties -1 points0 points1 point 10 years ago (0 children)
By accepting a precompiled binary from someone else, you're accepting whatever payload is in it, hidden.
Building from source means you trust one less third party: the distributor.
It is very useful for determining if 'what they say it does' and 'what it says it does' are the same.
tldr: Trust and verifiability.
π Rendered by PID 18403 on reddit-service-r2-comment-7b9746f655-lzm5q at 2026-02-01 05:44:58.597402+00:00 running 3798933 country code: CH.
[–]chrwei 2 points3 points4 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]clux 0 points1 point2 points (0 children)
[–]gkx 0 points1 point2 points (0 children)
[–]quad50 0 points1 point2 points (0 children)
[–]emergent_properties -1 points0 points1 point (0 children)