Asterisk compiling problem

HI,
i created a new asterisk module then i executed:

cd /usr/local/src/asterisk-1.4.36
make
make install

but now i face the follwing error:

[Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) ]

please help

I don’t know what you mean “created a new Asterisk module” please explain.

You did not explain what system, or the steps you took before running make so it is no wonder you broke your Asterisk.

i need to change the structure of the voicemail system,so
i changed the source code in the file:

/usr/local/src/asterisk-1.4.36/apps/app_voicemail.c

then i executed the following to take the new code effect:

cd /usr/local/src/asterisk-1.4.36
make
make install

Did you get any errors?

The whole process is

make clean
./configure
make menuselect
make 
make install

i executed the commands:
[make clean
./configure
make menuselect
make
make install]

but during installing there is error like that:
make[1]: Leaving directory /usr/local/src/asterisk-1.4.36/apps' make[1]: Entering directory/usr/local/src/asterisk-1.4.36/codecs’

also the command: make menuselect gives can’t save menu.

Did configure give you any errors, those are not errors you posted.

The scripts provide error reports at the end of running.

configure gives no errors

I just read this thread, it seems like Asterisk wont start. Have you looked in /var/log/asterisk/full log file to see if there is any errors?
What if you run ps aux |grep asterisk, does this show that Asterisk is running?

grepping for asterisk gives:

root 5807 0.0 0.0 115408 976 ? S Jul16 0:55 /bin/sh /usr/sbin/safe_asterisk

also the full log file of asterisk is not found in the path /var/log/asterisk

Type amportal kill, then amportal start

my operating system is Debian and amportal is not recognized

anyway i decided to install a new system, thanks for your help and cooperation

OK.
[size=8]Note to me and Scott: Ask if they have installed FreePBX before anything else.[/size]

i already uses freePBX, but some cases can’t be performed through GUI,
i wants to know the correct steps that we must go through them to change in the source code of one of the Asterisk modules? for example if i want to change the structure of the voicemail system, i modified the source code of app_voicemail.c,

it is correct to execute make & make install for asterisk after the modifications ?

Yes, that is correct, but then you must restart Asterisk with FreePBX command amportal stop, amportal start.
If amportal is not found, then your FreePBX install is incomplete.