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

libc.a not found #61

Open
raszia opened this issue Apr 30, 2023 · 0 comments
Open

libc.a not found #61

raszia opened this issue Apr 30, 2023 · 0 comments

Comments

@raszia
Copy link

raszia commented Apr 30, 2023

I found an issue with the location of libc.a in most Debian-based distributions. In most Debian distros, libc.a is not located in /usr/lib64/libc.a, but instead is located in /usr/lib/x86_64-linux-gnu/libc.a. This can cause issues for programs or scripts that rely on the location of libc.a.

To address this issue, I suggest updating any relevant documentation or scripts to reflect the correct location of libc.a in Debian-based distributions. Alternatively, you can use the following installation script to detect the correct location of libc.a based on the distribution being used:

#!/bin/bash

# Find the location of libc.a
LIBC_PATH=$(find /usr/lib /usr/lib64 -name libc.a | head -n 1)

# Check if libc.a was found
if [[ -z "$LIBC_PATH" ]]; then
  echo "Error: libc.a not found"
  exit 1
fi

echo "Using libc.a located at: $LIBC_PATH"

# Continue with the installation using the correct path to libc.a

This script uses find to search for libc.a in the /usr/lib and /usr/lib64 directories, which are the most common locations for system libraries. The head command is used to return only the first result found, which should be the correct location of libc.a.

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

1 participant