5

I would like to download Fuchsia's source code.

I entered curl -s "https://fuchsia.googlesource.com/fuchsia/+/HEAD/scripts/bootstrap?format=TEXT" | base64 --decode | bash that I found on fuchsia.dev.

I got ''base64'' is not recognized as an internal or external command, operable program or batch file.

I downloaded base64 tools without success.

What should I do to make this command work?

rabe
  • 51
  • 1
  • 1
  • 3
  • your problem is that `base64` does not exist as command or tool in Windows, right? You can use Certutil instead as described in https://stackoverflow.com/questions/16945780/decoding-base64-in-batch – jps Mar 23 '21 at 14:10
  • Isn't there any way to use it? What's the point of the base64 tools then? Which command should I use? Certutils doesn't seem to work like base64. – rabe Mar 23 '21 at 14:24
  • you can cut off the `| base64 --decode | bash` part and instead redirect the output to a file, e.g. `> fuchsia.b64` and then in a separate command call certutil with this fuchsia.b64 as input. – jps Mar 23 '21 at 14:42

2 Answers2

2

You won't be able to build fuchsia from Windows directly. Most people use the Windows Subsystem For Linux to get a Linux-like environment, and that should work.

On top of the download script, fuchsia ships with a bunch of prebuilts, which are only built for linux and mac.

Marco
  • 2,796
  • 19
  • 24
0

Command base64 works on Ubuntu, so I could recommend you to download Ubuntu from the Microsoft Store and write the command there.