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
cannot load such file -- 2.6.5/ruby_prof.so #269
Comments
I can confirm the same issue on Ruby 2.5.7p206 in Windows 10. When I look at Ruby\lib\ruby\gems\2.5.0\gems\ruby-prof-1.3.0-x64-mingw32\ext\ruby_prof I do not see any .o files or ruby_prof.so so it appears that nothing is getting built when it gets installed. |
Right, the mingw version should include a pre-built binary. Looks like that didn't happen for some reason. Will need to push out a 1.4 build. |
And done. |
Hi Can I reopen this again? On upgrading to ruby 2.6.6, we're getting the same error again. It seems the ruby-prof.so file is in ruby version specific folder: Renaming the folder to |
We have just hit this problem or a variant of it upgrading to 1.4.1. We are on ruby ruby 2.6.6p146 (2020-03-31 revision 67876) [x64-mingw32]. Following the upgrade to 1.4.1 under \lib\ruby\gems\2.6.0\gems\ruby-prof-1.4.1-x64-mingw32\lib we only have a 2.7 directory with a ruby_prof.so in it there is no 2.6 directory. When running rake we then see |
Yeah, now that 2.7 has been out 5 months I just pre-built a library for 2.7 (I don't have Ruby 2.6.* installed anymore). If you install the gem using --platform ruby then the appropriate version of the library will be built. ruby-prof doesn't have any dependencies except Ruby itself, so assuming you have devkit on mingw64 it should work fine. Hope that works - if not let me know. |
Thanks that has worked. Much appreciated We use bundler so I had to use --platform ruby with gem install as you suggested, then tell bundler to upgrade using the --local flag. There may be a more elegant way but it has worked. |
Ah yeah, good point. There probably is some way in the ruby-prof gemspec to tell bundler that the mingw version only support 2.7 now to avoid this issue. |
On upgrading ruby prof from 1.2.0 to 1.3.0, and running our application, we get the following error:
Windows 10
Ruby:
ruby 2.6.5p114 (2019-10-01 revision 67812) [x64-mingw32]
Rails:
Rails 6.0.2.1
There's a ruby_prof.so in
ruby-prof-1.2.0/lib
but not inruby-prof-1.3.0-x64-mingw32/lib
.The text was updated successfully, but these errors were encountered: