-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install node 32bits in Ubuntu 64bits #672
Comments
Any extra parameters that If that doesn't work, you could overwrite the |
@ljharb, it seems like Over at node-sass, we build eight binaries for Linux (x64, ia32), four for Mac (only x64) and eight Windows (x64 and ia32). In future, we are going to add FreeBSD and Solaris in our matrix. So we have scribbled down the build steps in Dockerfile in order to automate our build process: https://gist.github.com/am11/1529b2458b1a1f4bdba8. As you can see from line 61 to 91, we have to manually download, extract and move gzip files for ia32 variants on CentOS x64 for our indented matrix. On the contrary, for Windows, nvmw has this option to supply arch as a parameter: nvmw install iojs-v1.6.2 x86 :: or x32, both work and then use it like nvmw use iojs-v1.6.2 x86 :: or x32, both work It would be really useful for folks building binaries for varied versions of io.js/node.js, if you guys consider adding the architecture as an explicit option like nvmw, since both io.js and node.js provide binaries for 32-bit arch. Thanks in anticipation. |
All additional arguments are passed when installing from source - try By default, |
@ljharb, here is the output: cd ~/.nvm
git pull --rebase origin master
Fast-forwarded HEAD to 70370a857f0bc16af50f4196afe9af03b100535e.
cd /tmp
nvm install -s iojs --dest-tcu=ia32
# Installing iojs from source is not currently supported Seems like compiling from source is not supported? On a related note, is it possible to get a specific version of node.js/io.js (v0.12, v0.10 and v1.0, v1.6)? |
@am11 Ah yes, I still haven't gotten iojs source support in yet. Try
|
That started to work with
It must be a temporary issue, but it seems like it will compile the whole node.js? Oh this is brilliant, but nvm being the fast version switching machine, this is not what I was looking for. :) Having an explicit option like nvmw for arch (only ia32 on x64, the other way around throws error) helps especially the folks using C++ module, to quickly test and build for cross arch (x64, ia32), cross runtime (node, iojs, atom-shell etc.). Note nvmw is just altering the dist. URL strings to accomplish this. Even though ia32 arch is becoming less popular in OS'es and is less convincing for devs, but some people have deliberately installed ia32 node.js/io.js on x64 and there exist some real use-cases such as node-sass. Kindly reconsider your stance on this one. 8-) |
I haven't made a stance yet :-) Note that |
Ok, I am on x64 Linux. When running Now on the same system, I would like to be able to run Same goes for io.js https://iojs.org/dist/latest/. The |
Hmm - ok, so I can definitely easily add an install option for binary installs that, only when on an However, it would add a lot of complexity to have a secondary version identifier, or a modified version identifier (it took an insane amount of work to allow for If a |
Thanks for the detailed response. Regarding Question: Would it be possible to pass architecture as an argument, instead of a prefix? I agree prefix way would introduce complexity. So perhaps |
That's exactly how I'd implement the simple |
I am also interested in functionality like this. I am running the Resin.io service, which is like docker for raspberry pi, and they cross compile my dockerfile and then load up an image onto my raspberry pi. It could be resin's fault too, but nvm install in this "cross-compile" mode tries grabbing armv8, which my Pi isnt, and then tries compiling from source, which takes a long time. Being able to specify architecture would be really nice |
Is there a way to install an specific node arch (32|64) with nvm, in a 64 bits OS?
The text was updated successfully, but these errors were encountered: