# Rpmbuild v19.1.1 on RHEL6.4

**URL:** <https://community.openpbs.org/t/rpmbuild-v19-1-1-on-rhel6-4/1807>\
**Category:** Users/Site Administrators\
**Created:** [October 14, 2019, 7:06pm UTC](https://community.openpbs.org/t/rpmbuild-v19-1-1-on-rhel6-4/1807 "2019-10-14T19:06:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blacksburgturkey](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@blacksburgturkey](https://community.openpbs.org/u/blacksburgturkey)\
**Post date:** [October 14, 2019, 7:06pm UTC](https://community.openpbs.org/t/rpmbuild-v19-1-1-on-rhel6-4/1807/1 "2019-10-14T19:06:13Z")

</div>

Is it possible to create RPM packages for PBS versions 19.1.1 and newer on RHEL6.4? Despite installing all prereqs, my “rpmbuild -ba pbspro.spec” commands always finish with the following lines:  
Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh  
Requires(rpmlib): rpmlib(CompressedFileNames) \<= 3.0.4-1 rpmlib(FileDigests) \<= 4.6.0-1 rpmlib(PartialHardlinkSets) \<= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) \<= 4.0-1  
Requires(post): /bin/sh  
Requires(preun): /bin/sh  
Requires(postun): /bin/sh  
Requires: /bin/bash /bin/false /bin/sh /usr/bin/env /usr/bin/perl libICE.so.6()(64bit) libSM.so.6()(64bit) libX11.so.6()(64bit) libXft.so.2()(64bit) libXrender.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC\_2.10)(64bit) libc.so.6(GLIBC\_2.2.5)(64bit) libc.so.6(GLIBC\_2.3)(64bit) libc.so.6(GLIBC\_2.3.2)(64bit) libc.so.6(GLIBC\_2.6)(64bit) libc.so.6(GLIBC\_2.7)(64bit) libc.so.6(GLIBC\_2.9)(64bit) libcrypt.so.1()(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC\_2.2.5)(64bit) libedit.so.0()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libhwloc.so.5()(64bit) libm.so.6()(64bit) libncurses.so.5()(64bit) libpbs.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC\_2.2.5)(64bit) libpython2.6.so.1.0()(64bit) libssl.so.10()(64bit) libtcl8.5.so()(64bit) libtk8.5.so()(64bit) libutil.so.1()(64bit) libz.so.1()(64bit) perl(Env) perl(Switch) perl(strict) rtld(GNU\_HASH)  
Conflicts: pbspro-server pbspro-client pbspro-client-ohpc pbspro-execution-ohpc pbspro-server-ohpc pbs pbs-mom pbs-cmds  
Processing files: pbspro-client-19.1.1-0.x86\_64  
warning: File listed twice: /etc/profile.d/pbs.csh  
warning: File listed twice: /etc/profile.d/pbs.sh  
warning: File listed twice: /opt/pbs/sbin/pbs\_iff  
Provides: config(pbspro-client) = 19.1.1-0 libpbs.so.0()(64bit) libtool(/opt/pbs/lib/libpbs.la)  
Requires(interp): /bin/sh /bin/sh /bin/sh  
Requires(rpmlib): rpmlib(CompressedFileNames) \<= 3.0.4-1 rpmlib(FileDigests) \<= 4.6.0-1 rpmlib(PartialHardlinkSets) \<= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) \<= 4.0-1  
Requires(post): /bin/sh  
Requires(preun): /bin/sh  
Requires(postun): /bin/sh  
Requires: /bin/bash /bin/false /bin/sh /usr/bin/env /usr/bin/perl libX11.so.6()(64bit) libXft.so.2()(64bit) libXrender.so.1()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC\_2.10)(64bit) libc.so.6(GLIBC\_2.2.5)(64bit) libc.so.6(GLIBC\_2.3)(64bit) libc.so.6(GLIBC\_2.3.2)(64bit) libc.so.6(GLIBC\_2.6)(64bit) libc.so.6(GLIBC\_2.7)(64bit) libc.so.6(GLIBC\_2.9)(64bit) libcrypt.so.1()(64bit) libcrypto.so.10()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC\_2.2.5)(64bit) libedit.so.0()(64bit) libfontconfig.so.1()(64bit) libfreetype.so.6()(64bit) libm.so.6()(64bit) libncurses.so.5()(64bit) libpbs.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC\_2.2.5)(64bit) libpython2.6.so.1.0()(64bit) libtcl8.5.so()(64bit) libtk8.5.so()(64bit) libutil.so.1()(64bit) libz.so.1()(64bit) perl(Env) perl(Switch) perl(strict) rtld(GNU\_HASH)  
Conflicts: pbspro-server pbspro-execution pbspro-client-ohpc pbspro-execution-ohpc pbspro-server-ohpc pbs pbs-mom pbs-cmds  
Processing files: pbspro-ptl-19.1.1-0.x86\_64  
Requires(rpmlib): rpmlib(CompressedFileNames) \<= 3.0.4-1 rpmlib(FileDigests) \<= 4.6.0-1 rpmlib(PartialHardlinkSets) \<= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) \<= 4.0-1  
Requires: /usr/bin/env  
Processing files: pbspro-debuginfo-19.1.1-0.x86\_64  
Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/pbspro-19.1.1-0.x86\_64  
error: Installed (but unpackaged) file(s) found:  
/usr/lib64/pkgconfig/pbs.pc

RPM build errors:  
File listed twice: /etc/profile.d/pbs.csh  
File listed twice: /etc/profile.d/pbs.sh  
File listed twice: /opt/pbs/sbin/pbs\_iff  
File listed twice: /opt/pbs/sbin/pbs\_rcp  
File listed twice: /etc/profile.d/pbs.csh  
File listed twice: /etc/profile.d/pbs.sh  
File listed twice: /opt/pbs/sbin/pbs\_iff  
File listed twice: /opt/pbs/sbin/pbs\_rcp  
File listed twice: /etc/profile.d/pbs.csh  
File listed twice: /etc/profile.d/pbs.sh  
File listed twice: /opt/pbs/sbin/pbs\_iff  
Installed (but unpackaged) file(s) found:  
/usr/lib64/pkgconfig/pbs.pc

---

<div class="post-metadata">

**Author:** ![mkaro](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/mkaro/32/85_2.png) [@mkaro](https://community.openpbs.org/u/mkaro)\
**Post date:** [October 14, 2019, 7:51pm UTC](https://community.openpbs.org/t/rpmbuild-v19-1-1-on-rhel6-4/1807/2 "2019-10-14T19:51:05Z")

</div>

I believe the “File listed twice” messages are warnings as opposed to errors.

Add the following line to your ~/.rpmmacros file to silence the “file not found” error:

```auto
%_unpackaged_files_terminate_build 0

```

It looks like you are building your RPM as root, which is discouraged. Take a look at the instructions here: [https://pbspro.atlassian.net/wiki/spaces/PBSPro/pages/13991940/Building+PBS+Pro+Using+rpmbuild](https://pbspro.atlassian.net/wiki/spaces/PBSPro/pages/13991940/Building+PBS+Pro+Using+rpmbuild)

In section C, follow the instructions to clone from GitHub rather than download from OpenSUSE.

Hope that helps.

---

<div class="post-metadata">

**Author:** ![blacksburgturkey](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@blacksburgturkey](https://community.openpbs.org/u/blacksburgturkey)\
**Post date:** [October 15, 2019, 12:13pm UTC](https://community.openpbs.org/t/rpmbuild-v19-1-1-on-rhel6-4/1807/3 "2019-10-15T12:13:09Z")

</div>

Many thanks for this information. I already suspected the warnings were trivial, but the “installed but not packaged” topic was new to me. Many thanks for this information. The rpm’s generated as expected with your suggested edit.
