如何以编程方式配置 Asterisk `menuselect` 构建选项?
How to configure Asterisk `menuselect` build options programmatically?
我正在编写一个 Bash 脚本来安装 Asterisk。我想使用命令 menuselect/menuselect --enable ____ menuselect.makeopts
到 [=18=,而不是 运行 宁 make menuselect
命令,它提供交互式 UI 到 select 不同的选项] 构建所需的选项。但是当我 运行 脚本时,我得到这个错误:
menuselect/menuselect: No such file or directory
如何从脚本 运行 此命令?
您需要先使用 make menuselect.makeopts
进行初步构建,然后才能 运行 menuselect
。这是我的构建脚本的一部分:
pushd /usr/local/src/asterisk-13.5.0/
./configure --libdir=/usr/lib64 --without-dahdi --without-pri --without-gtk2 \
--without-radius --without-x11 --without-speex --with-pjproject-bundled
make menuselect.makeopts
menuselect/menuselect \
--disable-category MENUSELECT_ADDONS \
--disable-category MENUSELECT_APPS \
--enable app_authenticate --enable app_cdr --enable app_celgenuserevent \
--enable app_channelredirect --enable app_chanisavail --enable app_chanspy \
...
make
make install WGET_EXTRA_ARGS="--no-verbose"
make config
popd
我正在编写一个 Bash 脚本来安装 Asterisk。我想使用命令 menuselect/menuselect --enable ____ menuselect.makeopts
到 [=18=,而不是 运行 宁 make menuselect
命令,它提供交互式 UI 到 select 不同的选项] 构建所需的选项。但是当我 运行 脚本时,我得到这个错误:
menuselect/menuselect: No such file or directory
如何从脚本 运行 此命令?
您需要先使用 make menuselect.makeopts
进行初步构建,然后才能 运行 menuselect
。这是我的构建脚本的一部分:
pushd /usr/local/src/asterisk-13.5.0/
./configure --libdir=/usr/lib64 --without-dahdi --without-pri --without-gtk2 \
--without-radius --without-x11 --without-speex --with-pjproject-bundled
make menuselect.makeopts
menuselect/menuselect \
--disable-category MENUSELECT_ADDONS \
--disable-category MENUSELECT_APPS \
--enable app_authenticate --enable app_cdr --enable app_celgenuserevent \
--enable app_channelredirect --enable app_chanisavail --enable app_chanspy \
...
make
make install WGET_EXTRA_ARGS="--no-verbose"
make config
popd