LN-Zap / lndconnect

Generate QRCode to connect apps to lnd
MIT License
94 stars 23 forks source link

can't install lndconnect #20

Open http402 opened 4 years ago

http402 commented 4 years ago

hello i'm kind of new to this so bear with me :-)

trying to connect zap android wallet to my node.

using the mobile menu of raspi failed to create the qr code, so i tried it manually following this guide: https://openoms.github.io/bitcoin-tutorials/Zap_to_RaspiBlitz_through_Tor.html

worked until i get:

admin@raspberrypi:/usr/local/gocode/src/github.com/LN-Zap/lndconnect $ make
go get ./...
# crypto/ecdsa
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:16:14: undefined: signGeneric
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:21:9: undefined: verifyGeneric
make: *** [Makefile:4: dep] Error 2

any ideas what i should do?

sambradbury commented 3 years ago

I'm also having a similar issue. admin@"....."-desktop:~/go/src/github.com/LN-Zap/lndconnect$ make go get ./... go install -v ./..

tgienger commented 3 years ago

After go install -v ./.. Nothing happens and lndconnect is non existent. Anyone able to get this installed anymore?

tradewind886 commented 3 years ago

experiencing the same issue, appears to be missing dependencies under lightningnetwork/lnd/tor

theres some documentation available in node-lndconnect that describes how to form the lndconnect string

OrbitalT commented 3 years ago

Check the version of lnd in pkg/mod/github.com/lightningnetwork you might have v0.0.2 which does not have the tor dependencies. How I fixed below,

In your lndconnect file

Flobee1 commented 3 years ago

I have a similar issue. Trying to run instructions from here: https://github.com/LN-Zap/lndconnect

running: go get -d github.com/LN-Zap/lndconnect

in return seeing:

github.com/LN-Zap/lndconnect imports
        github.com/lightningnetwork/lnd/tor: cannot find module providing package github.com/lightningnetwork/lnd/tor

Following the above directions from @OrbitalT and moving to lndconnect folder to run go mod init .

I get go: invalid module path ".": is a local import path

I seem to be misunderstanding something here. I do have lnd@v0.0.2 and lightning-onion@v1.0.2-0.20200501022730-3c8c8d0b89ea in pkg/mod/github.com/lightningnetwork

OrbitalT commented 3 years ago

@Flobee1 The issue is that lnd@v0.0.2 does not ship with tor so we have to get the latest in our case 0.12.1-beta.

The go mod init is used to make the go.mod file for lndconnect (try without the . at the end as I have a different path)

sipsorcery commented 3 years ago

Just in case it helps anyone the steps below worked for me after a lot of trial and error (I am not a Go developer and use it so infrequently that I both forget how modules work or they change from the notes I've kept):

~$ git clone https://github.com/LN-Zap/lndconnect
~/lndconnect$ go mod init github.com/lndconnect/v2
~/lndconnect$ go mod edit -require github.com/lightningnetwork/lnd@v0.12.1-beta
~/lndconnect$ go build
~/lndconnect$ sudo cp lndconnect /usr/local/bin/lndconnect
~/lndconnect$ lndconnect --configfile=/etc/lnd/lnd.conf -o
Flobee1 commented 3 years ago

@sipsorcery this got me up and running! I had to do some additional

go get github.com/****

commands as prompted and has some permission issues to sort out, but I've been able to generate a QR code so I imagine I'm up and running! Big thanks to both you and @OrbitalT for taking the time to help!

KoreaComK commented 3 years ago

Same issue here when I try to make:

~ $ sudo tar -C /usr/local -xzf go1.13.linux-armv6l.tar.gz
~ $ sudo rm *.gz
~ $ sudo mkdir /usr/local/gocode
~ $ sudo chmod 777 /usr/local/gocode
~ $ export GOROOT=/usr/local/go
~ $ export PATH=$PATH:$GOROOT/bin
~ $ export GOPATH=/usr/local/gocode
~ $ export PATH=$PATH:$GOPATH/bin
~ $ sudo bash -c "echo 'PATH=\$PATH:/usr/local/gocode/bin/' >> /etc/profile"
~ $ go version
go version go1.13 linux/arm
~ $ go get -d github.com/LN-Zap/lndconnect
~ $ cd $GOPATH/src/github.com/LN-Zap/lndconnect

Everything works fine here... the problem start after that:

/usr/local/gocode/src/github.com/LN-Zap/lndconnect $ make
go get ./...
go: downloading github.com/glendc/go-external-ip v0.0.0-20200601212049-c872357d968e
go: downloading github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
go: downloading github.com/lightningnetwork/lnd v0.13.0-beta.rc3
go: downloading github.com/jessevdk/go-flags v1.4.0
go: downloading github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: extracting github.com/jessevdk/go-flags v1.4.0
go: downloading github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f
go: extracting github.com/glendc/go-external-ip v0.0.0-20200601212049-c872357d968e
go: extracting github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: extracting github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
go: downloading github.com/btcsuite/btcd v0.21.0-beta.0.20210429225535-ce697fe7e82b
go: downloading golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
go: extracting github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f
go: downloading github.com/mattn/go-colorable v0.1.8
go: extracting github.com/mattn/go-colorable v0.1.8
go: downloading github.com/mattn/go-isatty v0.0.12
go: extracting github.com/mattn/go-isatty v0.0.12
go: downloading golang.org/x/sys v0.0.0-20210426080607-c94f62235c83
go: extracting golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
go: extracting github.com/btcsuite/btcd v0.21.0-beta.0.20210429225535-ce697fe7e82b
go: extracting golang.org/x/sys v0.0.0-20210426080607-c94f62235c83
go: extracting github.com/lightningnetwork/lnd v0.13.0-beta.rc3
go: downloading github.com/miekg/dns v0.0.0-20171125082028-79bfde677fa8
go: downloading golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7
go: downloading github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
go: extracting github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
go: extracting github.com/miekg/dns v0.0.0-20171125082028-79bfde677fa8
go: extracting golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7
go: finding github.com/Baozisoftware/qrcode-terminal-go v0.0.0-20170407111555-c0650d8dff0f
go: finding github.com/btcsuite/btcutil v1.0.3-0.20201208143702-a53e38424cce
go: finding github.com/glendc/go-external-ip v0.0.0-20200601212049-c872357d968e
go: finding github.com/jessevdk/go-flags v1.4.0
go: finding github.com/lightningnetwork/lnd v0.13.0-beta.rc3
go: finding github.com/skip2/go-qrcode v0.0.0-20200617195104-da1b6568686e
go: finding github.com/mattn/go-colorable v0.1.8
go: finding github.com/mattn/go-isatty v0.0.12
go: finding golang.org/x/sys v0.0.0-20210426080607-c94f62235c83
go: finding github.com/btcsuite/btcd v0.21.0-beta.0.20210429225535-ce697fe7e82b
go: finding golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7
go: finding golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
go: finding github.com/miekg/dns v0.0.0-20171125082028-79bfde677fa8
go: finding github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f
# runtime/cgo
gcc: error: unrecognized command line option '-marm'; did you mean '-fasm'?
make: *** [Makefile:4: dep] Error 2

Is it the same error said by the @http402 right?