無法安裝 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 的要求)。

相關內容