reindexer icon indicating copy to clipboard operation
reindexer copied to clipboard

No package 'libreindexer' found

Open marchellodev opened this issue 4 years ago • 4 comments

# pkg-config --cflags  -- libreindexer
Package libreindexer was not found in the pkg-config search path.
Perhaps you should add the directory containing `libreindexer.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libreindexer' found
pkg-config: exit status 1

marchellodev avatar Jul 24 '20 20:07 marchellodev

Hi @marchellodev,

You just need to compile libs:

# Clone repo
git clone https://github.com/Restream/reindexer.git

# Install dependencies (for Linux or MacOS)
cd reindexer && ./dependencies.sh

# Compile and install libs
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make && make install

maxvoronov avatar Oct 13 '20 11:10 maxvoronov

Yep, got it now, thank you

marchellodev avatar Oct 13 '20 11:10 marchellodev

~/go/go1.20.4/src/reindexer/build (master*) » make && make install                                                                                                                                                                                   g.panteleev@sword
Scanning dependencies of target reindexer
Consolidate compiler generated dependencies of target reindexer
[  0%] Building CXX object cpp_src/CMakeFiles/reindexer.dir/client/coroqueryresults.cc.o
In file included from /Users/g.panteleev/go/go1.20.4/src/reindexer/cpp_src/client/coroqueryresults.cc:2:
In file included from /Users/g.panteleev/go/go1.20.4/src/reindexer/cpp_src/client/namespace.h:7:
/Users/g.panteleev/go/go1.20.4/src/reindexer/cpp_src/estl/shared_mutex.h:177:7: error: variable '__ret' set but not used [-Werror,-Wunused-but-set-variable]
                int __ret;
                    ^
/Users/g.panteleev/go/go1.20.4/src/reindexer/cpp_src/estl/shared_mutex.h:204:7: error: variable '__ret' set but not used [-Werror,-Wunused-but-set-variable]
                int __ret;
                    ^
2 errors generated.
make[2]: *** [cpp_src/CMakeFiles/reindexer.dir/client/coroqueryresults.cc.o] Error 1
make[1]: *** [cpp_src/CMakeFiles/reindexer.dir/all] Error 2
make: *** [all] Error 2

steel error on Mac m1

by main page instructions

# Clone reindexer via git. It's also possible to use 'go get -a github.com/restream/reindexer/v3', but it's behavior may vary depending on Go's version
git clone https://github.com/restream/reindexer.git $GOPATH/src/reindexer
bash $GOPATH/src/reindexer/dependencies.sh
# Generate builtin binding
cd $GOPATH/src/reindexer
go generate ./bindings/builtin
# Optional (build builtin server binding)
go generate ./bindings/builtinserver

compiling fine, but after

go mod edit -replace github.com/restream/reindexer/v3=$GOPATH/src/reindexer

got new error:

# github.com/restream/reindexer/v3/bindings/builtin
In file included from reindexer_cgo.cc:7:
cgo-gcc-export-header-prolog:23:15: warning: '_Complex' is a C99 extension [-Wc99-extensions]
cgo-gcc-export-header-prolog:24:16: warning: '_Complex' is a C99 extension [-Wc99-extensions]
# command-line-arguments
/Users/g.panteleev/go/go1.20.4/pkg/tool/darwin_arm64/link: running clang++ failed: exit status 1
ld: library not found for -lleveldb
clang: error: linker command failed with exit code 1 (use -v to see invocation)

gleba avatar May 29 '23 08:05 gleba

Hi! @gleba. I was ran into this problem, when build lib in my arch linux. You cat off flags [-Werror,-Wunused-but-set-variable]

In branch release/4 flags declaration is in cpp_src/CMakefiles.txt. (row 80 and 81).

Kistor avatar Jun 08 '23 09:06 Kistor