FAQ & Troubleshooting¶
Common issues and solutions when building, installing, and
running milk.
1. Installation¶
CMake cannot find cfitsio
Solution: Install the development headers:
Or build without cfitsio:
See Build Tiers and Compile Instructions for details.
Build fails with missing readline/ncurses
Solution: Install the development headers, or build without CLI:
Library not found at runtime
Solution: Add the install directory to the linker path:
Or set LD_LIBRARY_PATH in your shell profile:
2. Shared Memory¶
See also: Streams
Permission denied when accessing /milk/shm
Solution: Ensure the SHM directory exists and is writable:
For best performance, mount as tmpfs:
Stale shared memory files
Old .im.shm files from crashed processes can interfere.
Solution:
SHM directory location
The default shared memory directory is /milk/shm. Override with:
3. FPS / Process Control¶
See also: FPS · Process Info · FPS Standalone Modes
FPS process won't start — "FPS already exists"
Solution: Remove the stale FPS, then retry:
milk-fpsCTRL shows no processes
Ensure the processinfo SHM directory exists and processes are registered:
tmux dispatch not working
If standalone executables launched with -tmux don't appear:
- Ensure
tmuxis installed:which tmux - Check if the tmux session exists:
tmux ls - Verify the FPS name has no spaces or special characters.
4. CLI¶
See also: CLI Reference
milk-cli prompt jumps to bottom of terminal
This can happen when the startup banner clears the screen.
Solution: This is a known cosmetic issue. The prompt will stabilize after the first command.
Command not found — "Unknown command"
Solution: Check that the module is loaded:
If the module is a plugin, ensure it was compiled and the .so
file is in the library path.
5. Performance¶
Real-time scheduling
For latency-critical applications (AO loops), configure real-time scheduling:
Semaphore loop speed
Benchmark semaphore performance:
Typical values: >100 kHz on modern hardware.
6. Getting Help¶
- CLI help: Type
?orhelpat themilk-cli >prompt - Command help:
cmd? <command>for detailed usage - Module list:
m?to list all loaded modules - Documentation: See docs/index.md
- Issues: Report on GitHub Issues