Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Install Cassandra with Ruby 1.9.1 on Windows

To get it done is not easy. I spent a whole day to figure out the various compatibility issues along the way out.
Now there still might be potential issues, but it works by my rough test.
Step 1: Install Apache Cassandra
  You may know that the Ruby gem cassandra will do it for you.
  To me, I simply want to keep Cassandra independent from Ruby stuff, to ease the upgrade and administration.
  Refer to my blog "Setup Cassandra on Windows"
  (http://blog.csdn.net/goodxp/archive/2010/02/26/5327732.aspx) for details.
Step 2: Install Thrift (0.2.0)
  If you do "gem install cassandra", it should install thrift automatically (being a dependency).
  However, there is a compatibility issue on thrift with Ruby 1.9, so to fail Cassandra gem installation.
  It will be better to install thrift first and fix it before installing cassandra gem.
  Refer to my blog "fix thrift 0.2.0 installation with ruby 1.9.1"
  (http://blog.csdn.net/goodxp/archive/2010/02/28/5333145.aspx) for details.
 
Step 3: Install gem Cassandra
  This part is easy:
 
  $ gem install cassandra
  Do NOT do this: "$ cassandra_helper cassandra". It does not work.
  I did not dig deeper since I already have a working up-to-date version of Cassandra 0.5.0 installed.
  Switch to Cassandra bin folder and start cassandra server:
  $ cassandra -f
 
  Open another command console window:
 
  $ irb
  irb> require 'rubygems'
  irb> require 'cassandra'
 
  If you see a warning pop-up window asking for "msvcrt-ruby18.dll", do this:
 
  irb> quit
  $ gem uninstall json
 
  Don't worry, Ruby 1.9 has a good json support.
  Now run irb again as above, and then:
 
  irb> include Cassandra::Constants
  irb> db = Cassandra.new 'Keyspace1'
 


Ïà¹ØÎĵµ£º

Rails¡¢Ruby¡¢JAVAÇ°¾°±È½Ï

        ÔÚÂÛ̳Àï¿´ÁËdaquan198163ËùдµÄ¡¶³õѧRORµÄÒÉ»ó¡·ÕâƪÎÄÕ£¬robbinÔڻظ´ÖиøÁËÏêϸµÄ½â´ð£¬¿ÉÊÇ¿´Íê½â´ðÖ®ºó£¬ÎÒÒ²²úÉúÁËһЩÒÉ»ó£¬ÔÚ´ËÏëÎÊÎÊ¡£
        ÔÚrobbinËù¸ø³öµÄ½â´ðµ±ÖУ¬¸ü¶àµÄÊDzûÊörailsµÄºÃ´¦£¬È»¶ø´ó¼Ò¶¼ÖªµÀ£¬railsÖ»Ê ......

linux(ubuntu)ÏÂruby¿ª·¢»·¾³´î½¨

env setup
linux(ubuntu)ÏÂruby¿ª·¢»·¾³´î½¨£¬°üÀ¨Ò»Ð©³£¼ûÎÊÌâ½â¾ö
×¢Ò⣬±¾ÎÄÖ»ÊÇÎÒÔڴrubyѧϰ»·¾³Ê±µÄһЩ±Ê¼Ç£¬ÒòΪÊÇÓÃgedit±à¼­µÄ£¬ËùÒÔ¸ñʽ»¯²»ÊǺܺã¬ÁíÍ⣬ֻÊDZ¸Íü¶øÒÑ¡£
2010.1.19
1. install ruby
$ tar xzf ruby-1.8.7-p248.tar.gz
$ mv ruby-1.8.7-p248 ruby187
$ cd ruby187/
$ ./configure ......

21±¾¾­µäruby railsµç×ÓÊé


Beginning Ruby from Novice To Perfessional

Head First Rails

Agile Web Development with Rails 3rd Edition(new)

Agile Web Development with Rails 3rd Edition

Agile Web Development with Rails 3rd Editio ......

Fix Thrift 0.2.0 Installation with Ruby 1.9.1

When I try the command "gem install thrift" with Ruby 1.9.1, I got a compilation error with something related to a C function "strlcpy()".
Then I searched the web. It seems I am not alone and the community know it.
However I do not want to wait for official update, I want to ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ