Hi Ivan,
I started from scratch on my Mac by deleting my existing Sedna installation and
all the Ruby gems.
1/ I installed sedna-3.3.55-bin-darwin-i386.sh. Started se_gov, created test DB
using se_cdb, start the test DB using se_sm. I can connect to the test DB using
se_term.
2/ I installed Rolf's Ruby gem for sedna ($sudo gem install sedna). The install
went without error.
3/ I run some ruby scripts using irb (interactive ruby).
---------
>> require 'sedna'
=> true
>> c={ :database => 'test', :host => 'localhost'}
=> {:database=>"test", :host=>"localhost"}
>> s=Sedna.connect c
=> #<Sedna:0x10157b898>
>> s.connected?
NoMethodError: undefined method `connected?' for #<Sedna:0x10157b898>
from (irb):5
--------------
So this is strange because the Sedna class is missing a method. Is it a problem
with the local DB? Try different server.
--------------------
>> c={ :database => 'test', :host => '192.168.1.192'}
=> {:database=>"test", :host=>"192.168.1.192"}
>> s=Sedna.connect c
=> #<Sedna:0x10157b898>
>> s.connected?
NoMethodError: undefined method `connected?' for #<Sedna:0x10157b898>
from (irb):8
>> ^D
-------------------
That doesn't seem to be the problem.
So this where Rolf and I are at. It works on his Mac and not on mine. Very
annoying.
Regards,
Spencer
On Jun 1, 2010, at 17:26, Ivan Shcheklein wrote:
> I have the same Ruby. I've tried to install driver and it works fine for me.
> Here what I've done:
>
> 1. Download sedna-3.3.55 sources for Darwin and upack them somewhere in
> temporary dir.
>
> 2. Build x64 C driver:
>
> <ucontext.h -> sys/ucontext.h in u.h>
> cd <path-to-sedna-3.3.55>/driver/c
> make
>
> 3. Install Ruby driver with gem:
>
> gem install sedna -- --with-sedna-dir=<path-to-sedna-3.3.55>
>
> If you still have problems, please, send us output of the commands above and
> example of Ruby code which doesn't work for you.
>
> On Wed, Jun 2, 2010 at 12:43 AM, Spencer Cheng <[email protected]> wrote:
>
>> Hi Ivan,
>>
>> I don't use Rail so the S/W lineup is pretty simple. Ruby is Apple supplied
>> version I believe. Thanks.
>>
>> Regards,
>> Spencer
>>
>> ------------
>> spen...@tsangpo:sedna$ type ruby
>> ruby is hashed (/usr/bin/ruby)
>> spen...@tsangpo:sedna$ ruby -v
>> ruby 1.8.7 (2009-06-08 patchlevel 173) [universal-darwin10.0]
>> spen...@tsangpo:sedna$ gem list
>>
>> *** LOCAL GEMS ***
>>
>> columnize (0.3.1)
>> linecache (0.43)
>> macaddr (1.0.0)
>> rake (0.8.7)
>> rdoc (2.5.8)
>> ruby-debug (0.10.3)
>> ruby-debug-base (0.10.3)
>> rubygems-update (1.3.7)
>> sedna (0.6.0)
>> uuid (2.3.1)
>> xmpp4r (0.5)
>> ---------------
>>
>> On Jun 1, 2010, at 16:18, Ivan Shcheklein wrote:
>>
>>> Ok. What versions of Ruby, Rubygems, Rails do you use on Mac? Did you
>> build
>>> them from sources?
>>>
>>> I'll to install them on my Mac OS.
>>
>>
------------------------------------------------------------------------------
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion