sudo apt-get build-dep octave
无法正常工作。错误消息是
E: Build-Depends dependency for octave cannot be satisfied because the package automake cannot be found
我已将/etc/apt/sources.list
文件修改deb
为deb-src
。即使我尝试sudo apt-get install octave
,也会显示找不到包的错误。
编辑:我已将 deb-src 行添加到 sources.list 文件中(这次没有替换 deb),然后 sudo apt-get update。现在,当我尝试构建依赖项时,出现此错误:
The following packages have unmet dependencies: libgraphicsmagick++1-dev : Depends: libgraphicsmagick1-dev but it is not going to be installed.
E: Build-dependencies for octave could not be satisfied.
答案1
您可以使用以下方法安装最新版本的 Octave:
sudo apt-add-repository ppa:octave/stable
sudo apt-get update
sudo apt-get install octave
apt-get build-dep octave
或者
在您的/etc/apt/sources.list
amd64: http://packages.ubuntu.com/trusty/amd64/libgraphicsmagick3/filelist
i386: http://packages.ubuntu.com/trusty/i386/libgraphicsmagick3/download
或者
您可以下载并编译 Octave:
sudo apt-get build-dep octave
wget ftp://ftp.gnu.org/gnu/octave/octave-4.0.0.tar.gz
tar xf octave-4.0.0.tar.gz
cd octave-4.0.0/
./configure
make
sudo make install