lime icon indicating copy to clipboard operation
lime copied to clipboard

build failed: bin/pegparser: not found

Open mnagel opened this issue 12 years ago • 13 comments

I am trying to compile limetext on Ubuntu 12.04

I was following the instructions from https://github.com/limetext/lime/wiki/Building

cd $GOPATH/src/lime/build
cmake ..  # or use the cmake gui to create a build system suitable for you
make      # presuming you told cmake to generate makefiles
make test # To run all tests

In the "make"-step I get the following error:

...
[ 55%] Completed 'Python3'
[ 55%] Built target Python3
Scanning dependencies of target godep
[ 58%] Generating /home/michael/da/fastergo/pkg/linux_amd64/github.com/howeyc/fsnotify.a
[ 58%] Built target godep
Scanning dependencies of target fix
[ 62%] Generating /home/michael/da/fastergo/pkg/linux_amd64/github.com/quarnster/parser.a
[ 65%] Generating /home/michael/da/fastergo/bin/pegparser
[ 68%] Generating ../backend/loaders/json/json_generated.go
/bin/sh: 1: /home/michael/da/fastergo/bin/pegparser: not found
make[2]: *** [../backend/loaders/json/json_generated.go] Error 127
make[1]: *** [CMakeFiles/fix.dir/all] Error 2
make: *** [all] Error 2
$ echo $GOPATH
/home/michael/da/fastergo

Please advise!

Best Regards Michael

mnagel avatar Feb 14 '14 14:02 mnagel

Please try this with your GOPATH=/home/michael/da/fastergo in place: go get github.com/quarnster/parser/pegparser If it does not produce any output you're good. Try to build lime again (only make).

The qml frontend fails building with a recent qml package at the moment.

EdVanDance avatar Feb 14 '14 15:02 EdVanDance

does not fix it

michael@diplomarbeit:*ergo/src/lime/build$ go get github.com/quarnster/parser/pegparser
michael@diplomarbeit:*ergo/src/lime/build$ make
[ 27%] Built target Oniguruma
[ 55%] Built target Python3
[ 58%] Built target godep
[ 62%] Generating /home/michael/da/fastergo/bin/pegparser
[ 65%] Generating ../backend/loaders/json/json_generated.go
/bin/sh: 1: /home/michael/da/fastergo/bin/pegparser: not found
make[2]: *** [../backend/loaders/json/json_generated.go] Error 127
make[1]: *** [CMakeFiles/fix.dir/all] Error 2
make: *** [all] Error 2
michael@diplomarbeit:*ergo/src/lime/build2$ echo $GOPATH
/home/michael/da/fastergo
michael@diplomarbeit:*ergo/src/lime/build$


michael@diplomarbeit:*ergo/src/lime/build$ ls -la /home/michael/da/fastergo/pkg/linux_amd64/github.com/quarnster        
total 912
drwxr-xr-x 4 michael michael   4096 Feb 14 15:39 .
drwxr-xr-x 4 michael michael   4096 Feb 14 15:39 ..
drwxr-xr-x 2 michael michael   4096 Feb 14 15:39 parser
drwxr-xr-x 2 michael michael   4096 Feb 14 15:39 util
-rw-r--r-- 1 michael michael 915732 Feb 14 15:39 parser.a

mnagel avatar Feb 14 '14 20:02 mnagel

PS:

michael@diplomarbeit:*ergo/src/lime/build$ env|sort|grep GO
GOARCH=amd64
GOBIN=/home/michael/gitclones/go/bin
GOOS=linux
GOPATH=/home/michael/da/fastergo
GOROOT=/home/michael/gitclones/go

mnagel avatar Feb 14 '14 20:02 mnagel

Just wait a little bit please. Building will be much simpler soon.

EdVanDance avatar Feb 15 '14 09:02 EdVanDance

roger that! what timeframe are we talking about? hours? days? weeks? month?

mnagel avatar Feb 15 '14 15:02 mnagel

We're almost there. Just a little clean up required.

EdVanDance avatar Feb 15 '14 15:02 EdVanDance

Merged now, please see the latest build instructions (and please also help us update them if needed)

quarnster avatar Feb 16 '14 22:02 quarnster

Thanks! I am travelling right now, will report back when I am back home.

mnagel avatar Feb 17 '14 12:02 mnagel

Still no luck:

michael@diplomarbeit:~/da/fastergo/src$ go get github.com/limetext/lime/frontend/termbox
# pkg-config --cflags python-3.3
Package python-3.3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `python-3.3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'python-3.3' found
exit status 1
# github.com/limetext/rubex
/home/michael/gitclones/diplomarbeit/fastergo/src/github.com/limetext/rubex/regex.go:7:23: fatal error: oniguruma.h: No such file or directory
compilation terminated.

mnagel avatar Feb 20 '14 13:02 mnagel

Seems like you're missing python 3.3 and oniguruma.

You're on Ubuntu 12.04 right? So you should simply do what travis does.

EdVanDance avatar Feb 20 '14 13:02 EdVanDance

You are right. I will report back later.

mnagel avatar Feb 20 '14 13:02 mnagel

Is this still valid? We should work on closing old issues--they're just clutter as is and can always be reopened later. @quarnster what do you think? Also @mnagel if you're still trying to build, check out #270

BenedictEggers avatar May 04 '14 02:05 BenedictEggers

Closing, please re-open if it's still an issue and it's not covered by any other open issue number

quarnster avatar May 04 '14 09:05 quarnster