lightningnetwork / lnd

Lightning Network Daemon ⚡️
MIT License
7.67k stars 2.07k forks source link

Installing on Mac OS X #11

Closed RCasatta closed 7 years ago

RCasatta commented 8 years ago

For your reference I posting the error I am getting when trying to build on Mac OS X

$ go get github.com/LightningNetwork/lnd
# github.com/lightningnetwork/lnd/lnwire
src/github.com/lightningnetwork/lnd/lnwire/lnwire.go:566: too many arguments in call to wire.NewTxIn
# github.com/lightningnetwork/lnd/uspv
src/github.com/lightningnetwork/lnd/uspv/eight333.go:308: undefined: wire.InvTypeWitnessBlock
src/github.com/lightningnetwork/lnd/uspv/eight333.go:386: undefined: wire.InvTypeWitnessBlock
src/github.com/lightningnetwork/lnd/uspv/eight333.go:388: undefined: wire.InvTypeFilteredWitnessBlock
src/github.com/lightningnetwork/lnd/uspv/hardmode.go:29: tx.WTxSha undefined (type *wire.MsgTx has no field or method WTxSha)
src/github.com/lightningnetwork/lnd/uspv/hardmode.go:62: cb.TxIn[0].Witness undefined (type *wire.TxIn has no field or method Witness)
src/github.com/lightningnetwork/lnd/uspv/hardmode.go:64: cb.TxIn[0].Witness undefined (type *wire.TxIn has no field or method Witness)
src/github.com/lightningnetwork/lnd/uspv/hardmode.go:68: cb.TxIn[0].Witness undefined (type *wire.TxIn has no field or method Witness)
src/github.com/lightningnetwork/lnd/uspv/hardmode.go:70: cb.TxIn[0].Witness undefined (type *wire.TxIn has no field or method Witness)
src/github.com/lightningnetwork/lnd/uspv/hardmode.go:74: cb.TxIn[0].Witness undefined (type *wire.TxIn has no field or method Witness)
src/github.com/lightningnetwork/lnd/uspv/init.go:53: undefined: wire.SFNodeWitness
src/github.com/lightningnetwork/lnd/uspv/init.go:53: too many errors
# github.com/lightningnetwork/lnd/lnwallet
src/github.com/lightningnetwork/lnd/lnwallet/channel.go:89: too many arguments in call to wire.NewTxIn
src/github.com/lightningnetwork/lnd/lnwallet/channel.go:198: commitTx.TxIn[0].Witness undefined (type *wire.TxIn has no field or method Witness)
src/github.com/lightningnetwork/lnd/lnwallet/channel.go:200: too many arguments in call to txscript.NewEngine
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:263: undefined: waddrmgr.WitnessPubKey
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:263: too many arguments in call to wallet.Manager.NextInternalAddresses
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:519: too many arguments in call to wire.NewTxIn
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:531: undefined: waddrmgr.WitnessPubKey
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:531: too many arguments in call to l.Wallet.NewChangeAddress
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:575: undefined: waddrmgr.WitnessPubKey
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:575: too many arguments in call to l.Wallet.NewAddress
src/github.com/lightningnetwork/lnd/lnwallet/wallet.go:575: too many errors
Roasbeef commented 8 years ago

Hi @RCasatta, I recently pushed a series of commits, which update the import paths and default branches on some of the in-progress remote branches we currently build against. These commits should have resolved the build issues.

Can you give building another shot, reporting back here with your findings?

RCasatta commented 8 years ago

Hi @Roasbeef, now go get it's working but when i launch lnd I got:

$GOPATH/bin/lnd
open /Users/user/Library/Application Support/Lnd/lnd.conf: no such file or directory
10:07:56 2016-05-24 [INF] LTND: Version 0.1.0-alpha
open /Users/user/Library/Application Support/Btcd/rpc.cert: no such file or directory
Roasbeef commented 8 years ago

The daemon currently requires an active instance of my btcd fork to operate. In the near future we'll be integrating the SPV wallet within the repository which will remove that dependancy.

ianrussel commented 6 years ago

@Roasbeef I also face not really same problem. I am using ubuntu 16, and after installing lnd, its default directory is ~/.lnd. Inside this folder, found this two tls.cert and tls.key but no lnd.conf. My question is, is it safe to create lnd.conf and copy paste some configuration on it?

halseth commented 6 years ago

@ianrussel Yes, that should be fine :)

ianrussel commented 6 years ago

Thanks @halseth