# Error while compiling with Make

**URL:** <https://community.asterisk.org/t/error-while-compiling-with-make/23732>\
**Category:** Asterisk Support\
**Created:** [October 25, 2008, 11:07am UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732 "2008-10-25T11:07:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![xean](https://avatars.discourse-cdn.com/v4/letter/x/90ced4/32.png) [@xean](https://community.asterisk.org/u/xean)\
**Post date:** [October 25, 2008, 11:07am UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/1 "2008-10-25T11:07:30Z")

</div>

Hello,

I have a problem to compile Asterisk.

./configure is running without an Error.

But when I start “make install” it wil stop at following line with an Error:

Installing modules from tests…  
/bin/sh: -c: line 1: syntax error near unexpected token `;' /bin/sh: -c: line 1:`for x in ; do /usr/bin/install -c -m 755 $x /usr/lib/asterisk/modules ; done’  
make[1]: \*\*\* [install] Error 2  
make: \*\*\* [tests-install] Error 2

Has somebody any Idea?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![batrams](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@batrams](https://community.asterisk.org/u/batrams)\
**Post date:** [October 26, 2008, 2:15pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/2 "2008-10-26T14:15:44Z")

</div>

Did you ‘make’ before ‘make install’ ?

---

<div class="post-metadata">

**Author:** ![xean](https://avatars.discourse-cdn.com/v4/letter/x/90ced4/32.png) [@xean](https://community.asterisk.org/u/xean)\
**Post date:** [October 26, 2008, 2:23pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/3 "2008-10-26T14:23:58Z")

</div>

what did you mean?

First I did .configure than make and the last command was make install.

Make install ist the command which brought the error.

---

<div class="post-metadata">

**Author:** ![batrams](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@batrams](https://community.asterisk.org/u/batrams)\
**Post date:** [October 26, 2008, 3:46pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/4 "2008-10-26T15:46:09Z")

</div>

Does the ‘make’ process complete without error?

---

<div class="post-metadata">

**Author:** ![xean](https://avatars.discourse-cdn.com/v4/letter/x/90ced4/32.png) [@xean](https://community.asterisk.org/u/xean)\
**Post date:** [October 26, 2008, 6:49pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/5 "2008-10-26T18:49:30Z")

</div>

The make process is running without an error. Only make install brought the error i posted yesterday.

---

<div class="post-metadata">

**Author:** ![za3toor](https://avatars.discourse-cdn.com/v4/letter/z/3ec8ea/32.png) [@za3toor](https://community.asterisk.org/u/za3toor)\
**Post date:** [October 26, 2008, 11:09pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/6 "2008-10-26T23:09:33Z")

</div>

here is what you should type

make clean  
./configure  
make  
make menuselect \<— Select what you need from sounds and modules  
make install

enjoy

---

<div class="post-metadata">

**Author:** ![xean](https://avatars.discourse-cdn.com/v4/letter/x/90ced4/32.png) [@xean](https://community.asterisk.org/u/xean)\
**Post date:** [October 27, 2008, 2:41pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/7 "2008-10-27T14:41:07Z")

</div>

Thank you.

But this is the way I tried it befor and i tried it now again. The same Error as before.

I dont know why…

---

<div class="post-metadata">

**Author:** ![za3toor](https://avatars.discourse-cdn.com/v4/letter/z/3ec8ea/32.png) [@za3toor](https://community.asterisk.org/u/za3toor)\
**Post date:** [October 27, 2008, 2:44pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/8 "2008-10-27T14:44:23Z")

</div>

try to find which module instillation is causing the error.

so uncheck all the modules and leave just one in the “make meneuselect”

if the installation works, then add another one… untill you find the problem

---

<div class="post-metadata">

**Author:** ![GregoryCW](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@GregoryCW](https://community.asterisk.org/u/GregoryCW)\
**Post date:** [November 18, 2008, 1:22am UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/9 "2008-11-18T01:22:31Z")

</div>

I’m having the same issue. Added a number of applications through yum. Just not working.

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 18, 2008, 11:44am UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/10 "2008-11-18T11:44:52Z")

</div>

make menuconfig should precede make. E.g. it sets compiler options.

---

<div class="post-metadata">

**Author:** ![Raffles](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Raffles](https://community.asterisk.org/u/Raffles)\
**Post date:** [November 18, 2008, 12:02pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/11 "2008-11-18T12:02:11Z")

</div>

What version of Asterisk?

---

<div class="post-metadata">

**Author:** ![GregoryCW](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@GregoryCW](https://community.asterisk.org/u/GregoryCW)\
**Post date:** [November 18, 2008, 5:48pm UTC](https://community.asterisk.org/t/error-while-compiling-with-make/23732/12 "2008-11-18T17:48:49Z")

</div>

I was having a similar problem. I am compiling v1.6 current.

I suspect you are missing some dependent modules. I have not found a good list and now that my copy is working, I will go back and see if I can id the required modules.

After ./config, you need make menuselect. That is where I was breaking down. If you don’t run that script then you get the defaults, not necessarily a bad thing. But by running it, you get a lot of info including some good debug info. That is where I found that I was missing GTK2.

The other point is you didn’t mention if you had already compiled dahdi and libpri.
