系统相关
首页 > 系统相关> > liteIDE在Ubuntu14安装过程中编译报错

liteIDE在Ubuntu14安装过程中编译报错

作者:互联网

安装必要工具

首先安装以下工具

go get -u github.com/visualfc/gotools
go get -u github.com/visualfc/gocode

然后切换到解压后的liteide的目录

cd /usr/local/liteide/build 

下面开始安装官网提供的安装步骤安装:

$ sudo apt-get update
$ sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui libqtwebkit-dev g++

$ git clone https://github.com/visualfc/liteide.git
$ cd liteide/build
$ ./update_pkg.sh
$ QTDIR=/usr ./build_linux.sh

## Run it: ##
$ cd liteide/build/liteide/bin
$ ./liteide

当执行到 QTDIR=/usr ./build_linux.sh的时候,就产生类似下面这的报错:

build liteide tools ...
can't load package: cannot find module providing package github.com/visualfc/gotools: working directory is not part of a module

错误信息就是不能加载这个包,那怎么办,我们手动把这个安装脚本要下载的包给下载下来,

go install github.com/visualfc/gotools
go install github.com/visualfc/gocode
go install github.com/fatih/gomodifytags

安装无误后,就把build_linux.sh 里面 这几行给注释掉

 56 #go install -ldflags "-s" -v github.com/visualfc/gotools
 57
 58 #if [ $? -ge 1 ]; then
 59 #       echo 'error, go install fail'
 60 #       exit 1
 61 #fi
 62
 63 #go install -ldflags "-s" -v github.com/visualfc/gocode
 64
 65 #if [ $? -ge 1 ]; then
 66 #       echo 'error, go install fail'
 67 #       exit 1
 68 #fi
 69
 70 #go install -ldflags "-s" -v github.com/fatih/gomodifytags
 71 #
 72 #if [ $? -ge 1 ]; then
 73 #       echo 'error, go install fail'
 74 #       exit 1
 75 #fi

然后重新执行 QTDIR=/usr ./build_linux.sh 就可以了。

标签:github,visualfc,报错,install,go,liteide,Ubuntu14,liteIDE,com
来源: https://www.cnblogs.com/liaojiafa/p/12798025.html