# Problem building rpm

**URL:** <https://forum.ansible.com/t/problem-building-rpm/11341>\
**Category:** Ansible Project\
**Created:** [March 13, 2012, 1:59pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341 "2012-03-13T13:59:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gerhardus\_Geldenhuis](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gerhardus\_Geldenhuis](https://forum.ansible.com/u/Gerhardus_Geldenhuis)\
**Post date:** [March 13, 2012, 1:59pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/1 "2012-03-13T13:59:48Z")

</div>

Hi  
I am getting the following error:

make[1]: Entering directory `/root/ansible/rpm-build/ansible-0.0.1’  
a2x -D docs/man/man1/ -d manpage -f manpage docs/man/man1/ansible.1.asciidoc  
I/O error : Attempt to load network entity [http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl](http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl)  
warning: failed to load external entity “[http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl](http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl)”  
compilation error: file /etc/asciidoc/docbook-xsl/manpage.xsl line 13 element import

xsl:import : unable to load [http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl](http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl)  
a2x: failed: xsltproc --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --nonet “/etc/asciidoc/docbook-xsl/manpage.xsl” “/root/ansible/rpm-build/ansible-0.0.1/docs/man/man1/ansible.1.xml”  
make[1]: \*\*\* [docs/man/man1/ansible.1] Error 1  
make[1]: Leaving directory `/root/ansible/rpm-build/ansible-0.0.1’  
error: Bad exit status from /var/tmp/rpm-tmp.69445 (%build)

when I do rpm build… DNS is working fine and I can wget the xsl file so not sure why it does not want to work.

Running it as root on a RHEL5.5 machine.

Regards

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [March 13, 2012, 2:08pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/2 "2012-03-13T14:08:33Z")

</div>

I haven’t had this problem on CentOS 6. I do get other problems about not being able to find any of the library module files, further on down the line, so  
I haven’t been building the RPM myself. However, I’ve mostly been focusing on ‘upstream’ and not worrying so much about packaging just yet.  
Maybe it’s a problem with the asciidoc version on EL 5.5?

(RPM experts, have you tried the RPM build on EL6? Still curious if that works for you…)

I would say just do “make install”, though that also tries to install the manages via setup.py. IMHO, this should probably change so where setup.py  
only installs ansible and the libraries, and the docs are installed only by the RPM. I will probably make this change soon (filing bug) since manages  
aren’t exactly related to the python code parts, unless that makes things hard on the RPM packaging. This would allow “make install” to not need  
to build the docs first, which potentially makes things more likely to work from “pip install” or whatever, should we choose to make Ansible available  
to be installed that way too. Probably will.

Obviously having RPMs is important. We’re working on packaging so it will be available from Fedora/EPEL directly soon so this should be less of an  
issue.

---

<div class="post-metadata">

**Author:** ![Gerhardus\_Geldenhuis](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gerhardus\_Geldenhuis](https://forum.ansible.com/u/Gerhardus_Geldenhuis)\
**Post date:** [March 13, 2012, 2:20pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/3 "2012-03-13T14:20:41Z")

</div>

Hi  
I will try a build on RHEL6, I am happy to just do make install.

On a very basic install the following were requirements for me to get to the stage where I got to:

yum install rpm-build asciidoc python-devel libxslt

Regards

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [March 13, 2012, 2:26pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/4 "2012-03-13T14:26:16Z")

</div>

Hmm, I never installed libxslt that I can recall, maybe asciidoc gets ‘smarter’ (or rather, dumber) when it is installed.

In the worst case, we can switch to something extra simple like pod2man, which is what cobbler used, if the tool is annoying on older  
platforms.

---

<div class="post-metadata">

**Author:** ![Gerhardus\_Geldenhuis](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gerhardus\_Geldenhuis](https://forum.ansible.com/u/Gerhardus_Geldenhuis)\
**Post date:** [March 13, 2012, 2:44pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/5 "2012-03-13T14:44:50Z")

</div>

It complained about libxslt being missing. I can do a quick rebuild and start afresh and post the error message here if that helps.

Regards

---

<div class="post-metadata">

**Author:** ![Gerhardus\_Geldenhuis](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gerhardus\_Geldenhuis](https://forum.ansible.com/u/Gerhardus_Geldenhuis)\
**Post date:** [March 13, 2012, 3:54pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/6 "2012-03-13T15:54:36Z")

</div>

FYI,  
make installs fails horribly. It stumbles on the same docbook error as mentioned before. Manually doing the install doing: python setup.py install works fine though.

Regards

---

<div class="post-metadata">

**Author:** ![Seth\_Vidal](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Post date:** [March 13, 2012, 4:19pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/7 "2012-03-13T16:19:38Z")

</div>

I have put in a pull request for a patch which I think fixes rpm build  
issues on el6.

But to be fair I never had the problems you're encountering before.

What versions of the following do you have installed:  
rpm-build  
asciidoc  
docbook-dtds  
docbook-style-xsl  
libxslt  
sgml-common  
xml-common

I have:  
&nbsp;&nbsp;&nbsp;&nbsp;asciidoc-8.4.5-4.1.el6.noarch  
&nbsp;&nbsp;&nbsp;&nbsp;docbook-dtds-1.0-51.el6.noarch  
&nbsp;&nbsp;&nbsp;&nbsp;docbook-style-xsl-1.75.2-6.el6.noarch  
&nbsp;&nbsp;&nbsp;&nbsp;libxslt-1.1.26-2.el6.x86\_64  
&nbsp;&nbsp;&nbsp;&nbsp;sgml-common-0.6.3-32.el6.noarch  
&nbsp;&nbsp;&nbsp;&nbsp;xml-common-0.6.3-32.el6.noarch

-sv

---

<div class="post-metadata">

**Author:** ![Gerhardus\_Geldenhuis](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gerhardus\_Geldenhuis](https://forum.ansible.com/u/Gerhardus_Geldenhuis)\
**Post date:** [March 13, 2012, 4:28pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/8 "2012-03-13T16:28:07Z")

</div>

Vanilla RHEL5.5 install ( hmmmm, I had EPEL testing switched on… maybe that caused a problem )

asciidoc-8.1.0-1.el5  
docbook-dtds-1.0-30.1  
libxslt-1.1.17-2.el5\_2.2  
libxslt-1.1.17-2.el5\_2.2  
rpm-build-4.4.2.3-18.el5  
sgml-common-0.6.3-18  
xml-common-0.6.3-18

Regards

---

<div class="post-metadata">

**Author:** ![Seth\_Vidal](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@Seth\_Vidal](https://forum.ansible.com/u/Seth_Vidal)\
**Post date:** [March 13, 2012, 4:36pm UTC](https://forum.ansible.com/t/problem-building-rpm/11341/9 "2012-03-13T16:36:17Z")

</div>

Ah - I thought you were on rhel6 not on rhel5.  
apply this patch to your local tree and see if it builds

[https://github.com/skvidal/ansible/commit/3567237dbc88fdcc11ada0d191bd928bbce80efe](https://github.com/skvidal/ansible/commit/3567237dbc88fdcc11ada0d191bd928bbce80efe)

not sure it will - but it is a start.

-sv
