无法安装 libjack-dev

无法安装 libjack-dev

我使用的是 Ubuntu 14.04。64 位,我正在尝试安装 linuxband。为此,我需要安装 libjack-dev 包,但当我这样做时,我收到以下消息:

Some packages could not be installed. This may mean that you have requested an 
impossible  situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libjack-dev : Depends: libjack0 (= 1:0.121.3+20120418git75e3e20b-2.1ubuntu1) but it is 
not going to be installed
E: Unable to correct problems, you have held broken packages.

关键是我确实安装了其他 libjack-jackd2,但是当我运行 linuxband 的 ./configure 时,我得到:

checking for JACK_MIDI_NEEDS_NFRAMES... no

这是列表中唯一的一个不。当我运行 make 时,它​​会生成大量未定义的引用(示例:

src/main/c/linuxband-player.c: In function ‘main’:
src/main/c/linuxband-player.c:768:2: warning: ‘g_thread_init’ is deprecated (declared at
/usr/include/glib-2.0/glib/deprecated/gthread.h:261) [-Wdeprecated-declarations]
g_thread_init(NULL);
^

或更高版本

linuxband-player.c:(.text+0x50b): undefined reference to `jack_transport_query'
linuxband-player.c:(.text+0x586): undefined reference to `jack_transport_query' 
linuxband-player.c:(.text+0x5a1): undefined reference to `jack_last_frame_time'
linuxband-player.c:(.text+0x615): undefined reference to `jack_last_frame_time'
linuxband-player.c:(.text+0x672): undefined reference to `smf_peek_next_event'
linuxband-player.c:(.text+0x6b5): undefined reference to `smf_event_is_metadata

等等)

直到结束于:

 /tmp/ccrh0o5V.o:remote_control.c:(.text+0xf01): more undefined references to `g_log' follow
collect2: error: ld returned 1 exit status
make: *** [target/linuxband-player] Error 1

有人可以帮忙吗?

答案1

libjack0我遇到过类似的情况,自动地安装,因为skype:i386它搞乱了(因为 Skype 没有适用于 Linux 的 64 位版本)。

对我来说,解决方案很简单,就是强制执行:

sudo apt-get install libjack0

然后它要求我确认安装,libjack0这意味着卸载一些其他冲突的程序(包括我这个特定情况下的 Skype)。然后它确实libjack-dev顺利安装(对我来说这是构建 Audacity 的必要条件)。

相关内容