Skip to content

Instantly share code, notes, and snippets.

@chzyer
Created January 11, 2013 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chzyer/4508366 to your computer and use it in GitHub Desktop.
Save chzyer/4508366 to your computer and use it in GitHub Desktop.
Julia安装笔记 for Ubuntu

大部分教程在这里面有 GitHub 如果在make的时候出现这个错误

[lapack_install] Error 127

主要是没有安装libncurses5-dev, gfortran,直接apt-get就行了. 还需要安装m4,

sudo apt-get install m4

过程中需要安装llvm3.0,如果连接比较慢的话,可以先翻墙下载后,将文件cp到./julia/external/llvm-3.0.tar.gz,然后再继续make就行了.
我试着自己安装llvm后发现make julia还是要再安装一遍...所以就不要自己安装了.
如果你恰好已经安装了..可以把解压后的llvm-3.0文件夹也一同复制进./external

如果根据git上的教程,如果你是ubuntu 11.10,将修改Make.inc中USE_SYSTEM_READLINE值为1.然后出现

/usr/local/lib/libreadline.so: undefined reference to `PC'
/usr/local/lib/libreadline.so: undefined reference to `tgetflag'
/usr/local/lib/libreadline.so: undefined reference to `tgetent'
/usr/local/lib/libreadline.so: undefined reference to `UP'
/usr/local/lib/libreadline.so: undefined reference to `tputs'
/usr/local/lib/libreadline.so: undefined reference to `tgoto'
/usr/local/lib/libreadline.so: undefined reference to `tgetnum'
/usr/local/lib/libreadline.so: undefined reference to `BC'
/usr/local/lib/libreadline.so: undefined reference to `tgetstr' 

这是因为readline没有正确安装的缘故.改回0让julia自己下载安装就行.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment