Can't connect to Sybase

3 views
Skip to first unread message

Roman Ilin

unread,
Jun 15, 2007, 4:46:27 AM6/15/07
to rubyonra...@googlegroups.com
I followed this tutorial for enable Sybase with Rails
http://wiki.rubyonrails.com/rails/pages/SybaseASEonWin32

and get this error.

RuntimeError in Catalog itemsController#index

ctx_init failed

RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace

c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybsql.rb:251:in `create'
c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/sybsql.rb:251:in `initialize'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`new'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/sybase_adapter.rb:46:in
`sybase_connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
`send'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in
`connection_without_query_cache='
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in
`connection='
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in
`retrieve_connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection'
c:/ruby/lib/ruby/gems/1.8/gems/composite_primary_keys-0.8.6/lib/composite_primary_keys/base.rb:238:in
`columns'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:257:in
`column_for'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:116:in
`calculate'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/calculations.rb:45:in
`count'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/pagination.rb:173:in
`count_collection_for_pagination'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/pagination.rb:197:in
`paginator_and_collection_for'
c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/pagination.rb:130:in
`paginate'
#{RAILS_ROOT}/app/controllers/catalog_items_controller.rb:15:in `list'
#{RAILS_ROOT}/app/controllers/catalog_items_controller.rb:6:in `index'


I have tried to scaffold one table. It don't work.
It seems that I don't get InitialContext.
I use rails 1.2.3, ruby 1.8.5

Can someone help, please?

Roman

--
Posted via http://www.ruby-forum.com/.

Roman Ilin

unread,
Jun 15, 2007, 5:39:37 AM6/15/07
to rubyonra...@googlegroups.com
Sorry.
My Sybase has false config.
It works.

Sushmi Sushmi

unread,
May 14, 2010, 4:38:00 PM5/14/10
to rubyonra...@googlegroups.com
Roman Ilin wrote:
> Sorry.
> My Sybase has false config.
> It works.
>
> Roman


Hi ,

Can I know how to did you change your config file ?

b/c I am getting same error when I run the script .
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply all
Reply to author
Forward
0 new messages