ElementsProject / lightning

Core Lightning — Lightning Network implementation focusing on spec compliance and performance
Other
2.85k stars 902 forks source link

Compilation issues on Raspberry Pi #5060

Open kendricng opened 2 years ago

kendricng commented 2 years ago

Issue and Steps to Reproduce

I'm looking to install C-Lightning on my Raspberry Pi and I'm having issues at the ./configure stage. Here's the error:

> ./configure --enable-static --enable-developer
Compiling ccan/tools/configurator/configurator...done
./configure: 291: ccan/tools/configurator/configurator: not found

Here are the steps that I ran on Command Line:

> whereis arm-linux-gnueabihf
/usr/lib/arm-linux-gnueabihf

> export PATH=$PATH:/usr/lib/arm-linux-gnueabihf
> target_host=arm-linux-gnueabihf
> export AR=$target_host-ar
> export AS=$target_host-as
> export CC=$target_host-gcc
> export CXX=$target_host-g++
> export LD=$target_host-ld
> export STRIP=$target_host-strip
> export HOST=${target_host}

> whereis arm-bcm2708
/usr/bin/arm-bcm2708

> export QEMU_LD_PREFIX=/usr/bin/arm-bcm2708/arm-rpi-4.9.3-linux-gnueabihf/arm-linux-gnueabihf/sysroot/

> cd lightning
> ./configure --enable-static --enable-developer
Compiling ccan/tools/configurator/configurator...done
./configure: 291: ccan/tools/configurator/configurator: not found

In other Dockerfiles, I've also tried the below QEMU file path but also didn't work:

export QEMU_LD_PREFIX=/usr/${target_host}

vincenzopalazzo commented 2 years ago

Hi, sorry for the delay here, Do you are running this one a Dockerfile, can you help me to reproduce it? If there is any docker file can you post it?

Thanks!