Debian
嘗試在 Octave 4.4.1 上安裝 Image 包
我正在使用以下版本的linux。
e130167@instance-1:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.6 (stretch) Release: 9.6 Codename: stretch
我有 Octave 版本 4.4.1 並正在嘗試為 Octave https://octave.sourceforge.io/image/index.html安裝圖像包。我下載了 tar.gz 文件並執行了以下命令並得到了一個錯誤
octave:2> pkg install image-2.8.0.tar.gz pkg: please install the Debian package "liboctave-dev" to get the mkoctfile command error: called from __gripe_missing_component__ at line 53 column 3 configure_make at line 44 column 7 install at line 186 column 7 pkg at line 437 column 9 octave:2>
所以我然後嘗試安裝 liboctave-dev 但我現在收到此錯誤。
e130167@instance-1:~$ sudo apt-get install liboctave-dev Reading package lists... Done Building dependency tree Reading state information... Done 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: liboctave-dev : Depends: liboctave3v5 (= 4.0.3-3) but it is not going to be installed Depends: octave (= 4.0.3-3) but 4.4.1-2~bpo9+1 is to be installed E: Unable to correct problems, you have held broken packages.
由於您從 Stretch backports 安裝了 Octave,因此您也需要從那里安裝開發包:
sudo apt-get install -t stretch-backports liboctave-dev