Giter VIP home page Giter VIP logo

legacy-linuxbrew's Introduction

Linuxbrew (Legacy)

This repository has been deprecated and split into two repositories:

  • Linuxbrew/brew: the Linuxbrew package manager without any formulae/packages (i.e. without the former contents of Library/Formula)
  • Linuxbrew/homebrew-core: the formulae/packages (i.e. the former contents of Library/Formula) for the Linuxbrew package manager

Please note: you don't need to move pull requests or issues over from this. We will handle all migrations.

legacy-linuxbrew's People

Contributors

0xffea avatar adamv avatar afh avatar apjanke avatar asaph avatar bfontaine avatar brettkoonce avatar dholm avatar domt4 avatar dstftw avatar dunn avatar jacknagel avatar lovebug356 avatar makigumo avatar manphiz avatar mikemcquaid avatar mindtooth avatar mistydemeo avatar mnaberez avatar mxcl avatar nijikon avatar noctem avatar samueljohn avatar sharpie avatar sjackman avatar tdsmith avatar tschoonj avatar uniqmartin avatar vszakats avatar xu-cheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

legacy-linuxbrew's Issues

Bottling failed with error on Travis-CI

I left all of the build log at https://travis-ci.org/PizzaFactory/linuxbrew-commandline/jobs/23983626

$ brew bottle $PACKAGE
==> Bottling urjtag-0.10.dunno.bottle.tar.gz...
Error: undefined method `start_with?' for nil:NilClass
Please report this bug:
    https://github.com/Homebrew/homebrew/wiki/troubleshooting
/home/travis/.linuxbrew/Library/Homebrew/keg_fix_install_names.rb:30:in `block (3 levels) in relocate_install_names'
/home/travis/.linuxbrew/Library/Homebrew/keg_fix_install_names.rb:129:in `each'
/home/travis/.linuxbrew/Library/Homebrew/keg_fix_install_names.rb:129:in `each_install_name_for'
/home/travis/.linuxbrew/Library/Homebrew/keg_fix_install_names.rb:29:in `block (2 levels) in relocate_install_names'

freetype

brew install freetype fails with the XQuartz error - a which seems to be manually hardcoded in for that (and a couple of other) formulae.

I can get freetype to build just fine by removing the OSX bottle stuff from the formula (see diff below), but I have to issue the build commands manually. brew install freetype alwaygs gets caught by the XQuartz exception.

Has freetype been permanently quarantined in this way? Can the formula (& homebrew itself) be amended to allow freetype to be built the linux way (i.e. without Quartz?)

diff --git a/Library/Formula/freetype.rb b/Library/Formula/freetype.rb
index 9bdea87..63cc411 100644
--- a/Library/Formula/freetype.rb
+++ b/Library/Formula/freetype.rb
@@ -5,21 +5,9 @@ class Freetype < Formula
   url 'http://downloads.sf.net/project/freetype/freetype2/2.5.0/freetype-2.5.0.1.tar.gz'
   sha1 '2d539b375688466a8e7dcc4260ab21003faab08c'

-  bottle do
-    # Included with X11 so no bottle needed before Mountain Lion.
-    revision 1
-    sha1 '54dad7e45cdbbdfa6065d13f9cbc497c94a94af5' => :mavericks
-    sha1 '9bfe424803590bccaaa39944b9b69e6ae7dbd548' => :mountain_lion
-  end
-
-  keg_only :provided_pre_mountain_lion
-
-  option :universal
-
   depends_on :libpng

   def install
-    ENV.universal_binary if build.universal?
     system "./configure", "--prefix=#{prefix}"
     system "make"
     system "make", "install"

brew install serf failed

$ brew install serf -V
==> Downloading http://serf.googlecode.com/files/serf-1.2.1.tar.bz2
Already downloaded: /home/huahang/.cache/Homebrew/serf-1.2.1.tar.bz2
==> ./configure --prefix=/home/huahang/.linuxbrew/Cellar/serf/1.2.1 --with-apr=/usr/bin
checking target system type... x86_64-unknown-linux-gnu

Configuring Apache Portable Runtime library...

checking for APR... configure: error: the --with-apr parameter is incorrect. It must specify an install prefix, a build directory, or an apr-config file.

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

These open issues may also help:
Homebrew/legacy-homebrew#21427
Homebrew/legacy-homebrew#21449

autoconf: Depends on m4

I tryed to install ruby-build, and the installation of the dependence autoconf fail.

The command prompt:

❯ brew install ruby-build -v                      
==> Installing ruby-build dependency: autoconf
==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
Already downloaded: /home/dcardosods/.cache/Homebrew/autoconf-2.69.tar.gz
tar xf /home/dcardosods/.cache/Homebrew/autoconf-2.69.tar.gz
==> ./configure --prefix=/usr/local/dcardosods/linuxbrew/Cellar/autoconf/2.69
./configure --prefix=/usr/local/dcardosods/linuxbrew/Cellar/autoconf/2.69
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.69
configure: autobuild hostname... dcardosods-Ubuntu-13
configure: autobuild timestamp... 20130912T153411Z
checking whether /bin/sh -n is known to work... no
checking for characters that cannot appear in file names... none
checking whether directories can have trailing spaces... yes
checking for expr... /usr/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.
GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 39785c8b04e46bae09f70da26d8f8697a666f5d4
HOMEBREW_PREFIX: /usr/local/dcardosods/linuxbrew
CPU: quad-core 64-bit dunno
OS X: 0-x86_64
/usr/bin/ruby1.9.1:
  1.9.3-194
X11: N/A
==> ENV
CC: /usr/bin/gcc => /usr/bin/gcc-4.7
CXX: /usr/bin/g++ => /usr/bin/g++-4.7
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -isystem /usr/local/dcardosods/linuxbrew/include
LDFLAGS: -L/usr/local/dcardosods/linuxbrew/lib -Wl,-headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /usr/local/dcardosods/linuxbrew
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig
ACLOCAL_PATH: /usr/local/dcardosods/linuxbrew/share/aclocal
OBJC: /usr/bin/gcc
PATH: /home/dcardosods/bin:/usr/local/dcardosods/linuxbrew/bin:/usr/local/dcardosods/linuxbrew/share/npm/bin:/home/dcardosods/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/dcardosods/linuxbrew/Library/Contributions/cmd

Error: autoconf did not build
Logs:       /home/dcardosods/Library/Logs/Homebrew/autoconf/config.log

The config.log content.

update fails

there is no branch linuxbrew in https://github.com/mxcl/homebrew.

ubuntu:~$ brew -v update
Homebrew 0.9.4
git init 
Initialized empty Git repository in /linuxbrew/.git/
git config core.autocrlf false 
git remote add origin https://github.com/mxcl/homebrew.git 
git fetch origin 
remote: Counting objects: 110751, done.
remote: Compressing objects: 100% (31972/31972), done.
remote: Total 110751 (delta 79497), reused 107282 (delta 77821)
Receiving objects: 100% (110751/110751), 13.96 MiB | 348 KiB/s, done.
Resolving deltas: 100% (79497/79497), done.
From https://github.com/mxcl/homebrew
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      go         -> origin/go
 * [new branch]      master     -> origin/master
 * [new branch]      superwip   -> origin/superwip
git reset --hard origin/master 
HEAD is now at f11e793 gtkglarea 2.0.1
git checkout -q linuxbrew 
error: pathspec 'linuxbrew' did not match any file(s) known to git.
Error: Failure while executing: git checkout -q linuxbrew 

how is this meant to be resolved? should i fix update.rb to point to https://github.com/Homebrew/linuxbrew?

ENV gcc should be more robust

I just ran into a problem with a server that has an older version of gcc and I went searching for a problem. Installing pkg-config would end in an error like this:

==> Installing the_silver_searcher dependency: pkg-config                                                                                                                                                  [29/873]
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
Already downloaded: /home/derekt/.brew_cache/pkg-config-0.28.tar.gz
==> ./configure --prefix=/home/derekt/.linuxbrew/Cellar/pkg-config/0.28 --disable-host-tool --with-internal-glib --with-pc-path=/home/derekt/.linuxbrew/lib/pkgconfig:/home/derekt/.linuxbrew/share/pkgconfig:/usr/
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... no
configure: error: in `/tmp/pkg-config-9999/pkg-config-0.28':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error: Homebrew doesn't know what compiler versions ship with your version
of Xcode (0). Please `brew update` and if that doesn't help, file
an issue with the output of `brew --config`:
  https://github.com/mxcl/homebrew/issues

Looking at the config logs showed that the error came from CFLAGS having -msse4 attached which is not supported by my gcc. That being said, I also noticed that homebrew assumed -march=core2 which is not correct. I guess this an area that should be beefed up when it comes to linux machines. However, understandably, this is not very important on the mac version of homebrew.

contributing formulae

Hey folks

I've contributed a few formulae to homebrew on OSX. I've also just set it up on Linux (Ubuntu 13.10) and fixed a few bugs in various formulae.

If I want to contribute these changes back upstream, how do I do that considering I've already forked homebrew to make my osx changes. So when I try and fork homebrew/linuxbrew (as I would for mxcl/homebrew to contribute on OSX) it just takes me to my existing fork.

Is there a way to force a second fork on GH with a new name? Is there a better way to do it?

cmake requires libcurl4-openssl-dev

Hi

brew install cmake failed in a Ubuntu box due to a missing libcurl. Here is the full log:

....
-- Looking for C++ include dlfcn.h - found
-- Checking whether dladdr works with this C++ compiler
-- Checking whether dladdr works with this C++ compiler - yes
-- Looking for C++ include cxxabi.h
-- Looking for C++ include cxxabi.h - found
-- Checking whether cxxabi works with this C++ compiler
-- Checking whether cxxabi works with this C++ compiler - yes
-- Using system-installed BZIP2
-- Using system-installed CURL
-- Using system-installed EXPAT
-- Using system-installed ZLIB
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.3.4") 
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:283 (message):
  CMAKE_USE_SYSTEM_CURL is ON but a curl is not found!
Call Stack (most recent call first):
  CMakeLists.txt:515 (CMAKE_BUILD_UTILITIES)


-- Configuring incomplete, errors occurred!
See also "/tmp/cmake-15NN/cmake-2.8.12.1/CMakeFiles/CMakeOutput.log".
See also "/tmp/cmake-15NN/cmake-2.8.12.1/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 0c737b1ef9fb9cfb0b715949ac8eed14d6ab1801
HOMEBREW_PREFIX: /home/cesar/.linuxbrew
CPU: quad-core 64-bit dunno
OS X: 0-x86_64
/home/cesar/.rbenv/versions/2.0.0-p247/bin/ruby:
  2.0.0-247
X11: N/A
==> ENV
CC: /usr/bin/gcc => /usr/bin/gcc-4.6
CXX: /usr/bin/g++ => /usr/bin/g++-4.6
OBJC: /usr/bin/gcc
OBJCXX: /usr/bin/g++
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -isystem/home/cesar/.linuxbrew/include
LDFLAGS: -L/home/cesar/.linuxbrew/lib -Wl,-headerpad_max_install_names
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /home/cesar/.linuxbrew
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig
ACLOCAL_PATH: /home/cesar/.linuxbrew/share/aclocal
PATH: /home/cesar/.rbenv/versions/2.0.0-p247/bin:/home/cesar/.rbenv/libexec:/home/cesar/.rbenv/plugins/ruby-build/bin:/home/cesar/.linuxbrew/bin:/home/cesar/.rbenv/bin:/home/cesar/.rbenv/shims:/home/cesar/bin:/home/cesar/google_appengine:/home/cesar/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/cesar/010editor:/home/cesar/.rvm/bin:/home/cesar/010editor:/home/cesar/.linuxbrew/Library/Contributions/cmd

Error: cmake did not build
Logs:
     /home/cesar/Library/Logs/Homebrew/cmake/CMakeCache.txt
     /home/cesar/Library/Logs/Homebrew/cmake/01.bootstrap

Installing libcurl4-openssl-dev fixed the problem. Maybe it should be added to the readme?

Thanks,

contributing formulae

Hey folks

I've contributed a few formulae to homebrew on OSX. I've also just set it up on Linux (Ubuntu 13.10) and fixed a few bugs in various formulae.

If I want to contribute these changes back upstream, how do I do that considering I've already forked homebrew to make my osx changes. So when I try and fork homebrew/linuxbrew (as I would for mxcl/homebrew to contribute on OSX) it just takes me to my existing fork.

Is there a way to force a second fork on GH with a new name? Is there a better way to do it?

Cmake formula requires expat and bzip2 devel libraries on CentOS 6.4

As in title, I was installing cmake using brew and it was stopping with missing libraries errors: fist expat and than bzip2. Installing both from yum, i.e. yum install expat-devel bzip2-devel solved the issue. Note that I had both libraries present but not the development versions, just SO without the headers.

Cheers,

Jakub

Error runing zsh installed with linuxbrew

I have installed without problems zsh using linuxbrew:

brew install zsh

Now, when runing zsh I get the error:

zsh: error while loading shared libraries: libgdbm.so.4: cannot open shared object file: No such file or directory

But libgdm.so.4 is already present in ~/.linuxbrew/lib and I already have in both my .bashrc and .zshrc:

LD_LIBRARY_PATH="$HOME/.linuxbrew/lib:$LD_LIBRARY_PATH"

Am I missing something?

I'm in Debian 3.2.54-2 x86_64

Error: Bad file descriptor when install ace

$ brew install ace
Error: Bad file descriptor
/home/deploy/linuxbrew/Library/Homebrew/build.rb:27:in `initialize'
/home/deploy/linuxbrew/Library/Homebrew/build.rb:27:in `new'
/home/deploy/linuxbrew/Library/Homebrew/build.rb:27:in `main'
/home/deploy/linuxbrew/Library/Homebrew/build.rb:12:in `block in <top (required)>'
Error: Suspicious installation failure

my linuxbrew commit:

commit 1f2c62fd1111229a72fc2b3f7209d35f9c8f5211
Author: Shaun Jackman <[email protected]>
Date:   Fri Apr 5 10:13:45 2013 -0700

    Disable universal_binary on non-OSX systems

`brew update` tries to update from homebrew/homebrew

leon@polly:~/.dotfiles$ brew update
Reinitialized existing Git repository in /home/leon/.dotfiles/.git/modules/.linuxbrew/
fatal: remote origin already exists.
Error: Failure while executing: git remote add origin https://github.com/Homebrew/homebrew.git 
leon@polly:~/.dotfiles$ brew update
Initialized empty Git repository in /home/leon/.dotfiles/.linuxbrew/.git/
remote: Reusing existing pack: 158640, done.
remote: Counting objects: 30, done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 158670 (delta 12), reused 10 (delta 7)
Receiving objects: 100% (158670/158670), 29.19 MiB | 2.18 MiB/s, done.
Resolving deltas: 100% (112187/112187), done.
From https://github.com/Homebrew/homebrew
 * [new branch]      gh-pages   -> origin/gh-pages
 * [new branch]      go         -> origin/go
 * [new branch]      master     -> origin/master
HEAD is now at f542013 return found path directly in which
error: pathspec 'linuxbrew' did not match any file(s) known to git.
Error: Failure while executing: git checkout -q linuxbrew

I expected it to pull from homebrew/linuxbrew.

README does not specify ruby version requirement

I just cloned homebrew on a linux box and got the following error:

.linuxbrew/Library/Homebrew/global.rb:80: uninitialized constant RUBY_PATCHLEVEL (NameError)
        from .linuxbrew/Library/brew.rb:17:in `require'
        from .linuxbrew/Library/brew.rb:17

My ruby version: ruby 1.8.5 (2006-08-25) [x86_64-linux]. I did some snooping and it seems that the ruby version that introduces RUBY_PATCH_LEVEL came out in December 2006. I suppose it would benefit the project to either announce this requirement or provide a workaround. Either way, it seems I must update ruby to get brew to work on my system (resetting the variable just leads to most things breaking), so I am compiling ruby and will report back.

Do not pull from master when updating

If linuxbrew is going to be the main branch, when calling brew upgrade it should checkout linuxbrew and the pull from refs/remotes/origin/linuxbrew. Otherwise it merges the changes from the master branch.

Use patchelf to set RPATH

Nicolas Hillegeer wrote...

Hey!

I just tried to post an issue to the issue tracker but it seems it won't budge, so I'll just paste my findings over to you:

NOTE: this issue might be double-posted, I think there was some issue with github so it didn't appear for me...

I really wanted ag, the silver searcher and I really wanted it through homebrew because I like pretty colours and upgrades, and dependency building, and rainbows.

I basically installed with

git clone git://github.com/Homebrew/linuxbrew.git
sudo mv linuxbrew /opt/homebrew
sudo chown `whoami`:`whoami` /opt/homebrew -R
edit [.zshrc/.bashrc/...] and add /opt/homebrew/bin in front of $PATH

So, that left me with three tiny hacks to get it to work:

  1. Setup more environment variables in .zshrc, which basically comes down to
export PATH="/opt/homebrew/bin:$PATH"                  # already done earlier
export HOMEBREW_PREFIX="/opt/homebrew"
export HOMEBREW_REPOSITORY="/opt/homebrew"
export HOMEBREW_CELAR="/opt/homebrew/Cellar"
export HOMEBREW_CACHE="/opt/homebrew/hbcache"
  1. to fix brew doctor, it seems to assume mktemp is in/usr/bin/mktemp, on debian it's in /bin/mktemp

Success!!! ag installs, drags in pcre kicking and screaming, and I am the proud father of a new compiled silver searcher.

But wait... it says that it can't find libpcre.so.1 when it runs. But I do have it, it got installed to /opt/homebrew/lib as part of the dependency resolving phase. What do we do?

  1. The first reflex would be to add /opt/homebrew/lib to LD_LIBRARY_PATH. Which would probably cause weird troubles for users down the road. There are some articles out there detailing the pitfalls of LD_LIBRARY_PATH. Especially on a linux system such as debian, I just wouldn't do it.

But, is there a way to change the LD_LIBRARY_PATH for just one executable? Well yea, we could write a wrapper script! There are a lot of packages that do that. And it's bad, but not quite as evil as changing LD_LIBRARY_PATH. So, I could hack homebrew to have it generate wrappers instead of symlinks.

But that's so dirty...

And I'm so lazy...

And I don't know ruby...

So I bust out google-fu and find that in fact, there is a solution that works for many unices. Basically, every executable has the possibility to have a RPATH and a RUNPATH. It's basically exactly what we want, the runtime linker will look first in RPATH, then in the normal path and last but not least in RUNPATH. At least that's my understanding.

But I find that you can set this variable at link-time, with a switch to ld or gcc. :(

That would mean hacking homebrew again.

I google once more before giving up and I find the venerable patchelf. Which... patches elfs to have a different RUNPATH. Exactly what we need.

cd /opt/homebrew/bin
patchelf --set-rpath '$ORIGIN/../lib' ag                   # $ORIGIN refers to the current directory, don't evaluate it, use the single quotes

Does it work? Why yes, it works. Now I can run homebrew on my debian wheezy. Nice.

git depends on curl

/usr/bin/gcc -o http-fetch.o -c -MF ./.depend/http-fetch.o.d -MQ http-fetch.o -MMD -MP -isystem /home/huahang/.linuxbrew/include -Os -w -pipe -march=core2 -msse4 -I. -DNO_GETTEXT -DHAVE_PATHS_H -DHAVE_DEV_TTY -DXDL_FAST_HASH -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"' http-fetch.c
/usr/bin/gcc -o credential-cache.o -c -MF ./.depend/credential-cache.o.d -MQ credential-cache.o -MMD -MP -isystem /home/huahang/.linuxbrew/include -Os -w -pipe -march=core2 -msse4 -I. -DNO_GETTEXT -DHAVE_PATHS_H -DHAVE_DEV_TTY -DXDL_FAST_HASH -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"' credential-cache.c
make: *** [http.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [http-walker.o] Error 1
In file included from http-fetch.c:3:0:
http.h:6:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.

It seems it's a curl issue.

mktemp needs 6, not 4 X's for the template

mktemp version debianutils-2.7

/usr/bin/mktemp: cannot make temp dir /tmp/homebrew-brew-doctor-XXXX: Invalid argument

From the man page:

DESCRIPTION
       The  mktemp  utility takes the given filename template and overwrites a
       portion of it to create a unique filename.  The  template  may  be  any
       filename   with   six   (6)   `Xs'   appended   to   it,   for  example
       /tmp/tfile.XXXXXX.  If no template is specified a default of tmp.XXXXXX
       is used and the -t flag is implied (see below).

Thus....

./Library/Homebrew/cmd/doctor.rb:  tmp = Pathname.new `/usr/bin/mktemp -d #{tmp_prefix}/homebrew-brew-doctor-XXXX`.strip

./Library/Homebrew/extend/fileutils.rb:    tempd = with_system_path { `mktemp -d #{tmp}/#{name}-XXXX` }.chuzzle

both templates need to be 6 X's, not 4 :-) If there are variants then you will need to write a test to determine which format to use. This may also be version dependent.

gmp: libgmpxx.4.dylib: No such file or directory

I am installing gcc49 in a linux, and the building of gmp4 encountered error (after I modify Library/Homebrew/extend/ENV/std.rb):

ranlib .libs/libgmp.a
rm -fr .libs/libgmp.lax
creating libgmp.la
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
/bin/sh ./libtool --mode=link /usr/bin/g++  -Os -w -pipe -fPIC -march=core2  -L/home/user/.linuxbrew/lib -Wl,-headerpad_max_install_names -o libgmpxx.la -rpath /home/user/.linuxbrew/Cellar/gmp4/4.3.2/lib   -version-info 5:2:1 dummy.lo cxx/isfuns.lo cxx/ismpf.lo cxx/ismpq.lo cxx/ismpz.lo cxx/ismpznw.lo cxx/osdoprnti.lo cxx/osfuns.lo cxx/osmpf.lo cxx/osmpq.lo cxx/osmpz.lo libgmp.la
/usr/bin/g++ -r -keep_private_externs -nostdlib -o .libs/libgmpxx.4.1.2.dylib-master.o  .libs/dummy.o cxx/.libs/isfuns.o cxx/.libs/ismpf.o cxx/.libs/ismpq.o cxx/.libs/ismpz.o cxx/.libs/ismpznw.o cxx/.libs/osdoprnti.o cxx/.libs/osfuns.o cxx/.libs/osmpf.o cxx/.libs/osmpq.o cxx/.libs/osmpz.o
g++: unrecognized option '-keep_private_externs'
/usr/bin/g++ -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libgmpxx.4.1.2.dylib .libs/libgmpxx.4.1.2.dylib-master.o  -L/home/user/.linuxbrew/lib ./.libs/libgmp.dylib  -march=core2 -Wl,-headerpad_max_install_names -install_name  /home/user/.linuxbrew/Cellar/gmp4/4.3.2/lib/libgmpxx.4.dylib -compatibility_version 6 -current_version 6.2
g++: /home/user/.linuxbrew/Cellar/gmp4/4.3.2/lib/libgmpxx.4.dylib: No such file or directory

The linux version information is:
Linux version 2.6.18-194.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Tue Mar 16 21:52:39 EDT 2010

Why linuxbrew uses .dylib file in Linux?

ace: fails to build

Error: No such file or directory - sw_vers -productVersion

$ brew install ace
==> Downloading http://download.dre.vanderbilt.edu/previous_versions/ACE-6.1.8.tar.bz2
Already downloaded: /home/deploy/linuxbrew/Library/Caches/Homebrew/ace-6.1.8.tar.bz2
Error: No such file or directory - sw_vers -productVersion

brew doctor gives unhelpful output

Setup as per #41.

brew doctor gives some erroneous outputs:

Warning: No compiler found in /usr/bin!

There is in fact a /usr/bin/gcc

Error: Failed to import: lsyncd
No such file or directory - sw_vers -productVersion

Warning: Suspicious git origin remote found.

With a non-standard origin, Homebrew won't pull updates from
the main repository. The current git origin is:
  https://github.com/Homebrew/linuxbrew.git

Unless you have compelling reasons, consider setting the
origin remote to point at the main repository, located at:
  https://github.com/mxcl/homebrew.git

This should probably all be squelched in Linuxbrew.

Warning: The version of libcurl provided with Mac OS X 0 has outdated
SSL certificates.

This can cause problems when running Homebrew commands that use Git to
fetch over HTTPS, e.g. `brew update` or installing formulae that perform
Git checkouts.

Mac OS X 0?

And is this actually true?

Warning: Your Homebrew is not installed to /usr/local
You can install Homebrew anywhere you want, but some brews may only build
correctly if you install in /usr/local. Sorry!

This should probably be squelched.

Warning: Your Xcode is configured with an invalid path.
You should change it to the correct path:
  sudo xcode-select -switch /Developer

Irrelevant to Linuxbrew.

gcc48: cannot find -lgcc_s

See also #62.
This appears to be a known longstanding issue with GCC, bug 32415.

$ gcc-4.8 hello.c -o hello
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status

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

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.

error trying install lua

Hi..I'm receiving this message

==> Patching
patching file Makefile
patching file src/Makefile
patching file src/lua.c
==> make macosx INSTALL_TOP=/home/yo/.linuxbrew/Cellar/lua/5.1.
make[2]: *** [liblua.5.1.5.dylib] Error 1
make[2]: Leaving directory /tmp/lua-LHkc/lua-5.1.5/src' make[1]: *** [macosx] Error 2 make[1]: Leaving directory/tmp/lua-LHkc/lua-5.1.5/src'
make: *** [macosx] Error 2

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
lua 5.2.3 (Homebrew/legacy-homebrew#29236)

seems a compatibility problem with the formula which think than I'm using macOS instead of linux...but I'm not sure...thanks

How to uninstall

I accidentally installed linuxbrew using root, now I want to uninstall it from root and install it from my regular user again.

Thanks,
Elgs

emacs installation fails

On a fresh Debian jessie/sid, I followed the instructions to install Linuxbrew in the README.md at e552fa3.

I then tried to install emacs using Linuxbrew, but emacs ./configure failed with this message:

The following libraries were tried (in order):
  libtinfo, libncurses, libterminfo, libtermcap, libcurses
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.

This is fine if you have root/sudo access, but the instruction is not clear if you want to install emacs with user privileges only.

I tried this:

$ brew install homebrew/dupes/ncurses

But unfortunately that fails too:

../lib/libformw.so: undefined reference to `copywin'
collect2: error: ld returned 1 exit status
make[1]: *** [cardfile] Error 1

System info:

sbp@debian:~$ uname -mrs
Linux 3.11-2-686-pae i686
sbp@debian:~$ cat /etc/debian_version
jessie/sid

ldconfig needs to be run

ldconfig needs to be run after new libraries are created if ran by root and brew used in /usr/local. Not doing this causes build failures between dependent formulae.

Unable to install x11 packages

$ brew install sxiv
sxiv: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
imlib2: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
imlib2: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
imlib2: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
Error: Unsatisifed requirements failed this build.

By the way, is checking for X11 server on system really needed? For example, I'd like to install some graphical packages on remote server without any X11 server (only xauth package is installed) to run through X11Forwarding.

brew does not specify that GCC must prefer custom libraries for building (example: mpfr)

I'm on debian wheezy

I have a libmpfr installed through apt-get, and develop a lot with standard debian dev packages, which is why I can't put /my/homebrew/lib in LD_LIBRARY_PATH. However this becomes problematic while building with homebrew, as it now prefers the system paths to the homebrew paths, therefore including the old libmpfr in my case. A stopgap solution that works for me is:

$ LD_LIBRARY_PATH=/my/homebrew/lib brew install mpfr

Which compiles and tests just fine. I'm not sure what the best way is to go about fixing this, so I'm not suggesting anything yet.

I don't really think it would be a good solution to just put the homebrew libs folder at the front of the library search path system-wide, as it could wreak havoc on other development activities. This doesn't just go for debian, but pretty much any distro with a package manager, I believe.

Any comments?

cc1: error: unrecognized command line option "-msse4"

Hi,

On some linux server, the version of the system gcc is too low (4.1.2), which does not support option -msse4. linuxbrew set default flags to -march=core2 -msse4 in Library/Homebrew/extend/ENV/std.rb, and this cause problem when installing package. Can the script judge the version of the system gcc, and set correct default flags?

brew doctor complains so much!

$ brew doctor
Warning: Your file-system on [["/"]] appears to be CaSe SeNsItIvE.
Homebrew is less tested with that - don't worry but please report issues.

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:

    /usr/kerberos/bin/krb5-config
    /home/user/tools/bin/antlr-config
    /home/user/tools/bin/nc-config
Error: Failed to import: lsyncd
No such file or directory - sw_vers

Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .la files:
    /usr/local/lib/libmhash.la
    /usr/local/lib/libntfs-3g.la
    /usr/local/lib/liblzma.la

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected .pc files:
    /usr/local/lib/pkgconfig/liblzma.pc
    /usr/local/lib/pkgconfig/libntfs-3g.pc

Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected static libraries:
    /usr/local/lib/liblzma.a
    /usr/local/lib/libmhash.a
    /usr/local/lib/libntfs-3g.a

Warning: Suspicious git origin remote found.

With a non-standard origin, Homebrew won't pull updates from
the main repository. The current git origin is:
  https://github.com/Homebrew/linuxbrew.git

Unless you have compelling reasons, consider setting the
origin remote to point at the main repository, located at:
  https://github.com/Homebrew/homebrew.git

Warning: The version of libcurl provided with Mac OS X 0 has outdated
SSL certificates.

This can cause problems when running Homebrew commands that use Git to
fetch over HTTPS, e.g. `brew update` or installing formulae that perform
Git checkouts.

You can force Git to ignore these errors:
  export GIT_SSL_NO_VERIFY=1
or
  git config --global http.sslVerify false

Warning: You have uncommitted modifications to Homebrew
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
    cd /home/user/.linuxbrew/Library && git stash && git clean -d -f

Warning: Your Homebrew is not installed to /usr/local
You can install Homebrew anywhere you want, but some brews may only build
correctly if you install in /usr/local. Sorry!

Warning: Some directories in your path end in a slash.
Directories in your path should not end in a slash. This can break other
doctor checks. The following directories should be edited:
    /sbin/

Warning: Ruby version 2.0.0 is unsupported.
Homebrew is developed and tested on Ruby 1.8.x, and may not work correctly
on other Rubies. Patches are accepted as long as they don't break on 1.8.x.

Warning: You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
your curlrc:
  curl http://github.com

Warning: You have a non-Homebrew 'pkg-config' in your PATH:
  /usr/bin/pkg-config

`./configure` may have problems finding brew-installed packages using
this other pkg-config.

Some of the warnings check the files in /usr/local and tell me the homebrew is not installed there, but from the README of linuxbrew, it is installed at home directory, so I think linuxbrew does not modify the corresponding settings of homebrew for Mac OS X to adapt for Linux.

If I misunderstand anything, correct me! : ) Anyway, linuxbrew is a good thing for Linux, which is much better than the old fashion aptitude and yum, and it will definitely ease the setup of a uniform environment.

LinuxBrew overrides PKG_CONFIG_LIBDIR

Hello,

I encountered a strange conflict, regarding using a system-wide installed library through LinuxBrew+pkg-config - it seems LinuxBrew overrides PKG_CONFIG_LIBDIR, and so the native pkg-config can't find system-wide directories.

My setup:
Debian 7, /usr/bin/pkg-config works fine,
Some packages have "PC" files in /usr/lib/x86_64-linux-gnu/pkgconfig/ while others are in /usr/lib/pkgconfig - perhaps this is a new Debian thing?

Example 1:

$ dpkg -L libfftw3-dev | grep pc
/usr/lib/x86_64-linux-gnu/pkgconfig/fftw3f.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/fftw3.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/fftw3l.pc
$ pkg-config --libs --print-errors fftw3
-lfftw3 -lm

Example 2:

$ ls /usr/lib/pkgconfig/
cppunit.pc  python-2.7.pc

pkg-config by default searches both directories (without using ENV variables):

$ echo $PKG_CONFIG_PATH

$ echo $PKG_CONFIG_LIBDIR

$ pkg-config --list-all
fftw3f           FFTW - fast Fourier transform library
openssl          OpenSSL - Secure Sockets Layer and cryptography libraries and tools
fftw3l           FFTW - fast Fourier transform library
libcrypto        OpenSSL-libcrypto - OpenSSL cryptography library
zlib             zlib - zlib compression library
fftw3            FFTW - fast Fourier transform library
cppunit          CppUnit - The C++ Unit Test Library
python-2.7       Python - Python library
udev             udev - udev
expat            expat - expat XML parser
iso-codes        iso-codes - ISO country, language, script and currency codes and translations
libssl           OpenSSL - Secure Sockets Layer and cryptography libraries
shared-mime-info shared-mime-info - Freedesktop common MIME database

When I build a package (with ./configure) outside LinuxBrew, it works just fine.

Inside LinuxBrew, it fails by not finding fftw3 .

I can reproduce with the following formula:

require 'formula'

class Example < Formula
  homepage 'http://www.google.com'
  head 'https://github.com/Homebrew/homebrew-binary.git'

  def install
      system 'env | grep PKG'
      system 'pkg-config --print-errors --list-all'
  end
end

When running it, the output is:

$ brew install --HEAD --verbose $PWD/example.rb 
==> Cloning https://github.com/Homebrew/homebrew-binary.git
git clone --depth 1 https://github.com/Homebrew/homebrew-binary.git /home/admin/.cache/Homebrew/example--git
Cloning into '/home/admin/.cache/Homebrew/example--git'...
remote: Counting objects: 13, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 13 (delta 0), reused 10 (delta 0)
Unpacking objects: 100% (13/13), done.
git reset --hard origin/HEAD
HEAD is now at fd7f0c7 packer 0.4.1
git checkout-index -a -f --prefix=/tmp/example-l72M/
==> env | grep PKG
PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig
==> pkg-config --print-errors --list-all
python-2.7 Python - Python library
cppunit    CppUnit - The C++ Unit Test Library
==> Cleaning
==> Finishing up
ln -s ../../Cellar/example/HEAD example
ln -s ../Cellar/example/HEAD example
==> Summary
/home/admin/source/LinuxBrew/Cellar/example/HEAD: 2 files, 12K, built in 2 seconds

Which shows that LinuxBrew added PKG_CONFIG_LIBDIR, and this messes up the default locations for debian (the --list-all doesn't show all the system packages).

What would be a recommended way to solve this?

Thanks,
-Gordon

"Error: key not found: :core2" on Travis-CI

I left log at https://travis-ci.org/PizzaFactory/linuxbrew-commandline/jobs/23914324.

==> Installing pf-gnuchains4x-arm-eabi-nolib
Error: key not found: :core2
Please report this bug:
    https://github.com/Homebrew/homebrew/wiki/troubleshooting
/home/travis/.linuxbrew/Library/Homebrew/extend/ENV/std.rb:348:in `fetch'
/home/travis/.linuxbrew/Library/Homebrew/extend/ENV/std.rb:348:in `set_cpu_flags'
/home/travis/.linuxbrew/Library/Homebrew/extend/ENV/std.rb:363:in `set_cpu_cflags'
/home/travis/.linuxbrew/Library/Homebrew/extend/ENV/std.rb:145:in `gcc'
/home/travis/.linuxbrew/Library/Homebrew/extend/ENV/std.rb:66:in `setup_build_environment'
/home/travis/.linuxbrew/Library/Homebrew/build.rb:135:in `install'
/home/travis/.linuxbrew/Library/Homebrew/build.rb:45:in `main'
/home/travis/.linuxbrew/Library/Homebrew/build.rb:12:in `block in <top (required)>'

failed to install pcre

Full log is here:

$ brew install nginx
==> Installing dependencies for nginx: pcre, openssl
==> Installing nginx dependency: pcre
==> Downloading http://downloads.sourceforge.net/project/pcre/pcre/8.34/pcre-8.3
######################################################################## 100.0%
==> ./configure --prefix=/home/windrunner/.linuxbrew/Cellar/pcre/8.34 --enable-u
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
** Cannot --enable-pcregrep-libz because zlib.h was not found

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help:
pcre and pcre++ conflict (https://github.com/Homebrew/homebrew/issues/21968)
Pcre++: rename man page to avoid conflict with pcre. (https://github.com/Homebrew/homebrew/pull/21969)
cfengine: add pcre dep (https://github.com/Homebrew/homebrew/pull/12192)
pcre 8.31 404 error (https://github.com/Homebrew/homebrew/issues/13450)
pcre failed to build on 10.8.4 (https://github.com/Homebrew/homebrew/issues/20605)
Fix things that depend on pcre (https://github.com/Homebrew/homebrew/issues/8944)
git: add "--with-pcre" option (https://github.com/Homebrew/homebrew/pull/8929)
pcre: Update to 8.20 (https://github.com/Homebrew/homebrew/pull/8685)

I know I could using apt-get install zlib1g-dev to solve this, but I don't know how to fix it in linuxbrew.

Documentation and general info

Please create some documentation and info about the development environment needed.
That will make easier for anyone to contribute.

Linuxbrew: "Package bash-completion was not found..." at command prompt.

I'm prompted with this error message when I open terminal in Fedora 20:

"Package bash-completion was not found in the pkg-config search path.
Perhaps you should add the directory containing `bash-completion.pc'
to the PKG_CONFIG_PATH environment variable
No package 'bash-completion' found
bash: /yum: No such file or directory"

I have isolated the problem and it is most definitely connected to Linuxbrew.

Please tell me what ever information is required for solving this.

Thank you.

brew ENV appends the -arch flag to LDFLAGS

In .../Library/Homebrew/extend/ENV.rb there is a part where either -arch x86_64 or -arch i386 is appended to LDFLAGS.

This flag is an apple-specific extension to GCC by way of their LLVM wrapper which of course doesn't work on linux.

Reference:
http://stackoverflow.com/questions/4391192/why-do-i-get-cc1plus-error-unrecognized-command-line-option-arch

Disabling this made me able to get quite a bit further with my build of mpfr. (now only make test is failing, but with that flag even ./configure fails).

Permission denied when installing formulas

I am trying to setup linuxbrew on a CentOs system but the formulas are failing due to a permission error. My guess is that homebrew is trying to access some directory that my user does not have permission.

This is a shared system, my user permissions more restricted than usual.

E.g.: installing openssl

brew install openssl
/home/canassa/.linuxbrew/Library/brew.rb: loading /home/canassa/.linuxbrew/Library/Formula/openssl.rb
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
Already downloaded: /home/canassa/.cache/Homebrew/openssl-1.0.1e.tar.gz
==> perl ./Configure --prefix=/home/canassa/.linuxbrew/Cellar/openssl/1.0.1e --openssldir=/home/canassa/.linuxbrew/etc/openssl zlib-dynamic shared linux-x86_64
==> make
==> make test
../util/shlib_wrap.sh ./destest
make[1]: execvp: ../util/shlib_wrap.sh: Permission denied
make[1]: *** [test_des] Error 127
make[1]: Leaving directory `/tmp/openssl-Rd4X/openssl-1.0.1e/test'
make: *** [tests] Error 2

Cmake also fails

brew install -v cmake
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.12.1.tar.gz
Already downloaded: /home/canassa/.cache/Homebrew/cmake-2.8.12.1.tar.gz
tar xf /home/canassa/.cache/Homebrew/cmake-2.8.12.1.tar.gz
==> ./bootstrap --prefix=/home/canassa/.linuxbrew/Cellar/cmake/2.8.12.1 --system-libs --no-system-libarchive --datadir=/share/cmake --docdir=/share/doc/cmake --mandir=/share/man
Failed to execute: ./bootstrap
==> Configuration
HOMEBREW_VERSION: 0.9.5
HEAD: 0c737b1ef9fb9cfb0b715949ac8eed14d6ab1801
HOMEBREW_PREFIX: /home/canassa/.linuxbrew
CPU: 8-core 64-bit dunno
OS X: 0-x86_64
X11: N/A
==> ENV
CC: /usr/bin/gcc
CXX: /usr/bin/g++
OBJC: /usr/bin/gcc
OBJCXX: /usr/bin/g++
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -isystem/home/canassa/.linuxbrew/include
LDFLAGS: -L/home/canassa/.linuxbrew/lib -Wl,-headerpad_max_install_names
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /home/canassa/.linuxbrew
PKG_CONFIG_LIBDIR:
ACLOCAL_PATH: /home/canassa/.linuxbrew/share/aclocal
PATH: /home/canassa/.linuxbrew/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/canassa/bin:/home/canassa/.linuxbrew/Library/Contributions/cmd

Error: cmake did not build
Logs:
     /home/canassa/Library/Logs/Homebrew/cmake/01.bootstrap

These open issues may also help:
    https://github.com/mxcl/homebrew/issues/25118

Thanks!

Homebrew does not support your computer's CPU architecture

I'm really glad to see someone tackling Homebrew on linux! I know this is a monumental task, so anything I can do to decrease the workload my issues will create, please point out!

$ brew install git
Sorry, Homebrew does not support your computer's CPU architecture.
For PPC support, see: https://github.com/mistydemeo/tigerbrew
$ uname -a
Linux lebaron.ee.washington.edu 3.8.0-25-generic #37-Ubuntu SMP Thu Jun 6 20:47:30 UTC 2013 i686 i686 i686 GNU/Linux
$ cat /proc/cpuinfo | grep name
model name      : Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz
model name      : Intel(R) Core(TM)2 Duo CPU     E7500  @ 2.93GHz

Error: Homebrew doesn't know what compiler versions ship with your version of Xcode

Occurs " Homebrew doesn't know what compiler versions ship with your version" when brew install tmux

when brew install tmux, download and configure phase passed, but compile error. I find "patching file osdep-darwin.c" line under Patching phase, it seems not proper to linux platform.

$ brew install tmux

==> Downloading http://sourceforge.net/projects/tmux/files/tmux/tmux-1.8/tmux-1.8.tar.gz
Already downloaded: /home/deploy/linuxbrew/Library/Caches/Homebrew/tmux-1.8.tar.gz
==> Patching
patching file osdep-darwin.c
==> ./configure --prefix=/home/deploy/linuxbrew/Cellar/tmux/1.8 --sysconfdir=/home/deploy/linuxbrew/etc
==> make install
strtonum.o: In function `atof':
strtonum.c:(.text+0x4e0): multiple definition of `atof'
arguments.o:arguments.c:(.text+0xcd0): first defined here
collect2: ld returned 1 exit status
make: *** [tmux] Error 1
Error: Homebrew doesn't know what compiler versions ship with your version
of Xcode (0). Please `brew update` and if that doesn't help, file
an issue with the output of `brew --config`:
  https://github.com/mxcl/homebrew/issues

Thanks!

READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting

gtk: Unsatisfied dependency: XQuartz

Trying to install gtk+ formula, got errors:

[zelgadis@localhost ~]$ brew install gtk+
gtk+: Unsatisfied dependency: XQuartz 2.3.6
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
gdk-pixbuf: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
cairo: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
cairo: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
harfbuzz: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
fontconfig: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
pango: Unsatisfied dependency: XQuartz 
Homebrew does not package XQuartz. Installers may be found at:
  https://xquartz.macosforge.org
Error: An unsatisfied requirement failed this build.
[zelgadis@localhost ~]$

Any help is appreciated.

openssl: install fails

Console output:

brew install -v openssl              
==> Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz
Already downloaded: /home/dcardosods/.cache/Homebrew/openssl-1.0.1e.tar.gz
tar xf /home/dcardosods/.cache/Homebrew/openssl-1.0.1e.tar.gz
Error: invalid byte sequence in UTF-8

brew install svn failed


Libraries have been installed in:
/home/huahang/.linuxbrew/Cellar/subversion/1.8.1/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:

  • add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  • add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  • use the `-Wl,-rpath -Wl,LIBDIR' linker flag
  • have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: f4e8491
HOMEBREW_PREFIX: /home/huahang/.linuxbrew
CPU: quad-core 64-bit dunno
OS X: 0-x86_64
X11: N/A
==> ENV
CC: /usr/bin/gcc => /usr/bin/gcc-4.6
CXX: /usr/bin/g++ => /usr/bin/g++-4.6
CFLAGS: -Os -w -pipe -march=core2 -msse4
CXXFLAGS: -Os -w -pipe -march=core2 -msse4
CPPFLAGS: -I/home/huahang/.linuxbrew/opt/sqlite/include -I/home/huahang/.linuxbrew/opt/readline/include -isystem /home/huahang/.linuxbrew/include
LDFLAGS: -L/home/huahang/.linuxbrew/opt/sqlite/lib -L/home/huahang/.linuxbrew/opt/readline/lib -L/home/huahang/.linuxbrew/lib
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /home/huahang/.linuxbrew/opt/sqlite:/home/huahang/.linuxbrew/opt/readline:/home/huahang/.linuxbrew
PKG_CONFIG_PATH: /home/huahang/.linuxbrew/opt/sqlite/lib/pkgconfig
PKG_CONFIG_LIBDIR: /home/huahang/.linuxbrew/lib/pkgconfig:/usr/lib/pkgconfig
ACLOCAL_PATH: /home/huahang/.linuxbrew/share/aclocal
OBJC: /usr/bin/gcc
PATH: /home/huahang/.linuxbrew/opt/sqlite/bin:/home/huahang/.jenv/bin:/home/huahang/.linuxbrew/bin:/home/huahang/Applications/pidcat:/home/huahang/Applications/android-ndk-r8e:/home/huahang/Applications/android-sdk/platform-tools:/home/huahang/Applications/android-sdk/tools:/home/huahang/Applications/phabricator/arcanist/bin:/home/huahang/Applications/hadoop-2.0.0-mdh1.2.0-SNAPSHOT/bin:/zfs/Applications/jdk1.6.0_45/bin:/home/huahang/bin:/home/huahang/.jenv/bin:/home/huahang/.jenv/candidates/scala/current/bin:/home/huahang/.jenv/candidates/sbt/current/bin:/home/huahang/.jenv/candidates/maven/current/bin:/home/huahang/.jenv/candidates/java/current/bin:/home/huahang/.jenv/candidates/gradle/current/bin:/home/huahang/Applications/pidcat:/home/huahang/Applications/android-ndk-r8e:/home/huahang/Applications/android-sdk/platform-tools:/home/huahang/Applications/android-sdk/tools:/home/huahang/Applications/phabricator/arcanist/bin:/home/huahang/Applications/hadoop-2.0.0-mdh1.2.0-SNAPSHOT/bin:/zfs/Applications/jdk1.6.0_45/bin:/home/huahang/bin:/home/huahang/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/huahang/.linuxbrew/Library/Contributions/cmd

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.