-
Notifications
You must be signed in to change notification settings - Fork 188
Undefined method connect for TinyTds::Client In Windows #349
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
Comments
Hmm... I have not seen that one before. I hints at no compiled binary. Could you please install the latest 1.2.0 prerelease. You can do that by bundling to |
* Use OpenSSL v1.1.0e & FreeTDS v1.00.27 for Windows builds. * Adapt dll names to 1.1.0 scheme - libeay -> libcrypto - ssleay -> libssl * Use perl in Git installation for openssl * OpenSSL Requires Perl >= 5.10, while the Ruby devkit uses MSYS1 with Perl 5.8.8. To overcome this, prepend Git's usr/bin to the PATH. It has MSYS2 with a recent version of perl. * MinGW: Fix inet_pton also for 32-bit
Pull Request #347 pulled in OpenSSL v1.1.0 and we got new versions of TinyTDS at v1.2.0 which should solve this issue. Please reply back and let us know. |
NoMethodError: undefined method Same error :( |
Ouch! Would you mind trying the official release of v1.2.0? I doubt it would be different but worth a shot. What platform are you on? Can you do a gem fetch and unpack (google it) to see if the lib/tiny_tds/tiny_tds is present? Maybe try a |
@metaskills Yes the |
@sithara Sorry to hear about the problems. Could you try to find a version that works for you? Using this list (https://rubygems.org/gems/tiny_tds/versions) jumping to each last minor release. Ex: $ gem install -v 0.9.5.rc.3
$ irb
> gem 'tiny_tds, '0.9.5.rc.3'
> require 'tiny_tds'
> # test connection And then like below to the next. And so on. $ gem install -v 0.7.0
$ irb
> gem 'tiny_tds, '0.7.0'
> require 'tiny_tds'
> # test connection I'd be interested in if an older version worked for you on Windows 7. |
libsybdb-5.dll depends on libgcc_s_sjlj-1.dll which is not installed by default. Maybe we should use |
That might work around it for the 1.2 branch. Another work around is to ensure devkit is loaded in your path before loading the project. Devkit comes with the appropriate libgcc_s_sjlj-1.dll for its build environment. |
Right, but most users don't have devkit... |
True but until the real issue is fixed it's very simple to install devkit and rails installer seems to come with it pre-installed correct? |
For some reason, I can't build freetds locally (with 32-bit). Is there a way to grab the artifacts from AppVeyor? |
I don't think the appveyor build builds binary artifacts. That has to be done locally via the rake-compiler-dock via the gem:windows rake task I believe. Thank you for the PR btw. :) |
@metaskills I was able to But now I get
While executing tsql -C I get
When I try running this .exe I get missing a libeay32-1.0.2f-x86-64-w64-mingw32.dll file error |
Could you please try v1.3.0 that was released today? |
"When I try running this .exe I get missing a libeay32-1.0.2f-x86-64-w64-mingw32.dll file error" |
…qlserver#310 rails-sqlserver#290 rails-sqlserver#349 rails-sqlserver#323 rails-sqlserver#330 * Use OpenSSL v1.1.0e & FreeTDS v1.00.27 for Windows builds. * Adapt dll names to 1.1.0 scheme - libeay -> libcrypto - ssleay -> libssl * Use perl in Git installation for openssl * OpenSSL Requires Perl >= 5.10, while the Ruby devkit uses MSYS1 with Perl 5.8.8. To overcome this, prepend Git's usr/bin to the PATH. It has MSYS2 with a recent version of perl. * MinGW: Fix inet_pton also for 32-bit
I 'm trying to install tiny_tds in my windows machine.
This is the result I get when I
tsql -C
This is the error message I get when I try executing
TinyTds::Client.new(username: "xx", password: "xxx", host: "xxxx", database: "xxxxxx")
The text was updated successfully, but these errors were encountered: