天天看点

Ubuntu14.04安装配置GO语言编译器Liteide

一:安装GO语言环境

参考文章:Ubuntu14.04环境下安装配置GO语言开发环境

二:安装Liteide

下载地址:https://sourceforge.net/projects/liteide/files/

选择对应版本,我这里选择X32.2中的64位QT4版本

Ubuntu14.04安装配置GO语言编译器Liteide
Ubuntu14.04安装配置GO语言编译器Liteide

解压安装包到/usr/local目录

Ubuntu14.04安装配置GO语言编译器Liteide

编辑.bashrc文件,将export PATH=/usr/local/liteide/bin:$PATH添加到最后一行,运行source ~/.bashrc刷新

三:配置Liteide

安装好liteide后还需要进行相应的配置才能编译GO程序,终端输入liteide启动编辑器

Ubuntu14.04安装配置GO语言编译器Liteide

点击选择系统环境,这里我们选择Linux64位环境

Ubuntu14.04安装配置GO语言编译器Liteide

点击此处配置环境变量,其中GOROOT和GOPATH跟GO安装位置相同即可

Ubuntu14.04安装配置GO语言编译器Liteide
Ubuntu14.04安装配置GO语言编译器Liteide
Ubuntu14.04安装配置GO语言编译器Liteide

打开或编写一个GO源码,点击BR即可编译链接运行

Ubuntu14.04安装配置GO语言编译器Liteide
Ubuntu14.04安装配置GO语言编译器Liteide