Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing With JRuby #142

Closed
lbedner opened this issue Nov 14, 2013 · 2 comments
Closed

Installing With JRuby #142

lbedner opened this issue Nov 14, 2013 · 2 comments

Comments

@lbedner
Copy link

lbedner commented Nov 14, 2013

Hello.

I have successfully installed this gem under pure ruby (1.8.7) with no issues, and have been using it for quite some time:

gem install tiny_tds -v 0.6.0.rc1

Now, I am trying to install it with Jruby (1.7.7):

jruby -S gem install tiny_tds -v 0.6.0.rc1

And I'm getting the following error:


Building native extensions. This could take a while...
ERROR: Error installing tiny_tds:
ERROR: Failed to build gem native extension.

/home/lbedner/lib/jruby-1.7.7/bin/jruby extconf.rb

NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS.

(root) at /home/lbedner/lib/jruby-1.7.7/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1084
(root) at /home/lbedner/lib/jruby-1.7.7/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
(root) at extconf.rb:5

Gem files will remain installed in /home/lbedner/lib/jruby-1.7.7/lib/ruby/gems/shared/gems/tiny_tds-0.6.0.rc1 for inspection.
Results logged to /home/lbedner/lib/jruby-1.7.7/lib/ruby/gems/shared/gems/tiny_tds-0.6.0.rc1/ext/tiny_tds/gem_make.out


And of course, just pointing out that FreeTDS is already successfully installed.

Any thoughts?

Thanks.

@jh125486
Copy link

I don't believe TinyTds will work with jRuby since it requires C extensions to be compiled into a shared library.
With jRuby I use all Java libraries and it's been pretty painless.
For SQL Server I've used the built-in activerecord-jdbcmssql-adapter from activerecord-jdbc-adapter.

@metaskills
Copy link
Contributor

NotImplementedError: C extension support is not enable

Yea, I tested it some time ago with success on jRuby, but they really did not want to continue to support C extensions. I have an issue on the adapter to incorporate a JDBC connection mode since the adapter has abstract support for that. rails-sqlserver/activerecord-sqlserver-adapter#106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants