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

can;t compile llama.cpp. please send me libllama.so file #36

Open
NavodPeiris opened this issue Jun 2, 2024 · 3 comments
Open

can;t compile llama.cpp. please send me libllama.so file #36

NavodPeiris opened this issue Jun 2, 2024 · 3 comments

Comments

@NavodPeiris
Copy link

can someone please end me the libllama.so file?

@Vinayak006
Copy link

Did you get that? @NavodPeiris

@NavodPeiris
Copy link
Author

@Vinayak006 nope

@inidal
Copy link

inidal commented Dec 26, 2024

Getting the .so file

  • Windows: Start from Step 1
  • Linux: Step 3 to Step 4

Step 1: Activate WSL and Install Ubuntu

  1. Open PowerShell as Administrator
  2. Run: wsl --install
  3. Install Ubuntu from the Microsoft Store
  4. Launch Ubuntu from the Start menu

Step 2: Set Up Ubuntu

  1. Update packages:
    sudo apt update && sudo apt upgrade -y
  2. Install necessary tools:
    sudo apt install build-essential cmake git

Step 3: Build the .so file

  1. Clone the repository:
    git clone https://github.com/ggerganov/llama.cpp
  2. Navigate to the project directory:
    cd llama.cpp/
  3. Build the project:
    cmake -B build -S .
    cmake --build build --config Release

Step 4: Locate the .so File

Run the following command to find the .so file:
find ~/llama.cpp/build -name "*.so"

This should output the path to libllama.so.

Step 5: Transfer the File to Windows

  1. Open File Explorer
  2. Type \\wsl$ in the address bar and press Enter
  3. Navigate to \\wsl$\Ubuntu
  4. Locate /home/USER/llama.cpp/build/src/libllama.so (Replace USER)
  5. Right-click the file and select "Copy"
  6. Go to your desired Windows folder (e.g., Desktop)
  7. Right-click and select "Paste"

This provides a straightforward GUI-based approach to obtain the .so file on Windows, avoiding command-line operations for those less comfortable with terminal interfaces.

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

3 participants