masa@masa-VirtualBox:~$ gem list
de.oddb (2.0.0) rclconf (1.0.0) masa@masa-VirtualBox:~$ oddbd /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb.rb:4: warning: already initialized constant VERSION /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb.rb:8:in `read': No such file or directory - /var/lib/gems/1.8/gems/de.oddb-2.0.0/.git/refs/heads/master (Errno::ENOENT)
from /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb.rb:8 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb/config.rb:5 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/lib/gems/1.8/gems/de.oddb-2.0.0/bin/oddbd:7 from /var/lib/gems/1.8/bin/oddbd:19:in `load' from /var/lib/gems/1.8/bin/oddbd:19
masa@masa-VirtualBox:~$
masa@masa-VirtualBox:~$ sudo mkdir /var/lib/gems/1.8/gems/de.oddb-2.0.0/.git/ masa@masa-VirtualBox:~$ sudo mkdir /var/lib/gems/1.8/gems/de.oddb-2.0.0/.git/refs/ masa@masa-VirtualBox:~$ sudo mkdir /var/lib/gems/1.8/gems/de.oddb-2.0.0/.git/refs/heads/ masa@masa-VirtualBox:~$ sudo vim /var/lib/gems/1.8/gems/de.oddb-2.0.0/.git/refs/heads/master 4c244cee62c31edf569c6c4dd4b0af25db35fff6
masa@masa-VirtualBox:~$ sudo gem install facets -v=1.8.54 masa@masa-VirtualBox:~$ sudo gem install odba masa@masa-VirtualBox:~$ sudo gem install pg -v=0.9.0 Building native extensions. This could take a while... ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /var/lib/gems/1.8/gems/pg-0.9.0 for inspection. Results logged to /var/lib/gems/1.8/gems/pg-0.9.0/ext/gem_make.out
masa@masa-VirtualBox:~$ sudo apt-get install ruby1.8-dev masa@masa-VirtualBox:~$ sudo apt-get install libpq-dev masa@masa-VirtualBox:~$ sudo gem install pg -v=0.9.0
masa@masa-VirtualBox:~$ sudo gem install dbd-pg Successfully installed deprecated-2.0.1 Successfully installed dbi-0.4.5 Successfully installed dbd-pg-0.3.9
masa@masa-VirtualBox:~$ oddbd /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb.rb:4: warning: already initialized constant VERSION /var/lib/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:300:in `load_driver': Unable to load driver 'pg' (underlying error: wrong constant name pg) (DBI::InterfaceError)
from /home/masa/bin/lib/ruby/1.8/monitor.rb:242:in `synchronize' from /var/lib/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:242:in `load_driver' from /var/lib/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:160:in `_get_full_driver' from /var/lib/gems/1.8/gems/dbi-0.4.5/lib/dbi.rb:145:in `connect' from /var/lib/gems/1.8/gems/odba-1.0.0/lib/odba/connection_pool.rb:60:in `_connect' from /var/lib/gems/1.8/gems/odba-1.0.0/lib/odba/connection_pool.rb:59:in `times' from /var/lib/gems/1.8/gems/odba-1.0.0/lib/odba/connection_pool.rb:59:in `_connect' from /var/lib/gems/1.8/gems/odba-1.0.0/lib/odba/connection_pool.rb:56:in `connect' from /var/lib/gems/1.8/gems/odba-1.0.0/lib/odba/connection_pool.rb:56:in `synchronize' from /var/lib/gems/1.8/gems/odba-1.0.0/lib/odba/connection_pool.rb:56:in `connect' from /var/lib/gems/1.8/gems/odba-1.0.0/lib/odba/connection_pool.rb:19:in `initialize' from /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb/persistence/odba.rb:29:in `new' from /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb/persistence/odba.rb:29 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/lib/gems/1.8/gems/de.oddb-2.0.0/lib/oddb/persistence.rb:4 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' from /var/lib/gems/1.8/gems/de.oddb-2.0.0/bin/oddbd:10 from /var/lib/gems/1.8/bin/oddbd:19:in `load' from /var/lib/gems/1.8/bin/oddbd:19