我正在编写用于安装 Asterisk 的 Bash 脚本。make menuselect我想使用该命令menuselect/menuselect --enable ____ menuselect.makeopts来选择构建所需的选项,而不是运行提供交互式 UI 来选择不同选项的命令。但是当我运行脚本时,我收到了这个错误:
菜单选择/菜单选择:没有那个文件或目录
如何从脚本运行此命令?
您需要先进行初步构建,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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3840 次 |
| 最近记录: |