Skip to content

Instantly share code, notes, and snippets.

View luigi's full-sized avatar

Luigi Ray-Montañez luigi

  • Atlanta, GA
  • 04:15 (UTC -04:00)
View GitHub Profile
~ » pip install django-mediasync ~
Downloading/unpacking django-mediasync
Downloading django-mediasync-2.1.0.macosx-10.4-x86_64.tar.gz
Running setup.py egg_info for package django-mediasync
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or directory: '/Users/luigi/Developer/var/pip/build/django-mediasync/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
@luigi
luigi / gist:707405
Created November 19, 2010 23:28
MacVim Build failed
Ld build/MacVim.app/Contents/MacOS/MacVim normal x86_64
cd /tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-730064c/src/MacVim
setenv MACOSX_DEPLOYMENT_TARGET 10.6
/usr/bin/cc -arch x86_64 -isysroot /Xcode4/SDKs/MacOSX10.6.sdk -L/tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-730064c/src/MacVim/build -F/tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-730064c/src/MacVim/build -F/tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-730064c/src/MacVim -filelist /tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-730064c/src/MacVim/build/MacVim.build/Release/MacVim.build/Objects-normal/x86_64/MacVim.LinkFileList -mmacosx-version-min=10.6 /tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-730064c/src/MacVim/build/Release/PSMTabBarControl.framework/PSMTabBarControl -framework Cocoa -framework Carbon -o /tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-730064c/src/MacVim/build/MacVim.app/Contents/MacOS/MacVim
i686-apple-darwin10-gcc-4.2.1: /tmp/homebrew-macvim-v7.3-53-MPJq/b4winckler-macvim-73
*** Passenger ERROR (ext/common/ApplicationPool/../SpawnManager.h:219):
Could not start the spawn server: /Users/luigi/.rvm/wrappers/ruby-1.8.7-p302/: Permission denied (13)
[ pid=25165 thr=0x7fff7019dc20 file=ext/apache2/Hooks.cpp:859 time=2010-11-08 18:36:41.158 ]: Unexpected error in mod_passenger: Cannot spawn application '/Users/luigi/Dropbox/Sunlight/Source/streamcongress': The spawn server has exited unexpectedly.
Backtrace:
in 'virtual Passenger::SessionPtr Passenger::ApplicationPool::Client::get(const Passenger::PoolOptions&)' (Client.h:750)
in 'Passenger::SessionPtr Hooks::getSession(const Passenger::PoolOptions&)' (Hooks.cpp:296)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:565)
~ » rvm info ~
system:
system:
uname: "Darwin feather.sunlightfoundation.net 10.4.3 Darwin Kernel Version 10.4.3: Wed Sep 15 21:49:14 PDT 2010; root:xnu-1504.8.18~1/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
# in mongoid.yml, set autocreate_indexes: true so that the index is created dynamically
$ bin/rails c
Loading development environment (Rails 3.0.0)
irb(main):001:0> class Person
irb(main):002:1> include Mongoid::Document
irb(main):003:1> field :name
irb(main):004:1> field :email
irb(main):005:1> index :name
irb(main):006:1> end
Able to load bson_ext version 1.0.4, but >= 1.0.7 is required.
**Notice: C extension not loaded. This is required for optimum MongoDB Ruby driver performance.
You can install the extension as follows:
gem install bson_ext
If you continue to receive this message after installing, make sure that the
bson_ext gem is in your load path and that the bson_ext and mongo gems are of the same version.
*** Exception NoMethodError in PhusionPassenger::Rack::ApplicationSpawner (undefined method `put_binary' for #<BSON::ByteBuffer:0x103f4fa20>) (process 323):
# Create a new Twitter app on Twitter.com - I called mine "Utwilities" and plan to use it for everything
# Get the Consumer Key and Consumer Secret from the app page
oauth = Twitter::OAuth.new('consumer key', 'consumer secret')
request = oauth.request_token
request_token = request.token
# Go to: http://twitter.com/oauth/authorize?oauth_token=#{request_token}&oauth_callback=oob
# That will give you the PIN
access = oauth.authorize_from_request(request.token, request.secret, 'THE_PIN')
# Gemfile
source 'http://rubygems.org'
gem 'rails', '>= 3.0.0.rc2'
gem 'json'
gem 'nokogiri'
gem 'calais'
gem 'bson'
`pidof delayed_job.0 | xargs kill -9` if `pidof delayed_job.0` != `cat pids/delayed_job.0.pid`
`pidof delayed_job.1 | xargs kill -9` if `pidof delayed_job.1` != `cat pids/delayed_job.1.pid`
`pidof delayed_job.2 | xargs kill -9` if `pidof delayed_job.2` != `cat pids/delayed_job.2.pid`
check process delayed_job_0
with pidfile /home/poligraft/www/current/tmp/pids/delayed_job.0.pid
start program = "/bin/bash -c 'cd /home/poligraft/www/current/ && /usr/bin/env RAILS_ENV=production script/delayed_job start -i 0'"
as uid poligraft and gid poligraft
stop program = "/bin/bash -c 'cd /home/poligraft/www/current/ && /usr/bin/env RAILS_ENV=production script/delayed_job stop -i 0'"
as uid poligraft and gid poligraft
check process delayed_job_1
with pidfile /home/poligraft/www/current/tmp/pids/delayed_job.1.pid
start program = "/bin/bash -c 'cd /home/poligraft/www/current/ && /usr/bin/env RAILS_ENV=production script/delayed_job start -i 1'"