# Command"make dist" error when bulid the rmp package

**URL:** <https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621>\
**Category:** Users/Site Administrators\
**Created:** [July 28, 2017, 7:15am UTC](https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621 "2017-07-28T07:15:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [July 28, 2017, 7:15am UTC](https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621/1 "2017-07-28T07:15:34Z")

</div>

Hi, everyone

I try to install the pbs, when I build the rmp packages, encounter an issue, the error info like below:

> make[3]: Leaving directory `/home/linux/pbspro-release_14_1_branch/src/server' (cd scheduler && make top_distdir=../../pbspro-14.1.0 distdir=../../pbspro-14.1.0/src/scheduler \ am __remove_distdir=: am__ skip_length_check=: am__skip_mode_fix=: distdir) make[3]: Entering directory `/home/linux/pbspro-release\_14\_1\_branch/src/scheduler’  
> make[3]: Leaving directory `/home/linux/pbspro-release_14_1_branch/src/scheduler' (cd modules && make top_distdir=../../pbspro-14.1.0 distdir=../../pbspro-14.1.0/src/modules \ am __remove_distdir=: am__ skip_length_check=: am__skip_mode_fix=: distdir) make[3]: Entering directory `/home/linux/pbspro-release\_14\_1\_branch/src/modules’  
> (cd python && make top\_distdir=…/…/…/pbspro-14.1.0 distdir=…/…/…/pbspro-14.1.0/src/modules/python   
> am\_\_remove\_distdir=: am\_\_skip\_length\_check=: am\_\_skip\_mode\_fix=: distdir)  
> make[4]: Entering directory `/home/linux/pbspro-release_14_1_branch/src/modules/python' make[4]: Leaving directory `/home/linux/pbspro-release\_14\_1\_branch/src/modules/python’  
> make[3]: Leaving directory `/home/linux/pbspro-release_14_1_branch/src/modules' (cd resmom && make top_distdir=../../pbspro-14.1.0 distdir=../../pbspro-14.1.0/src/resmom \ am __remove_distdir=: am__ skip_length_check=: am__skip_mode_fix=: distdir) make[3]: Entering directory `/home/linux/pbspro-release\_14\_1\_branch/src/resmom’  
> make[3]: \*\*\* No rule to make target `/mom_mach.c', needed by `distdir’. Stop.  
> make[3]: Leaving directory `/home/linux/pbspro-release_14_1_branch/src/resmom' make[2]: *** [distdir] Error 1 make[2]: Leaving directory `/home/linux/pbspro-release\_14\_1\_branch/src’  
> make[1]: \*\*\* [distdir] Error 1  
> make[1]: Leaving directory `/home/linux/pbspro-release\_14\_1\_branch’  
> make: \*\*\* [dist] Error 2

Please some one can take a look and give some advice:sob:😭

---

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [July 28, 2017, 7:48am UTC](https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621/2 "2017-07-28T07:48:37Z")

</div>

I just serached the website, its said this error because of lacking the “mom\_mach.c” file, so I checked, it indeed missing this file …

---

<div class="post-metadata">

**Author:** ![scc](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/scc/32/234_2.png) [@scc](https://community.openpbs.org/u/scc)\
**Post date:** [July 28, 2017, 2:07pm UTC](https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621/3 "2017-07-28T14:07:35Z")

</div>

You said:

> [@honeyxdyj](#):
>
> I try to install the pbs, when I build the rmp packages, encounter an issue, the error info like below:

Are you trying to install rpm packages that you built yourself? If so, what configure options did you use? What platform are you trying to build on (“uname -a”, “cat /etc/_release_”)?

What was the exact command you ran that led to that make error?

If you are actually building from 14.1 source rather than the master branch (to get all of the latest check-ins) on Centos 7 or OpenSUSE 13, then why not use the prebuilt rpm packages at [http://pbspro.org/Download.aspx#download](http://pbspro.org/Download.aspx#download) ?

---

<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:** [July 28, 2017, 2:22pm UTC](https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621/4 "2017-07-28T14:22:11Z")

</div>

Here’s the link to the released 14.1 source code bundle: [https://github.com/PBSPro/pbspro/archive/v14.1.0.tar.gz](https://github.com/PBSPro/pbspro/archive/v14.1.0.tar.gz)

It’s very important that you use this source code.

---

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [July 29, 2017, 1:19am UTC](https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621/5 "2017-07-29T01:19:49Z")

</div>

Thanks very much for your replying，mkaro.  
This package works perfect well

---

<div class="post-metadata">

**Author:** ![honeyxdyj](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@honeyxdyj](https://community.openpbs.org/u/honeyxdyj)\
**Post date:** [July 29, 2017, 1:28am UTC](https://community.openpbs.org/t/command-make-dist-error-when-bulid-the-rmp-package/621/6 "2017-07-29T01:28:49Z")

</div>

Thanks very much for your replying,scc.

I’ve already tried the master branch, it countered the same error, so I tried the release\_14\_1\_branch again…  
I follow the instructions here “[https://pbspro.atlassian.net/wiki/display/PBSPro/Building+PBS+Pro+Using+rpmbuild”](https://pbspro.atlassian.net/wiki/display/PBSPro/Building+PBS+Pro+Using+rpmbuild%E2%80%9D)

The platform is CentOS7, the sys info like this:

> [root@centos-master etc]# uname -a  
> Linux centos-master.novalocal 3.10.0-327.22.2.el7.x86\_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86\_64 x86\_64 x86\_64 GNU/Linux
> 
> [root@centos-master etc]# cat /etc/os-release  
> NAME=“CentOS Linux”  
> VERSION=“7 (Core)”  
> ID=“centos”  
> ID\_LIKE=“rhel fedora”  
> VERSION\_ID=“7”  
> PRETTY\_NAME=“CentOS Linux 7 (Core)”  
> ANSI\_COLOR=“0;31”  
> CPE\_NAME=“cpe:/o:centos:centos:7”  
> HOME\_URL=“[https://www.centos.org/](https://www.centos.org/)”  
> BUG\_REPORT\_URL=“[https://bugs.centos.org/](https://bugs.centos.org/)”
> 
> CENTOS\_MANTISBT\_PROJECT=“CentOS-7”  
> CENTOS\_MANTISBT\_PROJECT\_VERSION=“7”  
> REDHAT\_SUPPORT\_PRODUCT=“centos”  
> REDHAT\_SUPPORT\_PRODUCT\_VERSION=“7”
