【发布时间】:2013-11-23 22:42:30
【问题描述】:
这是我第一次使用make。我正在尝试安装 Julia 语言。所以我从 GitHub 克隆了
git clone git://github.com/JuliaLang/julia.git
然后指令说进入Julia目录并输入make。它运行了很长时间 - 我吃了一个披萨。
当我回来时,输入 Julia 不起作用。在安装快结束时,我收到一条很长的错误消息:
/usr/bin/install -c -m 644 libpcre.pc libpcreposix.pc libpcrecpp.pc '/home/john/Downloads/julia/usr/lib/pkgconfig'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 130 100 130 0 0 243 0 --:--:-- --:--:-- --:--:-- 337
0 0 0 8773k 0 0 310k 0 --:--:-- 0:00:28 --:--:-- 0
curl: (28) Operation too slow. Less than 1 bytes/sec transferred the last 15 seconds
curl: (6) name lookup timed out
make[2]: *** [openblas-v0.2.8.tar.gz] Error 6
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
我尝试了sudo make - 将sudo 放在前面似乎可以解决所有问题,但不是这个:
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
make[2]: *** [openblas-v0.2.8/config.status] Error 2
make[1]: *** [julia-release] Error 2
make: *** [release] Error 2
我可以采取哪些步骤来确保 Julia 安装正确?
我需要 2.0 版,所以我可以在我的 iPython 笔记本上使用 iJulia。如果有更简单的方法而不直接编译,我会这样做。
【问题讨论】:
-
“把 sudo 放在前面”,尤其是那些你不知道他们做什么的事情,是一个非常的坏主意。只是说。
-
通常是因为我忘记在
pip install xyz前面加上sudo来安装Python库。或apt-get install xyz。但今天我正在学习 Julia。