[Guide] How to use new LBRY Blockchain rewritten in GO

GitHub: GitHub - lbryio/lbcd: An alternative full node implementation of LBRY's blockchain written in Go (golang)

Linux/BSD/MacOSX:

  1. Install Go according to the installation instructions here: Download and install - The Go Programming Language
  2. Ensure Go was installed properly and is a supported version ( Go 1.14 or newer. )
  3. Install it with command: go install
  4. To build executable use: go build
  5. You can start with ./chain (If won’t start do chmod +x chain)

Windows:

  1. Install Go according to the installation instructions here: http://golang.org/doc/install
  2. Ensure Go was installed properly and is a supported version ( Go 1.14 or newer. )
  3. Install TDM-GCC Download | tdm-gcc
  4. Install it with command: go install
  5. To build executable use: go build
  6. You can start with chain.exe
5 Likes

I wish building and using lbrynet was that easy :sweat_smile:

Just recently was able to build lbrynet (Python 3.7 and all that too) on FreeBSD i386, then ran it and got a thread safety ImportError message from libtorrent 2.0.6. :confused:

Edit:
The message is:

ImportError: /path/to/lbry-sdk/lbry-venv/lib/python3.7/site-packages/libtorrent-2.0.6-py3.7-freebsd-12.4-RELEASE-i386.egg/libtorrent.so: No space available for static Thread Local Storage

Full message here

1 Like

I havent tried building new libtorrent one though.

In the meanwhile switched to FreeBSD 14 amd64 :technologist:
Finally found a process to build lbrynet on FreeBSD :sunny:

Good to see the log say:

2024-07-11 ... INFO     lbry.extras.daemon.daemon:491: Platform: {
  "processor": "amd64",
  "python_version": "3.7.17",
  "platform": "FreeBSD-14.0-RELEASE-amd64-64bit-ELF",
  "os_release": "14.0-RELEASE",
  "os_system": "FreeBSD",
  "lbrynet_version": "0.113.0",
  "version": "0.113.0",
  "build": "dev",
  "distro": {
    "id": "freebsd",
    "version": "14.0",
    "version_parts": {
      "major": "14",
      "minor": "0",
      "build_number": ""
    },
    "like": "",
    "codename": ""
  },
  "desktop": "Unknown"
}
1 Like