Common issues and solutions when building and installing InfiniLM-SVC.
Build fails with error:
Could not find directory of OpenSSL installation
The system library `openssl` required by crate `openssl-sys` was not found.
Install OpenSSL development libraries:
Ubuntu/Debian/Kylin Linux:
sudo apt-get update
sudo apt-get install libssl-dev pkg-configCentOS/RHEL/Fedora:
sudo yum install openssl-devel pkgconfig
# or
sudo dnf install openssl-devel pkgconfigAlpine Linux:
apk add openssl-dev pkgconfigVerify installation:
pkg-config --exists openssl && echo "✓ OpenSSL found" || echo "✗ OpenSSL not found"If OpenSSL is in non-standard location:
export OPENSSL_DIR=/path/to/openssl
export PKG_CONFIG_PATH=/path/to/openssl/lib/pkgconfig
./scripts/install.shScript shows "Unknown OS" and skips system dependencies.
The script now includes improved OS detection that:
- Detects Kylin Linux and other Debian/Ubuntu-based distributions
- Falls back to package manager detection (apt-get, yum, apk)
- Attempts installation even if OS is unknown
Manual installation if auto-detection fails:
# For Debian/Ubuntu/Kylin-based systems
sudo apt-get install build-essential pkg-config libssl-dev curl bash
# For CentOS/RHEL
sudo yum install gcc pkgconfig openssl-devel curl bash
# For Alpine
apk add build-base pkgconfig openssl-dev curl bashRust installation fails or cargo command not found.
Reinstall Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/envVerify installation:
rustc --version
cargo --versionUpdate Rust:
rustup updateBuild fails due to insufficient memory.
Reduce build parallelism:
CARGO_BUILD_JOBS=2 cargo build --releaseOr in install script:
export CARGO_BUILD_JOBS=2
./scripts/install.shScript fails with "Permission denied" when installing binaries.
Use sudo for system installation:
sudo ./scripts/install.shOr install to user directory:
./scripts/install.sh --install-path ~/.local/bin
export PATH="$HOME/.local/bin:$PATH"Docker build fails with OpenSSL errors.
Ensure base image has OpenSSL dev packages:
# For Ubuntu/Debian base
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
# For Alpine base
RUN apk add --no-cache \
build-base \
pkgconfig \
openssl-devOr use the provided Dockerfiles:
docker build -f docker/Dockerfile.rust -t infinilm-svc:latest .After installation, verify everything works:
# Check binaries exist
which infini-registry
which infini-router
which infini-babysitter
# Test registry
infini-registry --port 18000 &
sleep 2
curl http://localhost:18000/health
pkill infini-registryIf issues persist:
- Check the build log for specific error messages
- Verify all prerequisites are installed
- Try a clean build:
cd rust cargo clean cargo build --release - Check system resources (memory, disk space)
- Review QUICKSTART.md for detailed installation steps