Skip to content

Instantly share code, notes, and snippets.

@biow0lf
biow0lf / cmake build
Created October 21, 2010 16:42
failed cmake build
Last login: Thu Oct 21 18:50:10 on ttys006
MacBook-Pro-15-Igor-Zubkov:~ biow0lf$ brew install -v cmake
==> Build Environment
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -w -pipe
CXXFLAGS: -O3 -march=core2 -w -pipe
MAKEFLAGS: -j2
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.2.tar.gz
@biow0lf
biow0lf / gettext.log
Created March 5, 2011 15:32
brew install gettext
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/cc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I./libcroco -march=core2 -w -pipe -I/usr/include/libxml2 -O3 -c -o tempname.lo tempname.c
/usr/bin/cc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I./libcroco -march=core2 -w -pipe -I/usr/include/libxml2 -O3 -c stpncpy.c -fno-common -DPIC -o .libs/stpncpy.o
stpncpy.c:33: error: expected declaration specifiers or '...' before numeric constant
stpncpy.c:33: error: expected ')' before '!=' token
stpncpy.c:33: error: expected ')' before '?' token
make[4]: *** [stpncpy.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
/usr/bin/cc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1
@biow0lf
biow0lf / ruby-enterprise-edition.log
Created March 5, 2011 15:36
brew install ruby-enterprise-edition
/usr/bin/cc -g -O2 -O3 -march=core2 -w -pipe -pipe -fno-common -DRUBY_EXPORT -I. -I. -I/usr/local/Cellar/readline/6.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c main.c
/usr/bin/cc -g -O2 -O3 -march=core2 -w -pipe -pipe -fno-common -DRUBY_EXPORT -I. -I. -I/usr/local/Cellar/readline/6.1/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -c dmydln.c
ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o enum.o enumerator.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o pack.o parse.o pointerset.o process.o prec.o random.o range.o re.o regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o variable.o version.o dmyext.o
/usr/bin/cc -g -O2 -O3 -march=core2 -w -pipe -pipe -fno-common -DRUBY_EXPORT -L. -L/usr/local/Cellar/readline/6.1/lib main.o dmydln.o libruby-static.a -L/opt/local/lib -Wl,-rpath,/usr/local/Cellar/ruby-enterprise-edition/2011.03/lib -L/usr/local/Cellar/ruby-enterprise-edition/2011.03/lib -lsystem_allocator -ldl -lobjc
@biow0lf
biow0lf / spidermonkey.log
Created March 5, 2011 15:55
brew install spidermonkey
checking for tm_zone tm_gmtoff in struct tm... yes
checking for readline in -lreadline... no
configure: error: No system readline library found.
Exit status: 1
http://github.com/mxcl/homebrew/blob/master/Library/Formula/spidermonkey.rb#L55
==> Environment
HOMEBREW_VERSION: 0.7.1
HEAD: 857678439f00f7c2311275ca4a0e8d0fd119c236
@biow0lf
biow0lf / gist:858541
Created March 7, 2011 14:03
ruby enterprise edition
diff --git a/Library/Formula/ruby-enterprise-edition.rb b/Library/Formula/ruby-enterprise-edition.rb
index 593fab2..6868850 100644
--- a/Library/Formula/ruby-enterprise-edition.rb
+++ b/Library/Formula/ruby-enterprise-edition.rb
@@ -17,6 +17,7 @@ class RubyEnterpriseEdition <Formula
readline = Formula.factory('readline').prefix
fails_with_llvm "fails with LLVM"
+ ENV.gcc_4_2 if MACOS_VERSION == 10.7
args = ['./installer', "--auto", prefix, '--no-tcmalloc']
@biow0lf
biow0lf / gettext-0.17-lion.patch
Created March 11, 2011 21:46
patch for gettext compile under Mac OSX 10.7 (Lion) (doesn't tested well)
diff -ur gettext-0.17.orig/gettext-tools/gnulib-lib/stpncpy.c gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c
--- gettext-0.17.orig/gettext-tools/gnulib-lib/stpncpy.c 2007-10-07 23:29:35.000000000 +0300
+++ gettext-0.17/gettext-tools/gnulib-lib/stpncpy.c 2011-03-11 23:34:40.000000000 +0200
@@ -24,7 +24,7 @@
#include <string.h>
#ifndef weak_alias
-# define __stpncpy stpncpy
+//# define __stpncpy stpncpy
#endif
@biow0lf
biow0lf / gist:1025699
Created June 14, 2011 19:46
bundle outdated fail with undefined method
$ bundle outdated
Updating git://github.com/jeroenvandijk/remarkable.git
Fetching dependency information from the API at http://rubygems.org/......
Outdated gems included in the bundle:
* builder (3.0.0 > 2.1.2)
* i18n (0.6.0 > 0.5.0)
* erubis (2.7.0 > 2.6.6)
* rack (1.3.0 > 1.2.3)
* rack-mount (0.8.1 > 0.6.14)
* rack-test (0.6.0 > 0.5.7)
$ cat Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.8'
gem 'jquery-rails'
gem 'sqlite3'
gem 'devise'
gem 'aws-ses', :require => 'aws/ses'
gem 'kaminari'
gem 'delayed_job'
@biow0lf
biow0lf / gist:1032174
Created June 17, 2011 19:56
current bundler master broken outdated
$ bundle outdated
Updating git://github.com/jeroenvandijk/remarkable.git
Fetching dependency information from the API at http://rubygems.org/......
Outdated gems included in the bundle:
* activesupport (3.0.9 > 3.0.8)
* builder (3.0.0 > 2.1.2)
* i18n (0.6.0 > 0.5.0)
* activemodel (3.0.9 > 3.0.8)
* erubis (2.7.0 > 2.6.6)
* rack (1.3.0 > 1.2.3)
@biow0lf
biow0lf / gist:1032191
Created June 17, 2011 20:02
bundler and ruby 1.9.2
$ rvm 1.8.7 gem build bundler.gemspec
Successfully built RubyGem
Name: bundler
Version: 1.1.pre.5
File: bundler-1.1.pre.5.gem
$ rvm 1.9.2 gem build bundler.gemspec
ERROR: While executing gem ... (NoMethodError)
undefined method `write' for #<Syck::Emitter:0x007fe762172338>
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin11.0.0]