Hi David,

You mentioned in the subject: "how to use existing ruby"

I really wish that Gitorious was going to work on RHEL 6's standard
Ruby. The tricky part is that RHEL 6 ships with Ruby 1.8.7, and there
have been a massive amount of changes between that version of Ruby and
something more modern like Ruby 1.9.3. Myself coming from a non-Ruby
background, I'm realizing that the jump from 1.8.7 to 1.9.3 is about
as large as the jump from PHP 4 to PHP 5 for example.

Unfortunately, most of the Ruby developers in the Ruby Gem community
have given up on Ruby 1.8 support. This means that a lot of gems
simply don't work on Red Hat's stock Ruby in RHEL 6. One of the
traditional answers from the distro packaging community is "backport
1.8 support..." I've been working on this backporting for the past
several months, and it's simply too much at this point. Ruby 1.9.3
changed some fundamental things about string handling and encoding,
and that's just the tip of the iceberg. The Gitorious mailing list
archive has some of my posts on this.

(Incidentally, this is why I'm running a sub-3.x version on my
intranet; it's the last version to work with Ruby 1.8.)

I'm really sorry that the installer process didn't go smoothly for
you. Even if you don't end up using Gitorious in the future, I think
it's useful to hear your perspective and see the exact error that you
pasted.

FYI, there are a couple of developments that should hopefully ease the
installation process on RHEL in the future.

For example, the Gitorious developer team is working on building some
docker.io configurations for upcoming versions. This work is ongoing
at https://gitorious.org/gitorious/gitorious-docker

Also, I'm working on slowly getting Gitorious' dependencies accepted
into Fedora so that I might be able to ship Gitorious as an RPM one
day. I'm tracking this progress on the Fedora wiki at
https://fedoraproject.org/wiki/User:Ktdreyer/Gitorious . This is slow
going, but my hope is to have everything shipping in binary RPMs, so
there's no more compiling-on-the-fly involved, and ideally GCC won't
even need to be installed on the server.

As far as RHEL 6 goes, unfortunately, it's not going to be trivial to
ship Gitorious as an RPM for RHEL 6 due to Ruby 1.8.7's age. We need a
set of Ruby 1.9.3 RPMs to make it work. Red Hat's "software
collections", https://fedorahosted.org/SoftwareCollections/ do provide
this Ruby 1.9.3, so we might be able to use that as a base. I don't
have much experience packaging SCL RPMs at this point. For my own use
case, I'm planning on continuing the dependency work in Fedora, and
then when RHEL 7 / CentOS 7 is released, that will be the first RHEL
platform that I plan to target for the RPM work.

By the way, looking at your build failure a bit more, it looks like
the root problem is that OpenSSL in RHEL 6 does not support elliptic
curves, and chruby unconditionally wants to build against an OpenSSL
with EC enabled for this particular Ruby version.

Red Hat doesn't support EC in RHEL 6.3 due to patent concerns. From
what I understand, the EC support is present in RHEL 6.5
(https://access.redhat.com/site/articles/531423), but I haven't
personally tried the Gitorious ce-installer on that version.

If you have an opportunity to update this box to RHEL 6.5, you might
have better luck with the chruby operation.

- Ken


On Wed, Nov 27, 2013 at 8:02 AM, David Reitter <[email protected]> wrote:
> During use of ./install, Ruby fails to compile on my RHEL 6.3 server, with a 
> checkout from git.gitorious.org/gitorious/ce-installer.git.
>
> I don't have time to troubleshoot and will give up on trying our gitorious, 
> but I thought I let you guys know so you can consider hardening the install 
> process in the future.
>
> (FYI, Another requirement in my case would have been to share the web server 
> with other sites and apps [WSGI in this case], and of course to share the 
> mysql server.)
>
>
>
> ---
> installing default objspace libraries
> make[2]: Leaving directory `/usr/local/src/ruby-1.9.3-p448/ext/objspace'
> make[2]: Entering directory `/usr/local/src/ruby-1.9.3-p448/ext/openssl'
> compiling ossl_pkey_ec.c
> ossl_pkey_ec.c: In function 'ossl_ec_group_initialize':
> ossl_pkey_ec.c:761: warning: implicit declaration of function 
> 'EC_GF2m_simple_method'
> ossl_pkey_ec.c:761: warning: assignment makes pointer from integer without a 
> cast
> ossl_pkey_ec.c:816: error: 'EC_GROUP_new_curve_GF2m' undeclared (first use in 
> this function)
> ossl_pkey_ec.c:816: error: (Each undeclared identifier is reported only once
> ossl_pkey_ec.c:816: error: for each function it appears in.)
> make[2]: *** [ossl_pkey_ec.o] Error 1
> make[2]: Leaving directory `/usr/local/src/ruby-1.9.3-p448/ext/openssl'
> make[1]: *** [ext/openssl/all] Error 2
> make[1]: Leaving directory `/usr/local/src/ruby-1.9.3-p448'
> make: *** [build-ext] Error 2
> !!! Compiling ruby 1.9.3-p448 failed!
> Setting up chruby...
> for dir in `find etc lib bin sbin share -type d 2>/dev/null`; do mkdir -p 
> /usr/local/$dir; done
> for file in `find etc lib bin sbin share -type f 2>/dev/null`; do cp $file 
> /usr/local/$file; done
> mkdir -p /usr/local/share/doc/chruby-0.3.6
> cp -r *.md *.txt /usr/local/share/doc/chruby-0.3.6/
> Ruby 1.9.3 installed, ready on next login/new shell.
> Make sure we are using the proper Ruby version...
> chruby: unknown Ruby: 1.9.3-p448
> Installing Puppet...
> which: no puppet in (/sbin:/bin:/usr/sbin:/usr/bin)
> install-puppet.sh: line 16: gem: command not found
> Running rest of installation (with correct, newly installed Ruby)...
> Applying Puppet recipe (will take a while, please be patient)...
> ./apply_and_finalize.sh: line 12: ruby: command not found
> Installation failed.
>
> --
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "Gitorious" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to