LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

[BUG] "make build" Results in Errors in Kaggle

Open DebajitKumarPhukan opened this issue 2 years ago • 7 comments

LocalAI version: Git Commit Id: f347e5192737b4f878cf99b334b2f4c40e566405

Environment, CPU architecture, OS, and Version: Linux 2f0a995888b6 5.15.133+ #1 SMP Fri Oct 27 21:38:51 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux Describe the bug After performing "make build" on the above git commit version of the repo, it is erroring out.

To Reproduce

  1. git clone https://github.com/go-skynet/LocalAI
  2. cd LocalAI
  3. make build

Expected behavior Attached in this incident. make build issue - logs.txt

Additional context I tried running the executable as well from the latest release, but I started getting some glib issue so I abandoned that plan.

DebajitKumarPhukan avatar Nov 04 '23 15:11 DebajitKumarPhukan

The error message in the log is /opt/conda/lib/libcurl:no version information available(required by /usr/bin/cmake). And it indicates that the version information is not available for the libcurl library required by make. This can happen if the libcurl library is not installed or if there is a version mismatch between the installed library and the version required by cmake.

The possible solution to this problem:

  • sudo apt-get install libcurl4-openssl-dev
  • Set the LD_LIBRARY_PATH

And further more, check the Kaggle env repo on GitHub if there are similar issues

Aisuko avatar Nov 05 '23 01:11 Aisuko

@Aisuko Now I am getting below error.

CMake Error at examples/grpc-server/CMakeLists.txt:13 (find_package):
  Could not find a package configuration file provided by "Protobuf" with any
  of the following names:

    ProtobufConfig.cmake
    protobuf-config.cmake

  Add the installation prefix of "Protobuf" to CMAKE_PREFIX_PATH or set
  "Protobuf_DIR" to a directory containing one of the above files.  If
  "Protobuf" provides a separate development package or SDK, be sure it has
  been installed.

-- Configuring incomplete, errors occurred!
See also "/kaggle/working/LocalAI/backend/cpp/llama/llama.cpp/build/CMakeFiles/CMakeOutput.log".
See also "/kaggle/working/LocalAI/backend/cpp/llama/llama.cpp/build/CMakeFiles/CMakeError.log".
make[1]: *** [Makefile:43: grpc-server] Error 1
make[1]: Leaving directory '/kaggle/working/LocalAI/backend/cpp/llama'
make: *** [Makefile:413: backend/cpp/llama/grpc-server] Error 2

DebajitKumarPhukan avatar Nov 05 '23 05:11 DebajitKumarPhukan

Please make sure your Kaggle env includes packages:

  • grpc
  • protobuf
  • abseil

These above packages on macOS. Kindly check what are the names of them on GNU Linux.

Aisuko avatar Nov 05 '23 07:11 Aisuko

:warning::warning::warning::warning::warning:

Hi! I'm a bot running with LocalAI ( a crazy experiment of @mudler ) - please beware that I might hallucinate sometimes!

but.... I can also be funny or helpful :smile_cat: and I can provide generally speaking good tips or places where to look after in the documentation or in the code based on what you wrote in the issue.

Don't engage in conversation with me, I don't support (yet) replying!

:warning::warning::warning::warning::warning:

Thank you for your bug report! We will investigate this issue and get back to you as soon as possible. If you have any further questions or information, feel free to reply to this thread.

Sources:

  • https://github.com/go-skynet/LocalAI/tree/master/.github/ISSUE_TEMPLATE/bug_report.md
  • https://github.com/go-skynet/LocalAI/tree/master/CONTRIBUTING.md

localai-bot avatar Nov 05 '23 12:11 localai-bot

@Aisuko All the requested libraries are already installed. Can you please provide the exact versions required to be installed as I suspect the issue is because of the difference in the version what I have and what is required to build.

For example, the protobuf compiler already present in kaggle is 3.6.1.3-2ubuntu5.2.

Also, is it possible to put a clear documentation of the prerequisites along with versions required before building LocalAI. The documentation looked very easy but the reality is a bit tough.

image

DebajitKumarPhukan avatar Nov 05 '23 16:11 DebajitKumarPhukan

Here we have a similar issue https://github.com/mudler/LocalAI/issues/1196 may contains lots of information. Please check it to get more detail.

Aisuko avatar Nov 05 '23 23:11 Aisuko

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] avatar Nov 12 '25 02:11 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Nov 17 '25 02:11 github-actions[bot]