# Gems from install\_gems script

**URL:** <https://forum.opennebula.io/t/gems-from-install-gems-script/477>\
**Category:** Product Support\
**Created:** [March 20, 2015, 10:30am UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477 "2015-03-20T10:30:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [March 20, 2015, 10:30am UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/1 "2015-03-20T10:30:33Z")

</div>

Hi,

Do you know why this gems from this install\_gems script are not RPM packaged? It should ease the deployement in production environment to have this gems in RPMs from OpenNebula repository (or a local mirror), to prevent to have an internet connection + gcc etc installed on servers.

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [March 23, 2015, 12:47pm UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/2 "2015-03-23T12:47:16Z")

</div>

Should it be enough to make a tarball of /usr/local/share/gems?

---

<div class="post-metadata">

**Author:** ![jfontan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jfontan/32/18_2.png) [@jfontan](https://forum.opennebula.io/u/jfontan)\
**Post date:** [March 23, 2015, 2:45pm UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/3 "2015-03-23T14:45:39Z")

</div>

There is an addon to create a package with those ruby dependencies:

> **[OpenNebula/addon-installgems](https://github.com/OpenNebula/addon-installgems)**
>
> Creation of distro packages to install opennebula ruby gems - OpenNebula/addon-installgems

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [March 24, 2015, 9:42am UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/4 "2015-03-24T09:42:23Z")

</div>

Hi Javi,

sadly, this script doesn’t work:

```
$ ./gem_packages.py 
redhat OS flavour detected.
Installing required packages to generate gem packages.
Intalling fpm gem.
unable to convert "\xF3" from ASCII-8BIT to UTF-8 for lib/fpm/package/pyfpm/ __init__.pyc, skipping
unable to convert "\xF3" from ASCII-8BIT to UTF-8 for lib/fpm/package/pyfpm/get_metadata.pyc, skipping
Installing required packages to compile new gems.
/bin/sh: /home/lsimngar/install_gems: Aucun fichier ou dossier de ce type
2015-03-24 10:37:37,555 - gem_packages - ERROR - exit status 127

```

I have reported this issue.

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [March 24, 2015, 10:27am UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/5 "2015-03-24T10:27:53Z")

</div>

I found out how to make it works, it’s just a documentation issue.

Then we have to install all this packages:

```
yum install rubygem-amazon-ec2 rubygem-aws-sdk rubygem-azure 
rubygem-builder rubygem-configparser rubygem-curb rubygem-daemons 
rubygem-eventmachine rubygem-faraday rubygem-hashie rubygem-inflection 
rubygem-json rubygem-macaddr rubygem-mime-types rubygem-mime-types 
rubygem-mini_portile rubygem-multi_json rubygem-multipart-post 
rubygem-mysql rubygem-net-ldap rubygem-nokogiri rubygem-ox 
rubygem-parse-cron rubygem-polyglot rubygem-rack rubygem-rack-protection
 rubygem-sequel rubygem-sinatra rubygem-softlayer_api rubygem-sqlite3 
rubygem-systemu rubygem-thin rubygem-tilt rubygem-treetop 
rubygem-trollop rubygem-uuid rubygem-uuidtools rubygem-xml-simple 
rubygem-zendesk_api

```

Should be great if all this packages could be in the official OpenNebula repo, and that OpenNebula packages requires them to install the dependancies automatically. Do you have any idea why it’s not the case?

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [March 24, 2015, 2:38pm UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/6 "2015-03-24T14:38:57Z")

</div>

well in fact those generated packages can’t be installed, they conflict with rubygems Redhat package… because they include /usr/share/gems/doc and other generic directories. I’m trying to rebuild them with /usr/local/ prefix instead.

---

<div class="post-metadata">

**Author:** ![jfontan](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jfontan/32/18_2.png) [@jfontan](https://forum.opennebula.io/u/jfontan)\
**Post date:** [March 24, 2015, 3:04pm UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/7 "2015-03-24T15:04:27Z")

</div>

Maybe you can use only the ones that are not already in CentOS/epel repositories.

---

<div class="post-metadata">

**Author:** ![madko](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/madko/32/4195_2.png) [@madko](https://forum.opennebula.io/u/madko)\
**Post date:** [March 25, 2015, 1:04pm UTC](https://forum.opennebula.io/t/gems-from-install-gems-script/477/8 "2015-03-25T13:04:40Z")

</div>

I have opened a new issue about this problem. We are trying to exclude this /usr/share/gems/doc from the RPMs.
