Could not find gem 'zentest (>= 0, runtime)' in any of the gem sources

Trying to install ZenTest gem, and came upon this error after adding:

group :development, :test do
  gem 'rspec'
  gem 'rspec-rails'
  gem 'cucumber'
  gem 'cucumber-rails'
  gem 'webrat'
  gem 'nokogiri'
  gem 'zentest' #######
end
$ bundle install
Fetching source index for http://rubygems.org/
Could not find gem 'zentest (>= 0, runtime)' in any of the gem sources.

The solution was to realize that ZenTest actually capitalizes the gem name. I think this is the only gem that does this that I know of.

Read on →

pg_ext.bundle: [BUG] Segmentation fault

Trying to run the Rails 3 console using rvm and zsh and Mac OSX (Snow Leopard), and ran into the following problem:

$ rails console
~/.rvm/gems/ruby-1.9.2-p0@dealshare-backend/gems/pg-0.9.0/lib/pg_ext.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

zsh: abort      rails console

The 1.8.7 was confusing, since I was running 1.9.2 (as Rails 3 requires.) I merely removed 1.8.7, as I didn't need it anymore. This seemed to fix the problem, although it hardly seems optimal

Read on →

"file has vanished" error when running sudo port -v selfupdate

Got the following error when trying to initially run an update on Mac Ports after installing it:

~> sudo port -v selfupdate
Password:
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
receiving file list ... file has vanished: "/ports/sysutils/gcc_select/files/gcc33" (in release)
done
./
sysutils/coreutils/
sysutils/coreutils/files/
sysutils/count/
sysutils/count/files/
sysutils/createrepo/
sysutils/createrepo/files/
sysutils/createtorrent/
sysutils/createtorrent/files/
sysutils/cronolog-devel/
sysutils/cronolog/
sysutils/crswallow/
sysutils/cssh/
sysutils/cuetools/
sysutils/daemon/
sysutils/daemon/files/
sysutils/daemontools/
sysutils/daemontools/files/
sysutils/dc3dd/
sysutils/dcfldd/
sysutils/dcfldd/files/
sysutils/dd_rescue/
sysutils/dd_rescue/files/
sysutils/ddrescue/
sysutils/detach/
sysutils/detox/
sysutils/di/
sysutils/diffutils/
sysutils/diffutils/files/
sysutils/dirvish/
sysutils/dirvish/files/
sysutils/disktype/
sysutils/disktype/files/
sysutils/dmg2img/
sysutils/dmg2img/files/
sysutils/dnuos/
sysutils/doodle/
sysutils/dpkg/
sysutils/dpkg/files/
sysutils/dpkg/files/bsd/
sysutils/dtach/
sysutils/duff/
sysutils/duplicity/
sysutils/dvdrtools/
sysutils/dvdrtools/files/
sysutils/dvdrw-tools/
sysutils/dvdrw-tools/files/
sysutils/dvtm/
sysutils/dvtm/files/
sysutils/dwatch/
sysutils/dwatch/files/
sysutils/e2fsprogs/
sysutils/e2fsprogs/files/
sysutils/endian/
sysutils/erni/
sysutils/erni/files/
sysutils/etch/
sysutils/exec-wrapper/
sysutils/exec-wrapper/files/
sysutils/facter/
sysutils/faubackup/
sysutils/fcron/
sysutils/fcron/files/
sysutils/fdupes/
sysutils/fhist/
sysutils/file/
sysutils/file/files/
sysutils/findutils/
sysutils/foremost/
sysutils/freeradius/
sysutils/freeradius/files/
sysutils/fs-check/
sysutils/gcc_select/
sysutils/gcc_select/files/
file has vanished: "/ports/sysutils/gcc_select/files/.gcc33.G52TaJ" (in release)
IO error encountered -- skipping file deletion

sent 519 bytes  received 482625 bytes  138041.14 bytes/sec
total size is 26763626  speedup is 55.39
rsync warning: some files vanished before they could be transferred (code 24) at /SourceCache/rsync/rsync-40/rsync/main.c(1400) [generator=2.6.9]
shell command "/usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports" returned error 24
Error: Synchronization of the local ports tree failed doing rsync
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed

The resolution was to apparently just re-run the command. I installed something after trying to update the first time, but I don't think that should have affected anything. If anyone has additional insight into what causes this problem, please leave a comment below. Thanks!

Read on →

The command "cmd /c ""%VS100COMNTOOLS%vsvars32.bat" && sgen /nologo /assembly:"FOO" /force /type:BAR"" exited with code 255.

I got this when building a solution in Visual Studio. In order to figure out what the cryptic code 255 means, I ran this command at the command-line to see if there was additional output. I got:

"C:\Program was unexpected at this time.

It then printed my path and I noticed there were some entries with quotes. I removed the quotes in the path and tried again, and it worked. So the problem is that quotes cannot appear in your path to run the command as it is entered. I originally entered these in to appease Cygwin.

Read on →