为什么在Julia中添加图像库会失败?

时间:2015-07-23 21:55:30

标签: inno-setup julia

我在Windows 7下开始使用Julia 0.3.10。语言安装并运行,但我无法安装Images包。当我输入:

Pkg.add("Images")

我得到的输出看起来不错,但接下来的行。看起来Inno Setup已经检测到版本问题,但我不确定哪个版本存在问题。   我已经尝试删除所有“julia”并重新下载,但无济于事。另外,我在网上搜索了这个错误消息的各种部分,也是stackoverflow;似乎没什么关系。

Pkg.add("Images")之后,几十个看似正常的线,然后:

INFO: Building Images
INFO: Installing ImageMagick library
INFO: Attempting to Create directory C:\Users\Jim\.julia\v0.3\Images\deps\downloads
INFO: Attempting to Create directory C:\Users\Jim\.julia\v0.3\Images\deps\usr\lib\x64
INFO: Attempting to Create directory C:\Users\Jim\.julia\v0.3\Images\deps\downloads
INFO: Directory C:\Users\Jim\.julia\v0.3\Images\deps\downloads already created
INFO: Downloading file [link at imagemagick] download/binaries/ImageMagick-6.9.1-9-Q16-x64-dll.exe
INFO: Done downloading file [...]ImageMagick-6.9.1-9-Q16-x64-dll.exe
INFO: Attempting to Create directory C:\Users\Jim\.julia\v0.3\Images\deps\downloads
INFO: Directory C:\Users\Jim\.julia\v0.3\Images\deps\downloads already created
INFO: Downloading file [link at julialang.s3.amazonaws.com]/bin/winnt/extras/innounp.exe
INFO: Done downloading file [link at julialang.s3.amazonaws.com]/bin/winnt/extras/innounp.exe
INFO: Changing Directory to C:\Users\Jim\.julia\v0.3\Images\deps\downloads

这是我看到麻烦的第一个迹象:

Signature detected: Inno Setup Setup Data (5.5.6) (u)
This is not directly supported, but i'll try to unpack it as version 5500; Version detected: 5506 (Unicode)
Critical error: The setup files are corrupted. Please obtain a new copy of the program.

Unpacking failed. This version is not supported.

===============================[ ERROR: Images ]================================

1 个答案:

答案 0 :(得分:3)

讨厌windows的另一个原因。当然在Ubuntu上添加这个软件包没有问题,所以我切换到我的Windows安装,并且看起来和你有同样的问题。事实证明错误信息非常神秘,但这就是我解决问题的方法。首先我做了:

    Pkg.update()

然后我完全退出了julia,然后我去了http://www.imagemagick.org/script/binary-releases.php#windows并下载了ImageMagick-6.9.1-9-Q16-x64-dll.exe 确保在通过下载程序选项时选中标记为:"为C和C ++安装开发标题和库"。

我允许安装程序安装到其默认目录,然后重新打开julia并使用以下命令:

    Pkg.build("Images")

它成功地做了,然后我能够使用正常命令的图像包:

   using Images