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

Failed to find file in /usr/lib/libutf8_validity.a #20043

Open
IEI-mjx opened this issue Jan 20, 2025 · 1 comment
Open

Failed to find file in /usr/lib/libutf8_validity.a #20043

IEI-mjx opened this issue Jan 20, 2025 · 1 comment

Comments

@IEI-mjx
Copy link

IEI-mjx commented Jan 20, 2025

When I am trying to install mooncake using this code

echo "*** Download and installing [etcd-cpp-apiv3] ***"
cd ${REPO_ROOT}/thirdparties
git clone ${GITHUB_PROXY}/etcd-cpp-apiv3/etcd-cpp-apiv3.git
cd etcd-cpp-apiv3
mkdir -p build
cd build
cmake ..
make -j$(nproc) && sudo make install

The above error was encountered!!

Image

How can i install protobuf with libutf8_validity.a?

@IEI-mjx IEI-mjx added the untriaged auto added to all issues by default when created. label Jan 20, 2025
@mkruskal-google
Copy link
Member

What version of protobuf do you have installed on your machine? This seems like a broken installation or something. The repo you're trying to build has the following setup:

find_package(Protobuf CONFIG QUIET)
if (NOT Protobuf_FOUND)
    find_package(Protobuf REQUIRED)
endif()

This will try to find the system-installed protobuf using our correct cmake config. If this succeeds, you should have utf8_validity installed as well if we depend on it, because we install it. If it fails, it will call find_package(Protobuf REQUIRED), which uses a badly outdated config for protobuf that ships with cmake and will not hook up dependencies properly. In that case, you'd see an error like this where one of our dependencies is missing

@mkruskal-google mkruskal-google added cmake and removed untriaged auto added to all issues by default when created. labels Jan 25, 2025
@mkruskal-google mkruskal-google self-assigned this Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants