# Cross compile asterisk on openwrt

**URL:** <https://community.asterisk.org/t/cross-compile-asterisk-on-openwrt/20909>\
**Category:** Asterisk General\
**Created:** [May 13, 2008, 11:32am UTC](https://community.asterisk.org/t/cross-compile-asterisk-on-openwrt/20909 "2008-05-13T11:32:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gebecom](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@gebecom](https://community.asterisk.org/u/gebecom)\
**Post date:** [May 13, 2008, 11:32am UTC](https://community.asterisk.org/t/cross-compile-asterisk-on-openwrt/20909/1 "2008-05-13T11:32:54Z")

</div>

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!!!
