Devel-env is aimed to set the development environment up on Linux server WITHOUT root privileges.
It provides the following stuffs:
- GCC toolchain (GCC 14.2 + GLIBC 2.39) - relocated by patchelf
- Toolset - built from source manually
- Build the docker image. CAVEAT: It may take TOO TOO LONG time to finish on ARM64 platform (e.g. macOS with Apple Silicon). It is recommended to download it from the release page.
cd toolchain
docker build --platform=linux/x86-64 -t toolchain .
- Generate the toolchain.
mkdir output
docker run --platform=linux/x86-64 --rm --mount type=bind,source="$(pwd)/output",target=/output toolchain
- Usage
# Copy the output/install_toolchain.sh to the target server and run the following commands.
./install_toolchain.sh <some path>
export PATH="<some path>/compiler/bin:${PATH}"
cp output/install_toolchain.sh devel/scripts
# Download the packages
bash devel/downloads/download_packages.sh
# Copy the whole devel directory to the target server (e.g. ${HOME}/.local/share/devel) and run the following commands.
# Optional: DEVEL_HOME_PATH="${HOME}/.local/share/devel" by default.
export DEVEL_HOME_PATH="<some devel home path>"
cd "some/path/devel/scripts"
./install.sh
source "some/path/devel/scripts/env_vars.sh"