wdoekes / asterisk-chan-dongle

chan_dongle channel driver for Huawei UMTS cards, works with Asterisk 14+
Other
299 stars 104 forks source link

freepbx distro /usr/bin/install: missing destination file operand after ‘chan_dongle.so’ #49

Closed alaa2003 closed 6 years ago

alaa2003 commented 6 years ago

hello i could compile successfully on debian 8.8 x64 today i downloaded freepbx distro which built on centos7 x64 https://downloads.freepbxdistro.org/ISO/SNG7-FPBX-64bit-1710-1.iso i could run first three commands without any issue but stuck on last command

[root@freepbx asterisk-chan-dongle]# make install strip chan_dongle.so /usr/bin/install -c -m 755 chan_dongle.so /usr/bin/install: missing destination file operand after ‘chan_dongle.so’ Try '/usr/bin/install --help' for more information. make: *** [install] Error 1

could you fix and help regards Alaa

wdoekes commented 6 years ago

The first three commands are:

$ ./bootstrap
$ ./configure --with-astversion=13.7
$ make

Those are the only commands.

The rest of the README says:

If you run a different version of Asterisk, you'll need to update the 13.7 as appropriate, obviously. If you did not make install Asterisk in the usual location and configure cannot find the asterisk header files in /usr/include/asterisk, you may optionally pass --with-asterisk=PATH/TO/INCLUDE.

It does not say "type make install".

Right now, the build script, has no module directory detection. It probably should, so make install works for those (few) that use it. For now, you'll have to find the moduledir yourself. It's probably in /usr/lib/asterisk/modules. Just copy the chan_dongle.so there.

alaa2003 commented 6 years ago

Thanks a lot it worked.. as you mentioned copy the chan_dongle.so to : x32 OS module dir mostly /usr/lib/asterisk/modules x64 OS module dir mostly /usr/lib64/asterisk/modules

then load it from asterisk

asterisk -rvvvvv module load chan_dongle.so

wdoekes commented 6 years ago

Should work for you now.