Unable to connect to remote asterisk (does /var/run/asterisk

my os is centOS 5.X
i installed asterisk1.8.3.2 via Installing Asterisk With Yum
i used command as below:
“yum install asterisk18 asterisk18-configs asterisk18-voicemail dahdi-linux
dahdi-tools libpri”

but i will run
#asterisk -r
showing error "Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) "

i see /var/log/asterisk/meessage
showing “[Apr 5 17:21:16] ERROR[13757] /usr/src/redhat/BUILD/asterisk18- Memory Allocation Failure in function internal_ao2_alloc at line 295 of astobj2.c”


[Apr 5 17:41:11] WARNING[32359] loader.c: Error loading module ‘res_pktccops’: /usr/lib/asterisk/modules/res_pktccops.so: cannot open shared object file: No such file or directory
[Apr 5 17:41:11] WARNING[32359] loader.c: Error loading module ‘chan_mgcp.so’: /usr/lib/asterisk/modules/chan_mgcp.so: undefined symbol: ast_pktccops_gate_alloc
[Apr 5 17:41:11] WARNING[32359] loader.c: Module ‘chan_mgcp.so’ could not be loaded.
[Apr 5 17:41:11] WARNING[32359] res_musiconhold.c: Cannot open dir /var/lib/asterisk/moh or dir does not exist
[Apr 5 17:41:11] WARNING[32359] res_musiconhold.c: No music on hold classes configured, disabling music on hold.
[Apr 5 17:41:11] NOTICE[32359] chan_skinny.c: Configuring skinny from skinny.conf

At first sight, you do not have enough RAM, however, given more details, it might turn out to be issues.asterisk.org/view.php?id=19065

The rasterisk error simply means that asterisk proper is not running.

Installing from yum almost certainly means you cannot progress this any further, as the package is unlikely to have been built with options compatible with submitting a bug report, and you will have to wait for any fix to find its way into the package.