base64 not recognized Windows 10
Asked Answered
M

2

6

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?

Mantissa answered 23/3, 2021 at 14:4 Comment(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://mcmap.net/q/222876/-decoding-base64-in-batchAulos
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.Mantissa
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.Aulos
P
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.

Paraffin answered 27/3, 2021 at 21:53 Comment(0)
E
0

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

Exceeding answered 2/12, 2021 at 12:53 Comment(1)
You should post this as a comment, not as an answer.Clearway

© 2022 - 2024 — McMap. All rights reserved.