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
Error installing REE 1.8.7-2009.10 — ossl.c:119:1: error: unknown type name ‘STACK’ #445
Comments
From what I quickly looked up for you, it seems that this is a problem of the OpenSSL version (1.0.1) shipping with systems nowadays being too new for that ancient version of Ruby. You need to patch Ruby. The way you do what with ruby-build right now is to save the following as a file e.g. before_install_package() {
case "$1" in
ruby-* )
curl -fsSL https://github.com/wayneeseguin/rvm/raw/187ab4c/patches/ree/1.8.6/openssl-1.0.patch | patch -p0
;;
esac
}
require_gcc
install_package "ruby-enterprise-1.8.7-2009.10" "http://files.rubyforge.vm.bytemark.co.uk/emm-ruby/ruby-enterprise-1.8.7-2009.10.tar.gz#3727eef7b6b1b2f31db7d091328d966e" ree_installer
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz#0c95a9869914ba1a45bf71d3b8048420" ruby And then: $ rbenv install /path/to/my-ree-patched
# or, if you're using ruby-build directly:
$ ruby-build /path/to/my-ree-patched /path/to/install Can you try that and let me know if it works? |
Wowzer! Thanks so much for the detailed help. I followed those steps, they seemed to be successful and now I have a different error 😉
|
Seems like you need to apply one more patch. I'm tapping in the dark here, try if this helps you. Add another patch line:
This is related to #75 and http://bugs.ruby-lang.org/issues/4556 |
Dude, thank you so much. You're a wizard! Ruby compiles now. I do get this error:
...but the installation finished OK, I can run |
I'm just good at googling :)
That's no good :( Ideally you wouldn't have such issues. Also, to my knowledge Ruby doesn't ship with bindings to libcurl, but that might be a REE thing that I'm not aware of. |
@mislav your contribution is a godsend! I want it to add that this also works with RVM in a simpler way and without errors. In my case it was
your second patch gave me the following result during installation
|
I combined both patches into a single one to be used with rbenv - https://gist.github.com/specialforest/d74b772eda5058a0f680f52d6e75bc4e/raw/004b9a457a92640d62b67a4828c6a7dd3c616d50/ruby-1.8.7.patch cat ruby-1.8.7.patch | rbenv -p install 1.8.7 Successfully built Ruby 1.8.7 on Ubuntu 16.04. |
Hi!
I'm trying to use this bad-ass tool to install REE 1.8.7-2009.10 (don't ask!) on our Ubuntu 13.04 Jenkins CI server. I appreciate that this Ruby version is mega-old, but I'm seriously stuck with trying to get it to compile and wondered if anyone had any clues?
I've cleared a couple of hurdles so far, but stumbled on the third. Here's where I've managed to get up to:
I have
libssl-dev
installed, and/usr/include/openssl/stack.h
is present, but I just can't figure out how to get it recognised (if that's even the right answer!)I can compile other rubies OK (e.g., 2.0.0-p247 is running like a dream). I found some solutions for RVM, but nothing for rbenv / ruby-build. Any ideas how I might get past this problem?
Thanks in advance,
Richard
The text was updated successfully, but these errors were encountered: