Bug #3944

install_gems does not set openssl-devel dependency

Added by Jimb0 Hon1nbo about 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:08/21/2015
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Core & System
Target version:Release 4.14.2
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.12

Description

The ruby gems installer is designed to take care of dependencies for the host system.
On CentOS 7 (and possibly others), this installer does not check if the package openssl-devel is already installed. This is required to build a package for the deployment with the gems, due to ssl support.

Installing openssl-devel manually works and fixes the build errors; however, it should be included in the dependency check list.

Logs below (only partial, but enough to show how I deduced the error. Due to information sensitivity matters I have to be careful, but if I am asked for a specific part I can look at it and update as fit).

#############################

[root@******************** one]# ./install_gems

Select your distribution or press enter to continue without
installing dependencies.

0. Ubuntu/Debian
1. CentOS/RedHat/Scientific

1
Distribution "redhat" detected.
About to install these dependencies:
  • gcc
  • mysql-devel
  • ruby-devel
  • make

Press enter to continue...

yum install gcc mysql-devel ruby-devel make
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile * base: mirror.steadfast.net * epel: fedora-epel.mirror.lstn.net * extras: mirror.oss.ou.edu * updates: repos.dfw.quadranet.com
Package gcc-4.8.3-9.el7.x86_64 already installed and latest version
Package MariaDB-devel-10.0.21-1.el7.centos.x86_64 already installed and latest version
Package ruby-devel-2.0.0.598-25.el7_1.x86_64 already installed and latest version
Package 1:make-3.82-21.el7.x86_64 already installed and latest version
Nothing to do
About to install the gems for these components:
  • sunstone
  • quota
  • cloud
  • auth_ldap
  • vmware
  • oneflow
  • ec2_hybrid
  • oca
  • onedb
  • hybrid

Press enter to continue...

gem install --no-ri --no-rdoc aws-sdk --version "= 1.33"
Successfully installed aws-sdk-1.33.0
1 gem installed
gem install --no-ri --no-rdoc mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for mysql_ssl_set()... * extconf.rb failed *
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby
--with-mysql-config
--without-mysql-config
/usr/share/ruby/mkmf.rb:434:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/share/ruby/mkmf.rb:519:in `try_link0'
from /usr/share/ruby/mkmf.rb:534:in `try_link'
from /usr/share/ruby/mkmf.rb:720:in `try_func'
from /usr/share/ruby/mkmf.rb:1004:in `block in have_func'
from /usr/share/ruby/mkmf.rb:895:in `block in checking_for'
from /usr/share/ruby/mkmf.rb:340:in `block (2 levels) in postpone'
from /usr/share/ruby/mkmf.rb:310:in `open'
from /usr/share/ruby/mkmf.rb:340:in `block in postpone'
from /usr/share/ruby/mkmf.rb:310:in `open'
from /usr/share/ruby/mkmf.rb:336:in `postpone'
from /usr/share/ruby/mkmf.rb:894:in `checking_for'
from /usr/share/ruby/mkmf.rb:1003:in `have_func'
from extconf.rb:45:in `<main>'

Gem files will remain installed in /usr/local/share/gems/gems/mysql-2.9.1 for inspection.
Results logged to /usr/local/share/gems/gems/mysql-2.9.1/ext/mysql_api/gem_make.out
Error executing gem install --no-ri --no-rdoc mysql

Associated revisions

Revision 32d96399
Added by Javi Fontan almost 5 years ago

bug #3944: add openssl-devel dependecy to install_gems

Revision 7b1db08a
Added by Javi Fontan almost 5 years ago

bug #3944: add openssl-devel dependecy to install_gems

(cherry picked from commit 32d963996f1b21084821205f2b3a46e6c0a96f39)

History

#1 Updated by Javi Fontan almost 5 years ago

  • Status changed from Pending to New
  • Assignee set to Javi Fontan
  • Target version set to Release 4.14.2
  • Resolution set to fixed

Delete from documentation the issue from known issues.

#2 Updated by Javi Fontan almost 5 years ago

  • Status changed from New to Closed

Also available in: Atom PDF