Ok, now it's work. This is the fix: go to the lua directory nano -w src/Makefile find the line: CFLAGS= -O2 -Wall $(MYCFLAGS) and change to CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS recompile lua: make clean make linux make install go to asterisk directory, and make ;)