Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

can't install gource #22025

Closed
perfectfoolish opened this issue Aug 20, 2013 · 23 comments
Closed

can't install gource #22025

perfectfoolish opened this issue Aug 20, 2013 · 23 comments

Comments

@perfectfoolish
Copy link

I want to install gource, so i do as follows

$ brew --config

$ brew install gource

Result

lifuleitekiMacBook-Air:~ cow$ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 8acc7e6
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /Users/cow/.rvm/rubies/ruby-2.0.0-p247/bin/ruby
lifuleitekiMacBook-Air:~ cow$ brew install gource
==> Downloading http://gource.googlecode.com/files/gource-0.40.tar.gz
Already downloaded: /Library/Caches/Homebrew/gource-0.40.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gource/0.40 --disable-sdltest --without-x --disable-freetypetest

Alternatively, you may set the environment variables GLEW_CFLAGS
and GLEW_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

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

These open issues may also help:
#20100

what should i do?

@mistydemeo
Copy link
Member

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

Please read this guide and post the logs it requests. Thanks!

@warmwaffles
Copy link

I get the same error

11:44:50 warmwaffles@~ : brew install gource
==> Downloading http://gource.googlecode.com/files/gource-0.40.tar.gz
Already downloaded: /Library/Caches/Homebrew/gource-0.40.tar.gz
==> ./configure --prefix=/usr/local/Cellar/gource/0.40 --disable-sdltest --without-x --disable-freetypetest

Alternatively, you may set the environment variables GLEW_CFLAGS
and GLEW_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
11:45:03 warmwaffles@~ : brew doctor
Your system is ready to brew.
11:45:14 warmwaffles@~ : brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: cdf08aa79bd21fcd7b4a5d0d9b435671de477637
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: 8-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/warmwaffles/.rvm/rubies/ruby-2.0.0-p247/bin/ruby

@adamv
Copy link
Contributor

adamv commented Aug 21, 2013

Neither of you have provided the output of brew install -v gource in a gist, as the troubleshooting link asks for. We appreciate the error conformation, but really do need the information requested, and in a gist please: https://gist.github.com/

@warmwaffles
Copy link

@adamv
Copy link
Contributor

adamv commented Aug 21, 2013

Thanks!

@warmwaffles
Copy link

@adamv I didn't mean to be a dick but the wiki does not mention to brew install -v anywhere in the beginning. I understand it's supposed to be read all the way through, but many people will TL; DR. Just like I did.

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

The only thing that hints at verbose is HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install foo 2>&1

@warmwaffles
Copy link

I went ahead and added it to the wiki.

@adamv
Copy link
Contributor

adamv commented Aug 21, 2013

VERBOSE=1 is equivalent to -v.

@warmwaffles
Copy link

Right, but the wiki had in the very beginning:

If you create a ticket please paste your brew doctor and brew --config output into a Gist with your ticket.

Which is what I went to the wiki for, got the information I needed and left. I fixed that problem now.

@adamv
Copy link
Contributor

adamv commented Aug 21, 2013

Ah, thanks for improving the instructions.

@adamv
Copy link
Contributor

adamv commented Aug 23, 2013

This doesn't compile on 10.6.8 due to needing c++11, but it does get past the GLEW check on Snow Leopard.

@adamv
Copy link
Contributor

adamv commented Aug 30, 2013

I am getting an alternate build failure:

==> Installing gource
==> Downloading http://gource.googlecode.com/files/gource-0.40.tar.gz
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.7.5) http://gource.googlecode.com/files/gource-0.40.tar.gz -C 0 -o /usr/local/homebrew-cache/gource-0.40.tar.gz.incomplete
######################################################################## 100.0%
tar xf /usr/local/homebrew-cache/gource-0.40.tar.gz
==> ./configure --disable-dependency-tracking --prefix=/Users/vandenbe/brew/Cellar/gource/0.40 --disable-sdltest --without-x --disable-freetypetest
./configure --disable-dependency-tracking --prefix=/Users/vandenbe/brew/Cellar/gource/0.40 --disable-sdltest --without-x --disable-freetypetest
configure: WARNING: unrecognized options: --disable-sdltest, --disable-freetypetest
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin11.4.2
checking host system type... x86_64-apple-darwin11.4.2
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of c++... none
checking for timegm... yes
checking for unsetenv... yes
checking how to run the C++ preprocessor... c++ -E
checking for X... disabled
checking for a sed that does not truncate output... /Users/vandenbe/brew/Library/ENV/4.3/sed
checking for gcc... cc
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking dependency style of cc... none
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... -D_THREAD_SAFE
checking how to run the C preprocessor... cc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether we are using the Microsoft C compiler... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for GL/gl.h... yes
checking for OpenGL/gl.h... yes
checking for OpenGL library... -framework OpenGL
checking for GL/glu.h... yes
checking for OpenGL/glu.h... yes
checking for OpenGL Utility library... yes
checking for varargs GLU tesselator callback function type... no
checking for pkg-config... /Users/vandenbe/brew/opt/pkg-config/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FT2... yes
checking for PCRE... yes
checking for GLEW... yes
checking for SDL... yes
checking for IMG_LoadPNG_RW... yes
checking for IMG_LoadJPG_RW... yes
checking for boostlib >= 1.46... yes
checking whether the Boost::System library is available... yes
checking whether the Boost::Filesystem library is available... yes
configure: error: Could not link against -lGL !
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: cbd59978d360f5d010761b04f59aeafd57e67ec2
HOMEBREW_PREFIX: /Users/vandenbe/brew
CPU: quad-core 64-bit sandybridge
OS X: 10.7.5-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
X11: 2.6.5 => /usr/X11
==> ENV
HOMEBREW_CC: clang
CXXFLAGS: -I/Users/vandenbe/brew/include
MAKEFLAGS: -j4
CMAKE_PREFIX_PATH: /Users/vandenbe/brew
CMAKE_INCLUDE_PATH: /usr/X11/include/freetype2:/usr/include/libxml2:/usr/X11/include:/Users/vandenbe/brew/opt/python/Frameworks/Python.framework/Versions/2.7/Headers
CMAKE_LIBRARY_PATH: /usr/X11/lib
PKG_CONFIG_PATH: /Users/vandenbe/brew/opt/glew/lib/pkgconfig:/Users/vandenbe/brew/opt/pcre/lib/pkgconfig:/Users/vandenbe/brew/opt/sdl/lib/pkgconfig:/Users/vandenbe/brew/opt/sdl_image/lib/pkgconfig:/Users/vandenbe/brew/opt/python/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/X11/lib/pkgconfig:/usr/X11/share/pkgconfig
ACLOCAL_PATH: /Users/vandenbe/brew/share/aclocal
OBJC: cc
PATH: /Users/vandenbe/brew/opt/python/bin:/Users/vandenbe/brew/Library/ENV/4.3:/Users/vandenbe/brew/opt/pkg-config/bin:/Users/vandenbe/brew/opt/glew/bin:/Users/vandenbe/brew/opt/jpeg/bin:/Users/vandenbe/brew/opt/pcre/bin:/Users/vandenbe/brew/opt/sdl/bin:/usr/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin

@adamv
Copy link
Contributor

adamv commented Aug 30, 2013

All I can think of for the reported issue is that I have X11 installed and the reporter doesn't; though presumably getting past the GLEW issue would just land at these other ones.

@holys
Copy link

holys commented Sep 3, 2013

My trouble: Package 'glu', required by 'glew', not found https://gist.github.com/holys/6419592

brew --config

HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: a8123262ad0541fe4517efa00ddf27b6d2d8b346
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

@jacknagel
Copy link
Contributor

Can someone with this issue please gist the corresponding config.log? Thanks!

@warmwaffles
Copy link

@jacknagel Here ya go https://gist.github.com/6426391

@jacknagel
Copy link
Contributor

Okay, this appears to be the result of some incorrectness on the part of glew's pkgconfig file, which contains Requires: glu, but that doesn't seem to be true, and in fact it appears glew no longer requires glu. In any case, it makes it impossible to use glew via pkg-config, since we don't have anything that provides a "glu.pc" file.

If I apply this:

diff --git a/Library/Formula/glew.rb b/Library/Formula/glew.rb
index 32bdd87..7a59ab7 100644
--- a/Library/Formula/glew.rb
+++ b/Library/Formula/glew.rb
@@ -6,6 +6,7 @@ class Glew < Formula
   sha1 'f41b45ca4a630ad1d00b8b87c5f493781a380300'

   def install
+    inreplace 'glew.pc.in', 'Requires: glu', ''
     system "make", "GLEW_DEST=#{prefix}", "all"
     system "make", "GLEW_DEST=#{prefix}", "install.all"
   end

to glew.rb, and reinstall glew, then configuring gource succeeds.

I don't understand the dependencies (i.e. glew/glu/opengl/etc) well enough to suggest something to upstream, but perhaps it is enough for our purposes.

@marclennox
Copy link

@jacknagel This worked for me. Thank you!

@holys
Copy link

holys commented Sep 4, 2013

@jacknagel how to reinstall glew? build from source or brew install glew ?

@marclennox
Copy link

brew uninstall glew

Change the brew.rb

brew install glew
On Sep 4, 2013 10:19 AM, "David Chen" notifications@github.com wrote:

@jacknagel https://github.com/jacknagel how to reinstall glew? build
from source or brew install glew ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/22025#issuecomment-23792546
.

@holys
Copy link

holys commented Sep 4, 2013

@marclennox worked for me . Thank you ! btw, it seems your typo, not brew.rb but glew.rb. For 10.8, its location is /usr/local/Library/Formula/glew.rb

@marclennox
Copy link

Yes correct. Sorry. :)
On Sep 4, 2013 11:09 AM, "David Chen" notifications@github.com wrote:

@marclennox https://github.com/marclennox worked for me . Thank you !
btw, it seems your typo, not brew.rb but glew.rb. For 10.8, its location
is /usr/local/Library/Formula/glew.rb


Reply to this email directly or view it on GitHubhttps://github.com//issues/22025#issuecomment-23796899
.

handyman5 pushed a commit to handyman5/homebrew that referenced this issue Oct 7, 2013
glew adds "Requires: glu" to glew.pc, even though on fresh OS X installs
there will not be a glu.pc anywhere on the system (but the library
itself is in the system's OpenGL framework).

The requirement will actually be satisfied if XQuartz is installed, but
it's only a coincidence. So I'm removing this, which should allow gource
to build on systems without XQuartz. *shrug*

Fixes Homebrew#22025.
@orkoden
Copy link

orkoden commented May 20, 2014

I had gource fail to build with the same error message. Reinstalling glew fixed the problem for me.
brew reinstall glew

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants