Closed Minoru closed 1 year ago
@dabrain34, this error comes from here:
which is called from here:
This code checks that you have all the necessary tools to build GNU gettext from source. I guess PowerShell can't be invoked as sh
. If you could write equivalent code for PowerShell and send a pull request, that'd be swell!
Thanks @Minoru to explain what to do here. I will keep it in mind if I can do something soon.
I had a look to this issue but the solution to solve the windows support gets more clear to me. We wont be able to run configure on cmd/powershell but only on mingw.
We should not use this approach of building gettext but use the gettext binary directly and pkg-config to link with.
Unfortunately gettext does not provide any pc file. So either to generate a temporary one and use system-deps or fix this crate to search for the library.
Otherwise I can provide you a branch to fix the sh and the tar thing with powershell but you wont be able to fix the autotools/configure issue ...
Sorry for the slow response!
So either to generate a temporary one and use system-deps
For this to work, we'd have to find an existing gettext library, which doesn't seem an easy problem. Luckily, searching for the library is already covered by GETTEXT_DIR
, GETTEXT_LIB_DIR
and other environment variables; see gettext-sys/README.md.
I'm closing the issue because it's clear now that it's fruitless to try and build with PowerShell.
I'm getting this error when I'm building in a powershell.
Originally posted by @dabrain34 in https://github.com/Koka/gettext-rs/issues/81#issuecomment-1317074449