Machine and Biological Vision • Computational Neuroscience • AI • NeuroAI • XAI
Brown University
Providence, RI 02912
Lab website
Lab github
Brown profile
CV
Date: October 31, 2025
Branch: dev
Goal: Set up local Jekyll development environment to test website changes
Bundler is a Ruby tool (like npm for Node.js or pip for Python) that:
Think of it as a package manager that reads your Gemfile and installs everything listed there.
dev branch for safe testingGemfile.lock to use Bundler 2.7.2 (was 2.1.4)Problem: The eventmachine gem (version 1.2.7) is failing to compile native extensions.
Error:
fatal error: 'iostream' file not found
make failed, exit code 2
Root Cause:
/Library/Developer/CommandLineTools/usr/include/c++/v1/ (only ~11 files instead of 200+)/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/ but the symlink is brokenSystem Info:
The Command Line Tools installation has incomplete C++ headers. Fix this first:
sudo rm -rf /Library/Developer/CommandLineTools/usr/include/c++
sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++ /Library/Developer/CommandLineTools/usr/include/c++
Then retry bundle install with either Ruby version.
Create an isolated conda environment with an older Ruby version that’s compatible with github-pages:
conda create -n jekyll-env ruby=2.7
conda activate jekyll-env
cd /Users/tserre/Projects/tserre.github.io
gem install bundler
bundle install
bundle exec jekyll serve
Pros:
Cons:
Remove github-pages gem and use a newer Jekyll version directly:
Gemfile:
source 'https://rubygems.org'
gem "jekyll", "~> 4.3"
gem "jekyll-seo-tag"
gem "jekyll-theme-minimal"
bundle update (will resolve newer compatible gems)Pros:
Cons:
brew install rbenv ruby-build
rbenv install 2.7.8
cd /Users/tserre/Projects/tserre.github.io
rbenv local 2.7.8
gem install bundler
bundle install
bundle exec jekyll serve
Gemfile.lock: Updated BUNDLED WITH from 2.1.4 → 2.7.2Date: October 31, 2025, Evening
Final Solution:
Lessons Learned:
eventmachine 1.2.7 (has C++ compiler detection bug)Start the server:
cd /Users/tserre/Projects/tserre.github.io
eval "$(rbenv init - zsh)" # Make sure rbenv is active
bundle exec jekyll serve
# Opens at http://localhost:4000
Make changes:
Stop the server:
# Navigate to project
cd /Users/tserre/Projects/tserre.github.io
# Make sure you're on dev branch
git checkout dev
# Start local server
bundle exec jekyll serve
# Visit http://localhost:4000 in browser
# Make changes to files and see them update automatically
dev branch is set up and ready for testing once Jekyll works