If you try install open-webui in FreeBSD 14.1 you'll run into troubles.
If using pip install --user open-webui
it will crash with the following error
ERROR: Could not find a version that satisfies the requirement onnxruntime>=1.14.1 (from chromadb) (from versions: none)
ERROR: No matching distribution found for onnxruntime>=1.14.1
If trying to build from a clone of the github repo it will fail on the frontend build step of npm install
:
npm error code EBADPLATFORM
npm error notsup Unsupported platform for [email protected]: wanted {"os":"win32,darwin,linux"} (current: {"os":"freebsd"})
npm error notsup Valid os: win32,darwin,linux
npm error notsup Actual os: freebsd
npm error A complete log of this run can be found in: /home/bretton/.npm/_logs/2024-11-09T20_28_09_634Z-debug-0.log
You can install onnxruntime with pkg install onnxruntime
and get version 1.18.2_1
If you try manually build onnxruntime from source
bash build.sh --config RelWithDebInfo --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root
it fails with the error
patch: unrecognized option `--binary'
You can fix this by editing the file onnxruntime/cmake/CMakeLists.txt
and include near the top:
set(Patch_EXECUTABLE "/usr/local/bin/gpatch")
then run again
bash build.sh --config RelWithDebInfo --build_shared_lib --parallel --compile_no_warning_as_error --skip_submodule_sync --allow_running_as_root
however it will still fail, with a new error
fatal error: 'logging.h' file not found
Although onnxruntime can be installed from ports, or from source with some TLC, the installed version isn't accepted by open-webui.
Librechat isn't supported either