Skip to content

Building on Fedora 21

Felix Laurie von Massenbach edited this page Feb 16, 2015 · 6 revisions

Prerequisites

Use go from the latest source: https://golang.org/doc/install

  1. mkdir limetext
  2. cd limetext
  3. wget https://storage.googleapis.com/golang/go1.4.1.src.tar.gz
  4. cd go/src
  5. bash build.bash
  6. cd -
  7. sh setup.sh # The shell written below

Quick Script for Fedora 21

#!/bin/sh
sudo yum install oniguruma-devel
export GOROOT=<where you put go 1.4.1>
export PATH=$GOROOT/bin:$PATH
export SRCPATH=$PWD
export GOPATH=$SRCPATH
go get -u github.com/nsf/termbox-go
go get -u github.com/limetext/rubex
go get -u github.com/limetext/lime/backend
go get -u github.com/limetext/lime/frontend/termbox
cd $SRCPATH/src/github.com/limetext/lime
git submodule update --init
cd $SRCPATH/src/github.com/limetext/lime/frontend/termbox
go build
go install
termbox
#
# While things run here.  There seems to be a problem due to relative path
# references in the source code.  i.e. running termbox from anywhere else
# fails to find build dependencies.  Knowing what the full path should be from
# natural go infrastructure would eliminate this problem.
#
# install actually installed in $GOPATH/bin/termbox  but running it from there
# fails dismally, due to relative path imports which go is highly sensitive and brittle about.
#