Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Linuxbrew is preliminary, if you stumbled at beginning, here is a temporary solution #2

Closed
janckerchen opened this issue Apr 5, 2013 · 4 comments
Assignees

Comments

@janckerchen
Copy link

Linuxbrew need you take care of your environment, here's solution from @sjackman, it works for me

#how to bring homebrew to linux
git clone https://github.com/Homebrew/linuxbrew.git ~/
PATH=~/linuxbrew/bin:$PATH
HOMEBREW_PREFIX=~/linuxbrew
HOMEBREW_CACHE=$HOMEBREW_PREFIX/Library/Caches/Homebrew
ln -s /usr/bin/gcc $HOMEBREW_PREFIX/bin/gcc-4.2
ln -s /usr/bin/g++ $HOMEBREW_PREFIX/bin/g++-4.2
brew install ruby  #for test

enjoy!

It is not smooth way, but works.

@MikeMcQuaid
Copy link
Contributor

Perhaps made a pull request to amend the README? You shouldn't need to set HOMEBREW_PREFIX. @sjackman Would be good to fix the need to change HOMEBREW_CACHE and the gcc/g++ symlink.

@jaimeMF
Copy link
Contributor

jaimeMF commented Apr 7, 2013

You can also install clang, which I've used to build ruby and git without problems.

@ghost ghost assigned sjackman Apr 8, 2013
@sjackman
Copy link
Member

sjackman commented Apr 9, 2013

I've fixed it so that Homebrew looks for gcc and g++ on non-MacOS systems rather than gcc-4.2 and g++-4.2.
ce18453 GCC is named gcc-4.2 on MacOS and gcc elsewhere

@sjackman sjackman closed this as completed Apr 9, 2013
@funnell
Copy link

funnell commented Apr 17, 2013

These instructions don't work for me. This is what I get when trying to install ruby:
$ brew install ruby
Error: Function not implemented - /share/lustre/tfunnell/linuxbrew/Library/Caches/Homebrew/Formula/ruby.brewing

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

5 participants