This guide explains how to build the Claude Code History Viewer application on Linux systems.
- Ubuntu 20.04+ or other Debian-based distributions
- For other distributions, equivalent packages may be needed
- Node.js 18+ - JavaScript runtime
- pnpm - Package manager
- Rust toolchain - Required for Tauri
- System development libraries - Required for WebKit/GTK integration
# Install Node.js (if not already installed)
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install pnpm
npm install -g pnpm# Install Rust toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/envThe most critical step for Linux builds is installing the required system libraries:
# Update package lists
sudo apt update
# Install required system dependencies for Tauri
sudo apt install -y \
libwebkit2gtk-4.1-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-devNote: These packages provide:
libwebkit2gtk-4.1-dev- WebKit engine for the webviewlibgtk-3-dev- GTK development librarieslibayatana-appindicator3-dev- System tray supportlibrsvg2-dev- SVG rendering support
# Clone the repository
git clone https://github.com/jhlee0409/claude-code-history-viewer.git
cd claude-code-history-viewer
# Install Node.js dependencies
pnpm install
# Build for Linux (use this instead of tauri:build which targets macOS)
pnpm tauri:build:linuxThe build process will create three package formats:
- DEB Package (Debian/Ubuntu):
src-tauri/target/release/bundle/deb/Claude Code History Viewer_*.deb - RPM Package (Red Hat/Fedora):
src-tauri/target/release/bundle/rpm/Claude Code History Viewer-*.rpm - AppImage (Portable):
src-tauri/target/release/bundle/appimage/Claude Code History Viewer_*.AppImage
sudo dpkg -i "src-tauri/target/release/bundle/deb/Claude Code History Viewer_1.0.0-beta.4_amd64.deb"chmod +x "src-tauri/target/release/bundle/appimage/Claude Code History Viewer_1.0.0-beta.4_amd64.AppImage"
./Claude\ Code\ History\ Viewer_1.0.0-beta.4_amd64.AppImagesudo rpm -i "src-tauri/target/release/bundle/rpm/Claude Code History Viewer-1.0.0-beta.4-1.x86_64.rpm"After installation via DEB/RPM package:
claude-code-history-viewerOr find it in your application menu under "Claude Code History Viewer".
-
Missing JavaScriptCore library error
The system library `javascriptcoregtk-4.1` required by crate `javascriptcore-rs-sys` was not found.Solution: Install the webkit development package:
sudo apt install libwebkit2gtk-4.1-dev
-
Build fails with GTK errors Solution: Ensure all GTK development libraries are installed:
sudo apt install libgtk-3-dev
-
Permission denied when running AppImage Solution: Make the AppImage executable:
chmod +x Claude\ Code\ History\ Viewer_*.AppImage
Fedora/RHEL:
sudo dnf install webkit2gtk4.1-devel gtk3-devel libayatana-appindicator3-devel librsvg2-develArch Linux:
sudo pacman -S webkit2gtk-4.1 gtk3 libayatana-appindicator librsvg- The original
pnpm tauri:buildscript is configured for macOS (universal-apple-darwintarget) - Use
pnpm tauri:build:linuxfor Linux builds orpnpm tauri buildfor cross-platform builds - The signing key warning at the end of the build is normal and doesn't affect functionality
- Large conversation histories may require additional system memory during the build process
When contributing Linux-specific changes:
- Test on multiple distributions if possible
- Update this documentation for any new requirements
- Consider adding distribution-specific installation instructions
The application runs completely locally and only reads from your ~/.claude directory. No data is sent to external servers.