Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No package 'libreindexer' found #60

Open
marchellodev opened this issue Jul 24, 2020 · 4 comments
Open

No package 'libreindexer' found #60

marchellodev opened this issue Jul 24, 2020 · 4 comments

Comments

@marchellodev
Copy link

# 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
@maxvoronov
Copy link

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

@marchellodev
Copy link
Author

Yep, got it now, thank you

@gleba
Copy link

gleba commented May 29, 2023

~/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)

@Kistor
Copy link

Kistor commented Jun 8, 2023

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants