riju icon indicating copy to clipboard operation
riju copied to clipboard

Difficulties in setting up local environment on Windows 11

Open phamduylong opened this issue 1 year ago • 3 comments

Hi :smile: Been having a hard time to get the project to run on my local machine. Some issues I found:

  1. Running bash scripts on Windows Running install.sh give out error on carriage return/line feed issues. Can be fixed easily but it would be nice to have a way to run it universally on all OS.

  2. Server spawn at server.js: 117

util.run(privilegedTeardown(), console.error).catch((err) => {
  console.error(err);
});

This gave an output of:

Error: spawn system/out/riju-system-privileged ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:284:19)
    at onErrorNT (node:internal/child_process:477:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn system/out/riju-system-privileged',
  path: 'system/out/riju-system-privileged',
  spawnargs: [ 'teardown' ]
}
  1. Dep if I understood correctly is a deprecated project in Go for quite sometimes already, I cannot find a way to install it properly on Windows anymore.

Is there a possibilities to update instructions on how to get the project running? I would love to contribute on this project but it's impossible if I cannot get the project to run and test it. Thanks.

phamduylong avatar Nov 27 '23 20:11 phamduylong

The main branch as it currently stands isn't buildable - see https://github.com/radian-software/riju/issues/168. I'm in the middle of moving to Kubernetes orchestration which will (among other things) involve removing the pty wrapper binary, which is probably why the riju-system-privileged error comes up in particular.

You'd probably be best off starting from an older revision of the project (though those have other issues).

raxod502 avatar Dec 02 '23 00:12 raxod502

Welp. I think the 1st and 3rd issues can still be resolved, especially with dep. Shouldn't have prematurely closed this issue.

phamduylong avatar Dec 02 '23 14:12 phamduylong

Dep if I understood correctly is a deprecated project in Go for quite sometimes already

Well, I will say that the dep command in Riju is another name for Depgraph, the Riju build tool, and it has nothing to do with the Go tool by the same name:

https://github.com/radian-software/riju/blob/553d552047e9b3f03c4d08f782b6346c585c27cf/doc/build.md?plain=1#L88-L99

Running install.sh give out error on carriage return/line feed issues

I don't think there are any whitespace issues with the shell scripts in the repo, if there are problems cropping up, they are probably the fault of Windows. Maybe the Git settings need to be adjusted so Windows does not mangle line endings - https://stackoverflow.com/q/10418975

raxod502 avatar Dec 09 '23 22:12 raxod502