Cross compile asterisk on openwrt

i have asterisk corss compiled and ported on openwrt. But wenn i under /opt/sbin/ run ./asterisk , is the error: Unable to open pid file ‘/opt/var/run/asterisk.pid’; No such file or directory. wenn i run ./rasterisk (-r), is the error : Unable to connect to remote asterisk (does /opt/var/run/asterisk.ctl exist?) wenn i run ./rasterisk -vvvvvvc , is the error: Cannot read termcap database; using dumb terminal settings. Unable to remote asterisk (does /opt/var/run/asterisk.ctl exist?)
Anyone can help me?
where is the error?
thanks in advance!!!