Hi all. Is anyone able to help me troubleshoot getting Fresh set up and working on Windows? I recently set up mediawiki with docker and want to be able to use fresh. I use Windows 10. Based on the instructions in the latest version of the README file[1], I ran within git bash ``` bash -c 'curl -fsS https://gerrit.wikimedia.org/g/fresh/+/21.04.1/bin/fresh-node10?format=TEXT \ | base64 --decode > /usr/local/bin/fresh-node \ && echo "d38c34d542dc685669485bbe04a9d1a926a224a4ba27a01d59ae563558d8e987 /usr/local/bin/fresh-node" | shasum -a 256 -c \ && chmod +x /usr/local/bin/fresh-node \ && echo -e "\n\xf0\x9f\x8c\xb1\x20Fresh\x20is\x20ready\x21\n"||(echo -e "\xe2\x9d\x8c";false)' ``` and got the error ``` bash: line 1: /usr/local/bin/fresh-node: No such file or directory curl: (23) Failure writing output to destination ❌ ```
Some investigation in the file system shows that `/usr/local` does not exist. Where should I be trying to install it instead so that it works as a normal command (eg `fresh-node -env -net`)?
Thanks, --DannyS712
[1] https://gerrit.wikimedia.org/r/plugins/gitiles/fresh/+/2eabb06e32a9971b1e952...
I haven't tested these because I don't have a Windows machine handy. You can try one of the following:
Option A: Replace '/usr/local/bin' in the invocation with '/usr/bin', which does exist in git bash.
Option B: 1) Run: echo 'export PATH="$PATH:/usr/local/bin"' >> ~/.bashrc mkdir -p /usr/local/bin chmod 775 /usr/local/bin
2) Close git bash and start it again Run 'echo $PATH' without the quotes to confirm that /usr/local/bin is in it Continue to run the installation command unmodified.
On Fri, Jul 2, 2021 at 8:34 AM DannyS712 Wiki dannys712.wiki@gmail.com wrote:
Hi all. Is anyone able to help me troubleshoot getting Fresh set up and working on Windows? I recently set up mediawiki with docker and want to be able to use fresh. I use Windows 10. Based on the instructions in the latest version of the README file[1], I ran within git bash
bash -c 'curl -fsS https://gerrit.wikimedia.org/g/fresh/+/21.04.1/bin/fresh-node10?format=TEXT \ | base64 --decode > /usr/local/bin/fresh-node \ && echo "d38c34d542dc685669485bbe04a9d1a926a224a4ba27a01d59ae563558d8e987 /usr/local/bin/fresh-node" | shasum -a 256 -c \ && chmod +x /usr/local/bin/fresh-node \ && echo -e "\n\xf0\x9f\x8c\xb1\x20Fresh\x20is\x20ready\x21\n"||(echo -e "\xe2\x9d\x8c";false)'
and got the error
bash: line 1: /usr/local/bin/fresh-node: No such file or directory curl: (23) Failure writing output to destination ❌
Some investigation in the file system shows that `/usr/local` does not exist. Where should I be trying to install it instead so that it works as a normal command (eg `fresh-node -env -net`)?
Thanks, --DannyS712
[1] https://gerrit.wikimedia.org/r/plugins/gitiles/fresh/+/2eabb06e32a9971b1e952... _______________________________________________ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
wikitech-l@lists.wikimedia.org