Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Fix :osxfuse requirement for Linuxbrew #46

Closed
sahilseth opened this issue May 20, 2016 · 5 comments
Closed

Fix :osxfuse requirement for Linuxbrew #46

sahilseth opened this issue May 20, 2016 · 5 comments
Assignees

Comments

@sahilseth
Copy link

I am trying to install sshfs on a linux box, I do not have sudo privileges for. I understand sshfs is available via apt-get and yum. But I do not have access to those.

Is there a way to install sshfs via brew, on linux?

brew install sshfs
Error: No available formula for sshfs
==> Searching formulae...
==> Searching taps...
homebrew/fuse/sshfs

Using homebrew tap fails

[sseth@sharklogin2 2.7]$ brew install homebrew/fuse/sshfs
==> Tapping homebrew/fuse
Cloning into XXXXXXXXXXXXXXXXXXXX/.linuxbrew/Library/Taps/homebrew/homebrew-fuse'...
remote: Counting objects: 33, done.
remote: Compressing objects: 100% (33/33), done.
remote: Total 33 (delta 0), reused 20 (delta 0), pack-reused 0
Unpacking objects: 100% (33/33), done.
Checking connectivity... done.
Tapped 27 formulae (84 files, 512K)
==> Installing sshfs from homebrew/homebrew-fuse
==> Tapping homebrew/dupes
Cloning into 'XXXXXXXXXXXXXXXXXXXX/.linuxbrew/Library/Taps/homebrew/homebrew-dupes'...
remote: Counting objects: 42, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 42 (delta 0), reused 16 (delta 0), pack-reused 0
Unpacking objects: 100% (42/42), done.
Checking connectivity... done.
Tapped 0 formulae (103 files, 512K)
==> Installing dependencies for homebrew/fuse/sshfs: homebrew/dupes/m4, autoconf, automake, libtool, gettext, osxfuse, libffi, glib
==> Installing homebrew/fuse/sshfs dependency: homebrew/dupes/m4
==> Downloading http://ftpmirror.gnu.org/m4/m4-1.4.17.tar.xz
######################################################################## 100.0%
Error: SHA256 mismatch
Expected: f0543c3beb51fa6b3337d8025331591e0e18d8ec2886ed391f1aade43477d508
Actual: 3eb6fa09bb45130010f47327d81815468e58edf93893a46dcf47249d043aa0e6
Archive: XXXXXXXXXXXXXXXXXXXX/Homebrew/m4-1.4.17.tar.xz
To retry an incomplete download, remove the file above.
@DoomHammer
Copy link
Contributor

Looks like a problem with m4 rather than sshfs. Could you try the following:

brew untap homebrew/dupes
brew tap homebrew/dupes git://github.com/Linuxbrew/homebrew-dupes.git
brew install homebrew/dupes/m4

?

@sjackman sjackman changed the title No package sshfs for linux. m4: SHA256 mismatch May 30, 2016
@sjackman
Copy link
Member

This issue should be resolved. Please comment if not.

$ brew fetch m4
==> Fetching m4 from homebrew/dupes
==> Downloading https://linuxbrew.bintray.com/bottles-dupes/m4-1.4.17.x86_64_lin
Already downloaded: /home/sjackman/.cache/Homebrew/m4-1.4.17.x86_64_linux.bottle.tar.gz
SHA256: b8a2e4e9f9e3120cbbd02454460a218406593ed90b701cdcf67efff290c90411

@sjackman sjackman self-assigned this May 30, 2016
@sahilseth
Copy link
Author

sahilseth commented Jun 14, 2016

Sorry for a late reply here, and thanks for the help!

Today, I again ran

brew install sshfs
==> Installing sshfs from homebrew/homebrew-fuse
==> Installing dependencies for homebrew/fuse/sshfs: homebrew/dupes/m4, autoconf, automake, libtool, gettext, osxfuse, libffi, glib
==> Installing homebrew/fuse/sshfs dependency: homebrew/dupes/m4

# ... downloaded and installed several binaries, then got stuck with the following:
./build.sh
-t
homebrew
-f
/rsrch2/iacs/iacs_dep/sseth/.linuxbrew/Cellar/osxfuse/2.8.0

./build.sh: line 2493: sw_vers: command not found
OSXFUSEBuildTool() failed: no supported version of Xcode found.

Not sure why is it trying to find Xcode, on linux.

So I tried updating brew:

brew update # got a git related error, so I did
git reset --hard FETCH_HEAD
git checkout Library
brew update

# try installing again:
brew install sshfs
==> Installing sshfs from homebrew/fuse
==> Installing dependencies for homebrew/fuse/sshfs: patchelf, binutils, linux-headers, glibc, gmp, gpatch, mpfr, isl, gcc, libxml2, pkg-config, homebrew/dupes/ncurses, gettext, osx
==> Installing homebrew/fuse/sshfs dependency: patchelf

# had a issue with gcc, 
brew install gcc
Warning: The post-install step did not complete successfully
You can try again using `brew postinstall gcc`

brew postintall gcc
==> Creating the GCC specs file: specs
Error: command failed: gcc-5 -dumpspecs

gcc-5 -dumpspecs
Segmentation fault

@sjackman I saw your recommending using brew sh as a workaround:

brew sh --cc=gcc-5
Your shell has been configured to use Homebrew's build environment:
this should help you build stuff. Notably though, the system versions of
gem and pip will ignore our configuration and insist on using the
environment they were built under (mostly). Sadly, scons will also
ignore our configuration.
When done, type `exit'.

gcc
Segmentation fault

At this point, I feel the issue I am having has really forked from the one I had earlier. Happy to follow your tips here, or file a new issue.

Thanks!

@sjackman sjackman reopened this Jun 14, 2016
@sjackman sjackman changed the title m4: SHA256 mismatch Fix :osxfuse requirement for Linuxbrew Jun 14, 2016
@sjackman sjackman added the bug label Jun 14, 2016
@sjackman
Copy link
Member

sjackman commented Jun 14, 2016

I've submitted PR #64 to hopefully address this issue. It changes the :osxfuse requirement to depend on libfuse rather than osxfuse on Linuxbrew.

@sjackman
Copy link
Member

Merged! Sorry for the delay. It fell off my radar. I'd be curious to hear back if this patch fixes your issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants