Skip to content

Instantly share code, notes, and snippets.

@puls
Created August 22, 2011 05:32
Show Gist options
  • Select an option

  • Save puls/1161734 to your computer and use it in GitHub Desktop.

Select an option

Save puls/1161734 to your computer and use it in GitHub Desktop.
dryghost:Source puls$ git clone git://github.com/pivotal/cimonitor.git pivotal_cimonitor
Cloning into pivotal_cimonitor...
remote: Counting objects: 3568, done.
remote: Compressing objects: 100% (1593/1593), done.
remote: Total 3568 (delta 2197), reused 3131 (delta 1831)
Receiving objects: 100% (3568/3568), 40.02 MiB | 427 KiB/s, done.
Resolving deltas: 100% (2197/2197), done.
dryghost:Source puls$ cd pivotal_cimonitor
dryghost:pivotal_cimonitor puls (master)$ bundle install
-bash: bundle: command not found
dryghost:pivotal_cimonitor puls (master)$ sudo gem install bundler
Password:
Successfully installed bundler-1.0.18
1 gem installed
Installing ri documentation for bundler-1.0.18...
Installing RDoc documentation for bundler-1.0.18...
dryghost:pivotal_cimonitor puls (master)$ bundle install
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing abstract (1.0.0) WARNING: abstract-1.0.0 has an invalid nil value for @cert_chain
Installing activesupport (3.0.3)
Installing builder (2.1.2) WARNING: builder-2.1.2 has an invalid nil value for @cert_chain
Installing i18n (0.5.0)
Installing activemodel (3.0.3)
Installing erubis (2.6.6)
Installing rack (1.2.1)
Installing rack-mount (0.6.13)
Installing rack-test (0.5.6)
Installing tzinfo (0.3.23)
Installing actionpack (3.0.3)
Installing mime-types (1.16)
Installing polyglot (0.3.1)
Installing treetop (1.4.9)
Installing mail (2.2.12)
Installing actionmailer (3.0.3)
Installing arel (2.0.6)
Installing activerecord (3.0.3)
Installing activeresource (3.0.3)
Installing acts_as_taggable_on_steroids (1.2)
Installing crack (0.1.8)
Installing httparty (0.7.8)
Installing json (1.4.6) with native extensions
Installing nokogiri (1.4.4) with native extensions
Installing uuidtools (2.1.2)
Installing aws-sdk (1.0.4)
Using bundler (1.0.18)
Installing bunny (0.6.0)
Installing highline (1.6.1)
Installing net-ssh (2.1.4)
Installing net-scp (1.0.4)
Installing net-sftp (2.0.5)
Installing net-ssh-gateway (1.1.0)
Installing capistrano (2.6.0)
Installing capistrano-ext (1.2.1)
Installing extlib (0.9.15)
Installing mixlib-log (1.3.0)
Installing mixlib-authentication (1.1.4)
Installing mixlib-cli (1.2.0)
Installing mixlib-config (1.1.2)
Installing moneta (0.6.0)
Installing systemu (2.2.0)
Installing yajl-ruby (0.8.2) with native extensions
Installing ohai (0.6.4)
Installing rest-client (1.6.1)
Installing chef (0.9.12)
Installing configuration (1.2.0)
Installing daemons (1.1.0)
Installing delayed_job (2.1.2)
Installing diff-lcs (1.1.2)
Installing dynamic_form (1.1.3)
Installing excon (0.6.3)
Installing fastthread (1.0.7) with native extensions
Installing formatador (0.1.3)
Installing ruby-hmac (0.4.0)
Installing fog (0.7.2)
Installing gem_plugin (0.2.3)
Installing headless (0.1.0)
Installing json_pure (1.4.6)
Installing launchy (0.3.7)
Installing heroku (1.14.8)
Installing httpauth (0.1)
Installing rspec-core (2.2.1)
Installing rspec-expectations (2.2.0)
Installing rspec-mocks (2.2.0)
Installing rspec (2.2.0)
Installing selenium-client (1.2.18)
Installing selenium-rc (2.2.4)
Installing jasmine (1.0.1.1)
Installing linecache (0.43) with native extensions WARNING: linecache-0.43 has an invalid nil value for @cert_chain
Installing mysql2 (0.2.7) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:552:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
Gem files will remain installed in /Users/puls/.bundler/tmp/12187/gems/mysql2-0.2.7 for inspection.
Results logged to /Users/puls/.bundler/tmp/12187/gems/mysql2-0.2.7/ext/mysql2/gem_make.out
from /Library/Ruby/Site/1.8/rubygems/installer.rb:505:in `each'
from /Library/Ruby/Site/1.8/rubygems/installer.rb:505:in `build_extensions'
from /Library/Ruby/Site/1.8/rubygems/installer.rb:180:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/source.rb:101:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/source.rb:91:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `send'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/bin/bundle:13
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19
dryghost:pivotal_cimonitor puls (master)$ brew update
remote: Counting objects: 221, done.
remote: Compressing objects: 100% (94/94), done.
remote: Total 188 (delta 140), reused 138 (delta 94)
Receiving objects: 100% (188/188), 24.89 KiB, done.
Resolving deltas: 100% (140/140), completed with 29 local objects.
From http://github.com/mxcl/homebrew
* branch master -> FETCH_HEAD
Updated Homebrew from f993ddc5 to feba62bc.
==> The following formulae are new:
avra dc3dd ddd minised robodoc
==> The following formulae were removed:
sleepnow
==> The following formulae were updated:
app-engine-java-sdk cmigemo gdbm memcached-php vsftpd
arm csv-fix gradle mplayer wget
asciidoc dotless gromacs pianobar xpdf
autojump duplicity highlight qemu
byobu emacs imlib2 swi-prolog
clojure-contrib ffmpeg jenkins* vpnc
dryghost:pivotal_cimonitor puls (master)$ brew install mysql
Also installing dependencies: cmake, readline, pidof
==> Downloading http://www.cmake.org/files/v2.8/cmake-2.8.5.tar.gz
######################################################################## 100.0%
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file Modules/FindQt4.cmake
==> ./bootstrap --prefix=/usr/local/Cellar/cmake/2.8.5 --system-libs --no-system-libarchive --datadir=/share/cmake --d
==> make
==> make install
/usr/local/Cellar/cmake/2.8.5: 608 files, 28M, built in 107 seconds
==> Downloading ftp://ftp.cwru.edu/pub/bash/readline-6.2.tar.gz
######################################################################## 100.0%
######################################################################## 100.0%==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%==> Patching
patching file vi_mode.c
patching file callback.c
==> ./configure --prefix=/usr/local/Cellar/readline/6.2.1 --mandir=/usr/local/Cellar/readline/6.2.1/share/man --infodi
==> make install
==> Caveats
This formula is keg-only, so it was not symlinked into /usr/local.
OS X provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need
to add its lib & include paths to your build variables:
LDFLAGS: -L/usr/local/Cellar/readline/6.2.1/lib
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.1/include
==> Summary
/usr/local/Cellar/readline/6.2.1: 32 files, 1.9M, built in 14 seconds
==> Downloading http://www.nightproductions.net/downloads/pidof_source.tar.gz
######################################################################## 100.0%
==> make all
==> /usr/bin/gzip pidof.1
/usr/local/Cellar/pidof/0.1.4: 2 files, 20K, built in 2 seconds
==> Downloading http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.14.tar.gz
######################################################################## 100.0%
==> Downloading patches
==> Patching
patching file scripts/mysqld_safe.sh
Hunk #1 succeeded at 555 (offset 172 lines).
patching file scripts/mysql_config.sh
Hunk #1 succeeded at 137 (offset 5 lines).
patching file configure.cmake
==> cmake . -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mysql/5.5.14 -DMYSQL_DATADIR=/usr/local/var/mysql -DINSTALL_MANDI
==> make
==> make install
==> Caveats
Set up databases to run AS YOUR USER ACCOUNT with:
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
To set up base tables in another folder, or use a different user to run
mysqld, view the help for mysqld_install_db:
mysql_install_db --help
and view the MySQL documentation:
* http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html
* http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html
To run as, for instance, user "mysql", you may need to `sudo`:
sudo mysql_install_db ...options...
Start mysqld manually with:
mysql.server start
Note: if this fails, you probably forgot to run the first two steps up above
A "/etc/my.cnf" from another install may interfere with a Homebrew-built
server starting up correctly.
To connect:
mysql -uroot
To launch on startup:
* if this is your first install:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/Cellar/mysql/5.5.14/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
* if this is an upgrade and you already have the com.mysql.mysqld.plist loaded:
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
cp /usr/local/Cellar/mysql/5.5.14/com.mysql.mysqld.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
You may also need to edit the plist to use the correct "UserName".
Warning: m4 macros were installed to "share/aclocal".
Homebrew does not append "/usr/local/share/aclocal"
to "/usr/share/aclocal/dirlist". If an autoconf script you use
requires these m4 macros, you'll need to add this path manually.
==> Summary
/usr/local/Cellar/mysql/5.5.14: 6274 files, 219M, built in 2.6 minutes
dryghost:pivotal_cimonitor puls (master)$ bundle install
Fetching source index for http://rubygems.org/
Enter your password to install the bundled RubyGems to your system:
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.3)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.3)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.0.3)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.12)
Using actionmailer (3.0.3)
Using arel (2.0.6)
Using activerecord (3.0.3)
Using activeresource (3.0.3)
Using acts_as_taggable_on_steroids (1.2)
Using crack (0.1.8)
Using httparty (0.7.8)
Using json (1.4.6)
Using nokogiri (1.4.4)
Using uuidtools (2.1.2)
Using aws-sdk (1.0.4)
Using bundler (1.0.18)
Using bunny (0.6.0)
Using highline (1.6.1)
Using net-ssh (2.1.4)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.1.0)
Using capistrano (2.6.0)
Using capistrano-ext (1.2.1)
Using extlib (0.9.15)
Using mixlib-log (1.3.0)
Using mixlib-authentication (1.1.4)
Using mixlib-cli (1.2.0)
Using mixlib-config (1.1.2)
Using moneta (0.6.0)
Using systemu (2.2.0)
Using yajl-ruby (0.8.2)
Using ohai (0.6.4)
Using rest-client (1.6.1)
Using chef (0.9.12)
Using configuration (1.2.0)
Using daemons (1.1.0)
Using delayed_job (2.1.2)
Using diff-lcs (1.1.2)
Using dynamic_form (1.1.3)
Using excon (0.6.3)
Using fastthread (1.0.7)
Using formatador (0.1.3)
Using ruby-hmac (0.4.0)
Using fog (0.7.2)
Using gem_plugin (0.2.3)
Using headless (0.1.0)
Using json_pure (1.4.6)
Using launchy (0.3.7)
Using heroku (1.14.8)
Using httpauth (0.1)
Using rspec-core (2.2.1)
Using rspec-expectations (2.2.0)
Using rspec-mocks (2.2.0)
Using rspec (2.2.0)
Using selenium-client (1.2.18)
Using selenium-rc (2.2.4)
Using jasmine (1.0.1.1)
Using linecache (0.43)
Installing mysql2 (0.2.7) with native extensions
Installing pg (0.10.0) with native extensions
Installing thor (0.14.6)
Installing railties (3.0.3)
Installing rails (3.0.3)
Installing rspec-rails (2.2.0)
Installing ruby-debug-base (0.10.4) with native extensions
Installing ruby-debug-ide (0.4.16) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:552:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby mkrf_conf.rb
Gem files will remain installed in /Users/puls/.bundler/tmp/40606/gems/ruby-debug-ide-0.4.16 for inspection.
Results logged to /Users/puls/.bundler/tmp/40606/gems/ruby-debug-ide-0.4.16/ext/gem_make.out
from /Library/Ruby/Site/1.8/rubygems/installer.rb:505:in `each'
from /Library/Ruby/Site/1.8/rubygems/installer.rb:505:in `build_extensions'
from /Library/Ruby/Site/1.8/rubygems/installer.rb:180:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/source.rb:101:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/source.rb:91:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `send'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.18/bin/bundle:13
from /usr/bin/bundle:19:in `load'
from /usr/bin/bundle:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment