lantern icon indicating copy to clipboard operation
lantern copied to clipboard

openSUSE can't be run "make lantern"

Open gaovv2000 opened this issue 10 years ago • 9 comments

When i was run command "make lantern" in terminal,return the error message :

/bin/bash: line 8: npm: command not found Makefile:191: recipe for target 'src/github.com/getlantern/flashlight/ui/resources.go' failed make: *** [src/github.com/getlantern/flashlight/ui/resources.go] Error 127

and then ,i was copy file 'src/github.com/getlantern/flashlight/ui/resources_stub.go' to 'resources.go', redo the command "make lantern", return a new error message

_Building development lantern ** VERSION was not set, using default version. This is OK while in development. Build tags: Extra ldflags:

github.com/getlantern/flashlight/ui

src/github.com/getlantern/flashlight/ui/ui.go:59: undefined: Resources

pkg-config --cflags gtk+-3.0 appindicator3-0.1

Package appindicator3-0.1 was not found in the pkg-config search path. Perhaps you should add the directory containing `appindicator3-0.1.pc' to the PKG_CONFIG_PATH environment variable No package 'appindicator3-0.1' found pkg-config: exit status 1 Makefile:337: recipe for target 'lantern' failed make: *** [lantern] Error 2_

Was I wrong? what should I do?

gaovv2000 avatar Apr 25 '16 17:04 gaovv2000

you can use sudo apt-get install libappindicator3-dev to resolve the following problem:

pkg-config --cflags gtk+-3.0 appindicator3-0.1 Package appindicator3-0.1 was not found in the pkg-config search path. Perhaps you should add the directory containing 'appindicator3-0.1.pc' to the PKG_CONFIG_PATH environment variable No package 'appindicator3-0.1' found pkg-config: exit status 1

houzihz avatar May 12 '16 01:05 houzihz

Yeah unfortunately we only currently support ubuntu officially @gaovv2000, but the app indicator thing should be the primary issue if you want to submit a patch!

myleshorton avatar May 12 '16 14:05 myleshorton

I have the same trouble,opensuse has installed libgtk3.0, but the appindicator3-0.1 is ubuntu python3.0 API, so I can`t install the Lantern on opensuse ;

Will some one handle it

banrieen avatar May 13 '16 07:05 banrieen

Ubuntu 16.04 have the same trouble.

auroua avatar May 28 '16 11:05 auroua

In Ubuntu 16.04, remember to use sudo apt-get install libgtk-3-dev.

paperplane1230 avatar May 29 '16 10:05 paperplane1230

Package appindicator3-0.1 was not found in the pkg-config search path. Perhaps you should add the directory containing `appindicator3-0.1.pc' to the PKG_CONFIG_PATH environment variable No package 'appindicator3-0.1' found pkg-config: exit status 1 make: *** [lantern] Error 2

in centos linux7

halu126 avatar Aug 24 '16 06:08 halu126

There is a same trouble in centos7. @halu126

bearxidian avatar Oct 11 '16 11:10 bearxidian

Fix "No package ..." error: sudo apt-get install libgtk-3-dev libappindicator3-dev -y

I got a problem in raspbian:

...
gcc -I . -fPIC -marm -pthread -fmessage-length=0 -fdebug-prefix-map=$WORK=/tmp/go-build -gno-record-gcc-switches -o $WORK/github.com/getlantern/systray/_obj/_all.o $WORK/github.com/getlantern/systray/_obj/_cgo_export.o $WORK/github.com/getlantern/systray/_obj/systray_nonwindows.cgo2.o $WORK/github.com/getlantern/systray/_obj/systray_linux.o -g -O2 -Wl,-r -nostdlib -Wl,--build-id=none
/usr/local/go/pkg/tool/linux_arm/compile -o $WORK/github.com/getlantern/systray.a -trimpath $WORK -p github.com/getlantern/systray -buildid f1af81965eac72b4adfb45cd02a29f7bca3d4e6a -D _/home/pi/lantern/src/github.com/getlantern/systray -I $WORK -I /home/pi/lantern/pkg/linux_arm -pack ./systray.go $WORK/github.com/getlantern/systray/_obj/_cgo_gotypes.go $WORK/github.com/getlantern/systray/_obj/systray_nonwindows.cgo1.go $WORK/github.com/getlantern/systray/_obj/_cgo_import.go
pack r $WORK/github.com/getlantern/systray.a $WORK/github.com/getlantern/systray/_obj/_all.o # internal
Makefile:366: recipe for target 'lantern' failed

xatgithub avatar Dec 21 '16 06:12 xatgithub

sudo apt-get install libgtk-3-dev libappindicator3-dev should fix the problem

wangmu0579 avatar Sep 09 '17 02:09 wangmu0579