Skip to content

Instantly share code, notes, and snippets.

@pyhedgehog
Created June 8, 2020 11:35
Show Gist options
  • Save pyhedgehog/cfd906941faf53f212c3351620f3a44b to your computer and use it in GitHub Desktop.
Save pyhedgehog/cfd906941faf53f212c3351620f3a44b to your computer and use it in GitHub Desktop.
Install SSHFS on cygwin

Install SSHFS on cygwin

Install prerequisites

Install cygwin packages

  • meson
  • ninja
  • cmake
  • libglib2.0-devel
  • python37-docutils (for rst2man.py)

WinFsp

choco install -y winfsp

CygFuse

"C:\Program Files (x86)\WinFsp\opt\cygfuse\install.sh"

docutils (for rst2man.py)

pip3 install docutils

Clone repository

git clone https://github.com/billziss-gh/sshfs-win
cd sshfs-win
git submodule init
git submodule update

Run build

mkdir -p .build/x64/status
make .build/x64/status/sshfs-win

Prepare root

mkdir -p .build/x64/root/usr/local/share/man/man1
cp .build/x64/src/sshfs/build/sshfs.1 .build/x64/root/usr/local/share/man/man1/
mkdir -p .build/x64/root/usr/local/share/doc/sshfs
cp README.md .build/x64/root/usr/local/share/doc/sshfs/README-win.md
cp sshfs/{AUTHORS,COPYING,README.rst} .build/x64/root/usr/local/share/doc/sshfs/
rm -rf .build/x64/root/etc .build/x64/root/dev
(cd .build/x64/root/bin;for f in *;do diff -q $f /bin/$f &>/dev/null&&rm $f;done)
mv .build/x64/root/bin .build/x64/root/usr/local/
tar -cvzf sshfs-`.build/x64/root/usr/local/bin/sshfs --version|sed -ne 's/^SSHFS version //p'`.tar.gz -C .build/x64/root usr
@pyhedgehog
Copy link
Author

@billziss-gh told he is not planning cygwin packaging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment