I am trying to setup Monero blockchain explorer on Ubuntu 16.04 by following this github repo.
I have checkout monero v0.12.1.0
but I am facing this error while running make
command
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a(gtest-all.cc.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib/libgtest.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status tests/unit_tests/CMakeFiles/unit_tests.dir/build.make:1206: recipe for target 'tests/unit_tests/unit_tests' failed make[3]: * [tests/unit_tests/unit_tests] Error 1 make[3]: Leaving directory '/home/monero/build/release' CMakeFiles/Makefile2:4425: recipe for target 'tests/unit_tests/CMakeFiles/unit_tests.dir/all' failed make[2]: [tests/unit_tests/CMakeFiles/unit_tests.dir/all] Error 2 make[2]: Leaving directory '/home/monero/build/release' Makefile:138: recipe for target 'all' failed make1: [all] Error 2 make1: Leaving directory '/home/monero/build/release' Makefile:64: recipe for target 'release-all' failed make: * [release-all] Error 2
I couldn't find any solution yet? can anyone help?