Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #6848

Re: Digest::SHA256.hexdigest failing with the digest/sha1

From Julian Cromarty <julian.cromarty@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: Digest::SHA256.hexdigest failing with the digest/sha1
Date 2013-06-26 04:12 +0100
Organization A noiseless patient Spider
Message-ID <kqdlsl$111$1@dont-email.me> (permalink)
References <c2f0085d-848b-4ed7-a711-f1c8013fa424@googlegroups.com> <b07e8048-226b-4db8-977f-a3e577cf1a8c@googlegroups.com>

Show all headers | View raw


On 25/06/2013 10:47, Robert Klemme wrote:
> On Tuesday, June 25, 2013 9:53:53 AM UTC+2, Alexander Grushin wrote:
>
>> a have a program which is used Digest::SHA256.hexdigest, but it is failing on a few machines with 'Illegal instruction' error:
>
> It may be related to the fact that your version is ancient:
>
>> $ ruby -v
>> ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux]
>

 From my experience, the most common reason for an "Illegal Instruction" 
error is mismatched/incorrect library/executable architectures.

I would check that you haven't accidentally got a mixture of x86 and 
x86_64 packages in your Ruby installation (or that you're not 
accidentally running an x86_64 packages on an x86 machine).

If that's all correct then check the output of ldd when you run it on 
both the Ruby executable and the digest.so library and ensure that 
everything listed is for the correct architecture for the machines 
you're running on.

Good luck :)

Julian

Back to comp.lang.ruby | Previous | NextPrevious in thread | Find similar


Thread

Digest::SHA256.hexdigest failing with the digest/sha1 a.grushin@gmail.com - 2013-06-25 00:53 -0700
  Re: Digest::SHA256.hexdigest failing with the digest/sha1 Robert Klemme <shortcutter@googlemail.com> - 2013-06-25 02:47 -0700
    Re: Digest::SHA256.hexdigest failing with the digest/sha1 Julian Cromarty <julian.cromarty@gmail.com> - 2013-06-26 04:12 +0100

csiph-web