八度音读功能 [英] Octave imread function
问题描述
我在Ubuntu 14.04机器上安装了最新的Octave.但是,当我尝试运行imread命令时,它显示以下错误消息:
I installed latest Octave on Ubuntu 14.04 machine. However, when I tried to run imread command, it showed the following error message:
octave:12> imread('newfile.png')
error: imread: invalid image file: /usr/lib/x86_64-linux-gnu/octave/3.8.1/oct/x86_64-pc-linux-gnu/__magick_read__.oct: failed to load: /usr/lib/x86_64-linux-gnu/octave/3.8.1/oct/x86_64-pc-linux-gnu/__magick_read__.oct: undefined symbol: _ZN6Magick5ColorC1Ehhh
error: called from:
error: /usr/share/octave/3.8.1/m/image/private/__imread__.m at line 181, column 7
error: /usr/share/octave/3.8.1/m/image/private/imageIO.m at line 66, column 26
error: /usr/share/octave/3.8.1/m/image/imread.m at line 107, column 30
有人可以建议如何解决吗?
Can someone please suggest how to solve it?
谢谢!
推荐答案
按照以下步骤为我工作[作者:ChristofferCronström(赞美)]:
Following these steps worked for me [Author: Christoffer Cronström (hymyly)]:
安装构建八度所需的dev软件包.
Install the dev packages needed to build octave.
sudo apt-get build-dep octave
获取官方源代码包.在干净的目录中执行此操作,因为它会被污染.
Get the official source package. Do this in a clean directory, because it will get polluted.
cd ~/some/suitable/directory
apt-get source octave
构建它.我大约花了一个小时.
Build it. This took roughly an hour for me.
cd octave-3.8.2
dpkg-buildpackage
从构建目录中运行它:
./run-octave
...或最优选将其安装在官方八度音阶上:
...or most preferably install it over the official octave:
cd ..
sudo dpkg --install octave_3.8.2-4_amd64.deb
来自: https://bugs.launchpad.net/ubuntu/+ source/octave/+ bug/1372202
这篇关于八度音读功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!