Error while compiling with Make

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.

Did you ‘make’ before ‘make install’ ?

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.

Does the ‘make’ process complete without error?

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

here is what you should type

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

enjoy

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…

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

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

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

What version of Asterisk?

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.