-
Notifications
You must be signed in to change notification settings - Fork 19
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
pbkdf2_hmac() function is unimplemented on this machine #7
Comments
👍 I'm getting the exact same issue, except I'm not upgrading. I just now installed it. |
Same error after upgrading ruby to 1.9.3-p194 |
tried to |
Same here with a fresh install |
hi @alx maybe you should upgrade your brew , you may have old formulas in your system, this function requires at least openssl 0.9.9. I upgraded brew, installed openssl 1.0.1 and re-built my ruby with openssl pointing to the openssl folder under brew like this:
And then pws started working |
I've tried without success:
|
just in case, more info about my openssl brew:
|
Just in case, I've tried with 1.9.3-p125, same error |
hi @alx, i don't know why it didn't work for you. What if you remove and install back the pws gem ? |
Same error:
|
Same error on this gist, I've tried install pbkdf2 gem, but still no success: https://gist.github.com/1749005#comments |
Hi alx, thanks for the bug report. This error doesn't look nice and I cannot reproduce it, because I don't have a macbook available. I could use the pbkdf2 gem, but it is significantly slower, so it should only be a fallback option. Does the fix by thiagobrandam work for someone else? |
thiagobrandam's fix didn't work for me, either (OS X Lion 10.7.4, ruby 1.9.3-p194 via rvm (fresh install)), same error: gems/pws-1.0.0/lib/pws/format/1.0.rb:127:in `pbkdf2_hmac': pbkdf2_hmac() function is unimplemented on this machine (NotImplementedError) |
Released 1.0.1 with a fallback to the pbkdf2 gem. Can you please confirm it's working now? I will nevertheless let this issue open till someone has got an idea, how to solve the original problem. |
Thanks, it's working better - and slower, but at least it's working :) - here are the logs:
|
Jan, I have the same Issue on my Ubuntu 12.04 machine.
pws 1.0.1 which you published while I got to this page, does not have the above error. Thanks for the timely fix :) |
Any update or idea to solve this issue? Ruby fix is nice but the app is really slugish to use with it, approx 25s. to load a password in the clipboard. |
@alx Can you please paste the output of: |
here it is: https://gist.github.com/2915564 |
@alx Thank you. I don't know why, but your openssl library somehow misses the PKCS5_PBKDF2_HMAC() function (but still got PKCS5_PBKDF2_HMAC_SHA1()...). I could not determine a simple reason for that... Please try to uninstall your openssl library, download one from http://www.openssl.org/source/ and build it yourself. Then run the line above, again. Btw: As long as we haven't found a fix for that problem, you can use the --iterations option with a lower value than the default of 75_000. |
Thanks, I've tried compiling various version of openssl from source, but still the same problem on availability of PKCS5_PBKDF2_HMAC function. I might have a mix of ssl version, here are some results after compiling rvm with --with-openssl-dir option:
Do you think extconf.rb could mix the various install openssl libs? I'll use the --iterations options waiting for another alternative. |
So you definitely have multiple versions of openssl on your machine the wrong one gets picked. You need to play with the compile option. Maybe this one (with just another openssl package...) works for you:
|
Problem with I've tried to look for a way to change the version copying compiled openssl-1.0.1 form /usr/local/ssl in $rvm_path/usr but without success. |
@alx
|
Thanks @andiug I tried it without success. Is it normal that the
Full logs: https://gist.github.com/2925586 |
Thanks for the suggestions and thanks for trying them out. Some more ideas:
|
Yes! got it! Only 2 seconds now to load The third option was the good one, thanks all for your support! I'll let someone else close this issue, in case something could be done to solve this, or if the readme needs to be updated. direct I'm not sure I understood this idea well, do you mean calling extconf with the default system ruby?
with
with applied options
|
Finaly! Updated the README and released 1.0.2 which outputs a warning when used with an old openssl version. Thanks for your efforts, especially @alx, @thiagobrandam and @andiug :) |
Hi,
I've updated to 1.0 and I'm trying to convert to the new file format, and got this error:
My machine: macbook air 13" 2011, osx Lion 10.7.4, ruby 1.9.2-p290
The text was updated successfully, but these errors were encountered: