-
Notifications
You must be signed in to change notification settings - Fork 70
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
active support cannot load bigdecimal - gets an undefined symbol error #127
Comments
I couldn't reproduce the problem you were encountered:
Could you investigate the cause of the problem on your environment? |
@Hellfire01 How can I get the same environment of this? |
@Hellfire01 I found that the problem also occurs on Ubuntu bionic. The way to avoid this problem is explicitly specifying the version of bigdecimal by
The cause is I currently don't have the way to fix this correctly. |
@Hellfire01 I found that the cause is the behavior of On Ruby 2.6 or 2.4.5, after installing bigdecimal 1.4.2, On Ruby 2.6.0:
On Ruby 2.5.3:
On Ruby 2.4.5:
|
Will give you the output I have on all of the instructions you used as soon as I can have access to my computer. |
@Hellfire01 Would you please examine the following step on your environment?
|
will do |
I reported the problem of |
So, when I go a
|
@Hellfire01 Thank you for your investigation. The easiest way to avoid this is specifying bigdecimal's version by |
thanks but I am unsure I can do that easily as the issue appears when I require rails or kimura with use the gem through active support. Not sure iff changing the gem files of the gems I use is a good idea. |
@Hellfire01 Sorry for the inconvenience. I have no way to resolve this issue in bigdecimal. By the way, I couldn't understand the reason why you cannot put |
oh ok, thanks for the tip I will try that. |
@Hellfire01 I found the reason why 2.5's require is broken. This is it: https://bugs.ruby-lang.org/issues/15545 The next minor release of 2.5 may include the fix. |
@Hellfire01 Sorry, the previous comment is wrong. I believed that I found the cause of the bug, but I noticed that it is incorrect. The investigation is continued by the ruby core team. |
thanks for the notification ^^ |
This is becoming a major issue to me because a mere "gem update" will break any system with ruby 2.5. |
@vihai You can stick a library version by adding the following line in Gemfile of your application:
|
@vihai If you don't use bundler, you can stick a library version by adding |
I'm using 2.5.5 and still having the same problem, was this already fixed? |
@rafaelfranca Could you tell me how to reproduce? I confirmed that the problem has been fixed at 2.5.5: On 2.5.5:
On 2.5.3:
|
That is a good question 😅. I'm using a ubuntu trusty image with a custom built ruby 2.5.5, totally based on the v2_5_5 tag. I'm not sure if I need to build ruby in a special way to avoid this issue or if this issue only happens because I'm using ubuntu trusty. But by installing |
Could you please tell me the arguments of configure you specified?
As you can see in this build script, the ruby in the docker image I used for the previous confirmation is built in normal way. |
./configure --prefix="$(PREFIX)" --without-valgrind debugflags="-g3 -ggdb"` those are the arguments. |
Sorry to trouble you, for the same thing I'm getting []. |
[]. |
I had to update Ruby in order to avoid having the issues ( using 2.6.3 currently, it has no issues with bigdecimal or rails ) and therefor I don't have the issues or the previous environment anymore. |
I've released the new version 1.4.4. |
I'm now getting |
In the hopes that it helps someone: After trying everything, after verifying that it was already in my gem list, I just went ahead and experimentally ran |
Clear the gem file.lock by: removing all gems and redo bundle install solved the issue for me. |
v1.4.2 is the version that works for us, see here for more details: ruby/bigdecimal#127
In my case ubuntu-dev-tools was not installed: |
Steps to reproduce
Installed Ruby on an archlinux / manjaro environment ( up to date ) in a virtual machine
Installed the rails gem with a
gem install rails
Tried a
require 'rails'
in both irb and a fileExpected behavior
No issues loading the gem
Actual behavior
The gem cannot be loaded. There seems to be an issue when trying to load the bigdecimal gem.
I have no issue when trying to load the bigdecimal gem directly.
The error is the following :
System configuration
Rails version: rails (5.2.2)
Ruby version: Ruby 2.5.3p105
I am at a loss on what to do to solve this issue could you please help me ?
The text was updated successfully, but these errors were encountered: