跟随工作

跟随工作

我需要安装一个包裹. 在哪里可以获取 Ubuntu 16.04.3 x64 的依赖项?

未找到以下依赖项。

root@ubuntu-s-1vcpu-1gb-ams2-01:~# apt-get install libopal-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libopal-dev
root@ubuntu-s-1vcpu-1gb-ams2-01:~# apt-get install libpt-dev libopal-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libpt-dev
E: Unable to locate package libopal-dev
root@ubuntu-s-1vcpu-1gb-ams2-01:~# 



root@ubuntu-s-1vcpu-1gb-ams2-01:~/sipcmd# make
g++ -c -Wall  src/main.cpp -o src/main.o -I/usr/include/opal -I/usr/include/ptlib -Isrc/ -g -DDEBUG
In file included from /usr/include/opal/h323/h323.h:39:0,
                 from src/includes.h:25,
                 from src/main.h:24,
                 from src/main.cpp:24:
/usr/include/opal/h323/h323ep.h:148:30: warning: converting to non-pointer type 'unsigned int' from NULL [-Wconversion-null]
       unsigned int options = NULL,      ///<  options to pass to conneciton
                              ^
src/main.cpp: In member function 'bool Manager::SendDTMF(const PString&)':
src/main.cpp:446:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (; i < dtmf.GetSize() - 1; i++) {
                  ^
src/main.cpp:459:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         ok = (i == dtmf.GetSize() - 1 ? true : false);
                 ^
g++ -c -Wall  src/commands.cpp -o src/commands.o -I/usr/include/opal -I/usr/include/ptlib -Isrc/ -g -DDEBUG
In file included from /usr/include/opal/h323/h323.h:39:0,
                 from src/includes.h:25,
                 from src/main.h:24,
                 from src/state.h:25,
                 from src/commands.cpp:29:
/usr/include/opal/h323/h323ep.h:148:30: warning: converting to non-pointer type 'unsigned int' from NULL [-Wconversion-null]
       unsigned int options = NULL,      ///<  options to pass to conneciton
                              ^
src/commands.cpp: In member function 'virtual bool Wait::ParseCommand(const char**, std::vector<Command*>&)':
src/commands.cpp:439:30: warning: format '%u' expects argument of type 'unsigned int*', but argument 3 has type 'size_t* {aka long unsigned int*}' [-Wformat=]
   sscanf(*cmds, "%u", &millis);
                              ^
g++ -c -Wall  src/channels.cpp -o src/channels.o -I/usr/include/opal -I/usr/include/ptlib -Isrc/ -g -DDEBUG
In file included from /usr/include/opal/h323/h323.h:39:0,
                 from src/includes.h:25,
                 from src/channels.h:25,
                 from src/channels.cpp:27:
/usr/include/opal/h323/h323ep.h:148:30: warning: converting to non-pointer type 'unsigned int' from NULL [-Wconversion-null]
       unsigned int options = NULL,      ///<  options to pass to conneciton
                              ^
g++ src/main.o src/commands.o src/channels.o -o sipcmd -lopal -lpt 

答案1

一般来说:通过查看相应的页面,可以轻松找到受支持的软件包的依赖项Ubuntu 软件包搜索。

具体来说:您链接到的 tmakkonen/sipcmd 项目(上次更新于 2016 年 11 月)的 Ubuntu 依赖项列为libpt-dev& libopal-dev,两者在之后均可用启用 Universe 存储库正如@muru 所指出的上面的评论。一旦您为所需的包启用了必要的存储库,您的apt-get install命令就会按宣传的那样工作。

答案2

跟随工作

make输出只是警告(这很令人困惑)。

$ cd /root
$ apt-get install libopal-dev
$ git clone https://github.com/tmakkonen/sipcmd.git
$ make

$ ./sipcmd -P sip -u 244xxx -c 1234 -w sip1.nomado.eu -x "c0012127773456;ws2000;d**;w200;h;j4"

描述:

- login to 244xxx with password 1234 at sip1.nomado.eu
- call 0012127773456
- wait for 2000 ms
- send DTMF : * * 
- wait for 200 ms
- hangup

相关内容