https://github.com/swistak35/tiny_tds_issue391
https://github.com/swistak35/tiny_tds_issue391
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/swistak35/tiny_tds_issue391
- Owner: swistak35
- Created: 2023-03-10T15:23:27.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-10T15:37:19.000Z (almost 3 years ago)
- Last Synced: 2025-04-02T16:53:40.310Z (9 months ago)
- Language: Ruby
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Reproducing the issue
### Setup
```
# Install ruby 2.6.10 x86 (that's the one I've tested on).
gem install tiny_tds --platform=ruby --version=2.1.5 -- --with-freetds-include="C:\Ruby26\msys32\mingw32\include\freetds"
bundle install
```
### Result on not compiled version
```
PS Z:\> bundle exec ruby .\src\entrypoint.rb
Starting script
TinyTds: TinyTds
```
### Result on compiled version
Compilation:
```
mkdir pkg
bundle exec ocra "src/entrypoint.rb" --console --debug-extract --no-lzma --add-all-core --gemfile Gemfile --no-dep-run --gem-full --output "pkg/tinytdsissue.exe"
cd pkg
./tinytdsissue.exe
cd ocrC9E2.tmp
.\bin\ruby.exe .\src\entrypoint.rb
```
Execution:
```
PS Z:\pkg\ocrC9E2.tmp> .\bin\ruby.exe .\src\entrypoint.rb
Starting script
Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': 126: The specified module could not be found. - Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds/tiny_tds.so (LoadError)
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds.rb:46:in `rescue in block in '
from Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds.rb:43:in `block in '
from Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds.rb:37:in `block in '
from Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds.rb:42:in `'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
from ./src/entrypoint.rb:6:in `'
Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- tiny_tds/2.6/tiny_tds (LoadError)
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds.rb:44:in `block in '
from Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds.rb:37:in `block in '
from Z:/pkg/ocrC9E2.tmp/lib/ruby/gems/2.6.0/gems/tiny_tds-2.1.5/lib/tiny_tds.rb:42:in `'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `require'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:130:in `rescue in require'
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:34:in `require'
from ./src/entrypoint.rb:6:in `'
Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- tiny_tds (LoadError)
from Z:/pkg/ocrC9E2.tmp/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from ./src/entrypoint.rb:6:in `'
```
If that helps, check `pkgtree.txt` file which lists the files being present in the extracted debug package.