Skip to content

Instantly share code, notes, and snippets.

View viktorholk's full-sized avatar

Holkinator viktorholk

  • .dk
  • 09:47 (UTC +02:00)
View GitHub Profile
@viktorholk
viktorholk / build_semacode_ruby.sh
Last active July 9, 2025 07:11
The semacode-ruby19 gem v0.7.4 contains C extensions that fail to compile on modern macOS systems due to compatibility issues. This script builds the gem in a compatible Docker environment and creates a precompiled version that works with both direct Ruby usage and Bundler. Using Rbenv
#!/bin/bash
set -e # Exit on any error
# Configuration
GEM_NAME="semacode-ruby19"
GEM_VERSION="0.7.4"
CONTAINER_NAME="semacode-builder"
# Colors for output