OpenSSL Error when installing from source

172 views
Skip to first unread message

Dave Byrne

unread,
Jul 17, 2010, 5:33:06 PM7/17/10
to Redcar
When trying to install from source I am getting an SSL error:
redcar/lib/openssl/lib/openssl/digest.rb:23: uninitialized constant
OpenSSL::Digest::OPENSSL_VERSION_NUMBER (NameError)

I had installed 0.3.8 from source without a problem, and the 0.3.8 gem
installs fine, but I get this error trying to install 0.3.9. I saw
that the openssl require was moved in a recent commit so I am
wondering if this is related to my problem?

I've gotten the same problem when trying to install on both MAC OS X
and Ubuntu. I've tried with and without the jruby-openssl gem
installed. Has anyone else seen this? Any ideas?

Felipe Coury

unread,
Jul 17, 2010, 7:28:30 PM7/17/10
to redcar...@googlegroups.com
Hi there Dave,

Try removing lib/openssl folder and try again.

Cheers,

-- Felipe.


--
You received this message because you are subscribed to the Google Groups "Redcar" group.
To post to this group, send email to redcar...@googlegroups.com.
To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redcar-editor?hl=en.



Dave Byrne

unread,
Jul 18, 2010, 12:23:41 PM7/18/10
to Redcar
After removing lib/openssl I get a different error:

Redcar 0.3.9dev ( java )
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
loading osx64/swt
Error loading plugin: <Plugin project 1.0 depends:[edit_view>0, HTML
View>0] 0 files>
OpenSSL::BN requires the jruby-openssl gem


So without that directory, it can't find the openssl gem. I've read
that this is a common problem when using the jruby-complete.jar. It
uses the limited implementation of openssl from the jruby jar instead
of looking for the gem. I've tried adding require 'jruby/openssl/
gem_only' to the top of redcar.rb, but still got the same error.

Any other ideas?

On Jul 17, 7:28 pm, Felipe Coury <felipe.co...@gmail.com> wrote:
> Hi there Dave,
>
> Try removing lib/openssl folder and try again.
>
> Cheers,
>
> -- Felipe.
>
> On Sat, Jul 17, 2010 at 6:33 PM, Dave Byrne <david.r.by...@gmail.com> wrote:
> > When trying to install from source I am getting an SSL error:
> > redcar/lib/openssl/lib/openssl/digest.rb:23: uninitialized constant
> > OpenSSL::Digest::OPENSSL_VERSION_NUMBER (NameError)
>
> > I had installed 0.3.8 from source without a problem, and the 0.3.8 gem
> > installs fine, but I get this error trying to install 0.3.9.  I saw
> > that the openssl require was moved in a recent commit so I am
> > wondering if this is related to my problem?
>
> > I've gotten the same problem when trying to install on both MAC OS X
> > and Ubuntu.  I've tried with and without the jruby-openssl gem
> > installed.  Has anyone else seen this?  Any ideas?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Redcar" group.
> > To post to this group, send email to redcar...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > redcar-edito...@googlegroups.com<redcar-editor%2Bunsu...@googlegroups.com>
> > .

Daniel Lucraft

unread,
Jul 18, 2010, 12:25:15 PM7/18/10
to redcar...@googlegroups.com
I just pushed a fix related to the openssl jar to master, so you might like to pull and run the installer again.

Not sure if it's related, but you could give it a go.

> To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.

Felipe Coury

unread,
Jul 18, 2010, 12:31:06 PM7/18/10
to redcar...@googlegroups.com
Dan,

Tried a clean install and worked out of the box for me.

Great job!

-- Felipe.

Daniel Lucraft

unread,
Jul 18, 2010, 12:32:30 PM7/18/10
to redcar...@googlegroups.com
Thank Roger, he's the one that spotted the install script was putting the jar in the CWD rather than the right place :)

Dave Byrne

unread,
Jul 18, 2010, 12:48:01 PM7/18/10
to Redcar
Still getting the error :( Since I've had this problem on multiple
machines, I must be installing it wrong. Here is what I am doing:

I've tried from Ubuntu 9.10 and MAC OS 10.5.8. Haven't tried from
Windows.
Java (1.6), ruby (1.8.6, 1.8.7, or 1.9.1), Jruby (1.5.1) were already
installed.

- Installing rake, cucumber, and rspec with jgem
- git clone http://github.com/danlucraft/redcar.git
- cd redcar
- git submodule init
- git submodule update
- jruby bin/redcar install
- jruby -S rake build

All of these steps complete without any errors

Then, when I run jruby bin/redcar, I get the SSL error. Perhaps its
because I am using JRuby 1.5.1? I noticed that the jruby-complete jar
is only 1.5.0?

Grasping at straws here ;)

On Jul 18, 12:32 pm, Daniel Lucraft <danlucr...@me.com> wrote:
> Thank Roger, he's the one that spotted the install script was putting the jar in the CWD rather than the right place :)
>
> On 18 Jul 2010, at 17:31, Felipe Coury wrote:
>
> > Dan,
>
> > Tried a clean install and worked out of the box for me.
>
> > Great job!
>
> > -- Felipe.
>
> > On Sun, Jul 18, 2010 at 1:25 PM, Daniel Lucraft <danlucr...@me.com> wrote:
> > I just pushed a fix related to the openssl jar to master, so you might like to pull and run the installer again.
>
> > Not sure if it's related, but you could give it a go.
>
> > On 18 Jul 2010, at 17:23, Dave Byrne wrote:
>
> > > After removing lib/openssl I get a different error:
>
> > > Redcar 0.3.9dev ( java )
> > > JRuby limited openssl loaded.http://jruby.org/openssl
> > > For more options, visit this group athttp://groups.google.com/group/redcar-editor?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups "Redcar" group.
> > To post to this group, send email to redcar...@googlegroups.com.
> > To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/redcar-editor?hl=en.

Dave Byrne

unread,
Jul 18, 2010, 12:52:05 PM7/18/10
to Redcar
I am thinking maybe I will try manually packaging openssl with the
jruby complete jar: http://old.nabble.com/jruby-openssl-gem-within-a-java-web-start-deployment-td27417066.html

However, since no one else is having a problem, I don't see why this
would be necessary.

On Jul 18, 12:48 pm, Dave Byrne <david.r.by...@gmail.com> wrote:
> Still getting the error :(  Since I've had this problem on multiple
> machines, I must be installing it wrong.  Here is what I am doing:
>
> I've tried from Ubuntu 9.10 and MAC OS 10.5.8.  Haven't tried from
> Windows.
> Java (1.6), ruby (1.8.6, 1.8.7, or 1.9.1), Jruby (1.5.1) were already
> installed.
>
> - Installing rake, cucumber, and rspec with jgem
> - git clonehttp://github.com/danlucraft/redcar.git

Daniel Lucraft

unread,
Jul 18, 2010, 12:52:54 PM7/18/10
to redcar...@googlegroups.com
Let me try doing a clean install and seeing what happens.

Daniel Lucraft

unread,
Jul 18, 2010, 1:11:01 PM7/18/10
to redcar...@googlegroups.com
OK, I get the error too. Fixing....

Daniel Lucraft

unread,
Jul 18, 2010, 1:22:57 PM7/18/10
to redcar...@googlegroups.com
OK, it should be fixed now. You probably have to remove the .redcar/jars directory before running "redcar install" again.

The problem was that the jopenssl jars weren't being uploaded to s3. So the file you have at .redcar/jars/openssl/jopenssl.jar is probably a 100 byte xml file saying "Access Denied" :)

let me know if it still doesn't work
Dan

Dave Byrne

unread,
Jul 18, 2010, 1:27:18 PM7/18/10
to Redcar

Glad I am not going crazy! I'm away from my computer right now, but
I'll give it a shot this afternoon.

On Jul 18, 1:22 pm, Daniel Lucraft <danlucr...@me.com> wrote:
> OK, it should be fixed now. You probably have to remove the .redcar/jars directory before running "redcar install" again.
>
> The problem was that the jopenssl jars weren't being uploaded to s3. So the file you have at .redcar/jars/openssl/jopenssl.jar is probably a 100 byte xml file saying "Access Denied" :)
>
> let me know if it still doesn't work
> Dan
>
> On 18 Jul 2010, at 18:11, Daniel Lucraft wrote:
>
>
>
> > OK, I get the error too. Fixing....
>
> > On 18 Jul 2010, at 17:52, Daniel Lucraft wrote:
>
> >> Let me try doing a clean install and seeing what happens.
>
> >> On 18 Jul 2010, at 17:52, Dave Byrne wrote:
>
> >>> I am thinking maybe I will try manually packaging openssl with the
> >>> jruby complete jar:http://old.nabble.com/jruby-openssl-gem-within-a-java-web-start-deplo...
> >>>>>>>>> redcar-edito...@googlegroups.com<redcar-editor%2Bunsubscribe@goog legroups.com>

Johannes Wollert

unread,
Jul 18, 2010, 1:35:31 PM7/18/10
to redcar...@googlegroups.com
Works for me now. Thanks Dan!

Dave Byrne

unread,
Jul 18, 2010, 3:14:25 PM7/18/10
to Redcar
Yup, working for me too :)

On Jul 18, 1:35 pm, Johannes Wollert <johannes.woll...@googlemail.com>
wrote:

Aaron McLeod

unread,
Jul 18, 2010, 3:34:46 PM7/18/10
to redcar...@googlegroups.com
works for me as well, yay :).
Aaron McLeod
http://agmprojects.com

Mat Schaffer

unread,
Jul 26, 2010, 1:03:09 PM7/26/10
to Redcar
I seem to be having this problem on rev b2f9a2f still.

I'm guessing the S3 upload is broken again since the contents of my
lib/openssl/lib/jopenssl.jar are indeed showing AccessDenied.

How does the upload happen? Any chance I could help fix it to avoid
this problem in the future?

Thanks,
Mat

On Jul 18, 3:34 pm, Aaron McLeod <sircoolgu...@gmail.com> wrote:
> works for me as well, yay :).
>
> Aaron McLeodhttp://agmprojects.com

Mat Schaffer

unread,
Jul 26, 2010, 1:27:53 PM7/26/10
to Redcar
Sweet, found it. Just had to build lib/openssl by hand. Which also let me to find http://redcar.s3.amazonaws.com/jruby/jopenssl-0.3.9dev.jar.

Looks like both the Rakefile and the installer should be using Redcar::VERSION to avoid this.


But I wonder if there should be a redcar/version.rb file. That seems to be a popular way to share version info without having to actually load the main library to get the number.

-Mat

To unsubscribe from this group, send email to redcar-edito...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages