iota icon indicating copy to clipboard operation
iota copied to clipboard

windows installation fails

Open droekm opened this issue 11 years ago • 9 comments

Hey,

currently try to install iota on a Windows (32bit) machine. Have installed everything right, but running cargo build returns following error:

$ cargo build
   Compiling termbox-sys v0.0.1 (http://github.com/gchp/rustbox#9f6ca3c6)
Failed to run custom build command for `termbox-sys v0.0.1 (http://github.com/gchp/rustbox#9f6ca3c6)`
Process didn't exit successfully: `C:\users\droekm\documents\githubrepos\iota\target\build\termbox-sys-0aa44b9f7c4b257e\build-script-build.exe` (status=101)
--- stdout
waf configure: setting CFLAGS to: `-m32`
running: ./waf 'configure' '--prefix=/'

--- stderr
task '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: file not found (OS Error 2: The system cannot find file
)', C:\bot\slave\nightly-win-32\build\src\libcore\result.rs:744

running on MSYS, also tried from normal command prompt but same error. what can I do?

Regards, Jan

droekm avatar Dec 12 '14 19:12 droekm

Hey Jan! I'm afraid my windows experience is somewhat limited. I'm gonna set up a windows VM right now simply for testing iota.

From your error message, it would appear that the build script for termbox-sys is failing which isn't too surprising, as there is no special logic in there to cater for windows. I'm gonna start investigating this now, so hopefully we can get it sorted for you soon!

Do you have termbox itself installed from source? Or did you just install rustbox directly with just the cargo build command? I'm wondering if you would still have the same error if you installed termbox separately. Obviously I want to make it work with just the cargo build, just thinking of a solution for you until this gets fixed.

gchp avatar Dec 12 '14 21:12 gchp

@gchp Yes I install it using cargo build. I can try it tomorrow using termbox from source.

droekm avatar Dec 12 '14 21:12 droekm

@droekm I had similar errors on Ubuntu with docopt crate. What helped me was to install nightly build of Rust.

toppy avatar Dec 12 '14 22:12 toppy

@toppy I've installed one of the installers, can this maybe the problem?

droekm avatar Dec 13 '14 07:12 droekm

@droekm the rustbox installation has changed a good bit since you would have come across this issue. Could you try installing again and see what happens?

gchp avatar Jan 07 '15 09:01 gchp

Not @droekm but was having the same issue - after updating to the most recent nightly (2015-01-05) using the installer, still getting the same error.

Build failed, waiting for other jobs to finish...
failed to run custom build command for `termbox-sys v0.1.2`
Process didn't exit successfully: `C:\Users\username\iota\target\build\termbox-sys-8c096ba63a48151e\build-scri
pt-build.exe` (status=101)
--- stdout
running: git 'clone' 'https://github.com/nsf/termbox' '.termbox'
waf configure: setting CFLAGS to: `-m64 -fPIC`
running: ./waf 'configure' '--prefix=/'

--- stderr
Cloning into '.termbox'...
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: file not found (OS Error 2: The system cannot
find the file specified.
)', C:\bot\slave\nightly-dist-rustc-win-64\build\src\libcore\result.rs:746

lachsh avatar Jan 07 '15 12:01 lachsh

Ok, thanks @lachy-xe. I'll dig into this more!

gchp avatar Jan 07 '15 12:01 gchp

That file not found is about unable to find the wscript file. And then I tried to manually execute that waf command with python3, the waf thing succeeded, but finally there's an error about cannot compile termbox because of a missing sys/ioctl.h.

I was thinking about writing a termbox implementation in pure Rust, something similar as termbox-go.

bombless avatar Feb 12 '15 13:02 bombless

@bombless yeah, its tricky because the termbox C library doesn't work on windows. The Go version does, however.

I started writing rustbox as a pure Rust implementation of termbox. That is still my intention, however I've just not had the time to get into it fully just yet.

If you want to get involved, I'd welcome your contributions!

gchp avatar Feb 12 '15 13:02 gchp