Skip to content

Instantly share code, notes, and snippets.

View emiltin's full-sized avatar

Emil Tin emiltin

  • City of Copenhagen
  • Denmark
  • 09:57 (UTC +02:00)
View GitHub Profile
/usr/lib$ gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/Users/emiltin/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... no
~/MacRuby-trunk$ rake jobs=2 --trace
(in /Users/emiltin/MacRuby-trunk)
** Invoke default (first_time)
** Invoke all (first_time)
** Invoke macruby (first_time)
** Invoke macruby:build (first_time)
** Invoke macruby:dylib (first_time)
** Invoke rbconfig (first_time)
** Invoke miniruby (first_time)
** Invoke files (first_time)
@emiltin
emiltin / brew fails to build gcc 4.6
Created September 20, 2011 12:08
homebrew-alt fails to build gcc 4.6
/usr/bin/curl -f#LA Homebrew 0.8 (Ruby 1.8.7-249; Mac OS X 10.7.1) https://github.com/adamv/homebrew-alt/raw/master/duplicates/gcc.rb -o /Users/emil/Library/Caches/Homebrew/Formula/gcc.rb
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
0.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
~/osrm$ scons --stxxl=../stxxl-1.3.1/ --cxx=/usr/local/bin/g++-4.6
scons: Reading SConscript files ...
Using user supplied C++ Compiler: /usr/local/bin/g++-4.6
STXXLROOT = ../stxxl-1.3.1/
Compiling is experimental on Mac
Checking for C header file omp.h... no
Compiler does not support OpenMP. Exiting
Continuing because we are on Mac. This might be fatal.
Checking for C++ library xml2... yes
Checking for C++ library z... yes
#Sconstruct
import os
import os.path
import sys
from subprocess import call
def CheckBoost(context, version):
# Boost versions are in format major.minor.subminor
v_arr = version.split(".")
require 'formula'
class Osrm < Formula
#url 'http://downloads.sourceforge.net/project/routed/osrm_0.2.tar.gz'
#md5 '4e2696e0eab9b90ca17fae183061e766'
head 'https://github.com/DennisOSRM/Project-OSRM', :using => :git
homepage 'http://project-osrm.org'
depends_on 'stxxl'
depends_on 'google-sparsehash'
~/osm$ g++-4.6 -v
Using built-in specs.
COLLECT_GCC=g++-4.6
COLLECT_LTO_WRAPPER=/usr/local/Cellar/gcc/4.6.0/gcc/libexec/gcc/x86_64-apple-darwin11.1.0/4.6.0/lto-wrapper
Target: x86_64-apple-darwin11.1.0
Configured with: ../configure --enable-languages=c,c++ --prefix=/usr/local/Cellar/gcc/4.6.0/gcc --datarootdir=/usr/local/Cellar/gcc/4.6.0/share --bindir=/usr/local/Cellar/gcc/4.6.0/bin --program-suffix=-4.6 --with-gmp=/usr/local/Cellar/gmp/5.0.2 --with-mpfr=/usr/local/Cellar/mpfr/3.0.1 --with-mpc=/usr/local/Cellar/libmpc/0.9 --with-system-zlib --enable-stage1-checking --enable-plugin --disable-lto --disable-nls
Thread model: posix
gcc version 4.6.0 (GCC)
~/osm$ brew install --use-gcc --enable-cxx https://raw.github.com/emiltin/homebrew-alt/master/duplicates/gcc.rb
######################################################################## 100.0%
==> Downloading ftp://ftp.gnu.org/gnu/gcc/gcc-4.6.0/gcc-4.6.0.tar.bz2
File already downloaded in /Users/emil/Library/Caches/Homebrew
==> --enable-fully-dynamic-string
==> ../configure --enable-languages=c,c++ --prefix=/usr/local/Cellar/gcc/4.6.0/gcc --datarootdir=/usr/local/Cellar/gcc/4.6.0/share --bindir=
==> make bootstrap
echo stage3 > stage_final
mkdir build-x86_64-apple-darwin11.1.0
mkdir build-x86_64-apple-darwin11.1.0
if i create a new rails 3 app and define this in my application controller:
def index
logger.error 'xxxxxx logger'
render :text => 'logger'
end
then visiting the root url of my heroku app writes this to the log file:
2011-11-13T09:24:46+00:00 app[web.1]: Started GET "/" for 212.60.120.210 at 2011-11-13 09:24:46 +0000
Scenario Outline: Implied oneways
Given the defaults
#ways must be constructed and preprocess as a whole beforehand...
And the ways
| highway | junction |
| motorway | |
| motorway_link | |
| trunk | |
| trunk_link | |