Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Last active May 30, 2024 19:15
Show Gist options
  • Save kwilczynski/dc69ed5acb27a19ec1e29914895d7666 to your computer and use it in GitHub Desktop.
Save kwilczynski/dc69ed5acb27a19ec1e29914895d7666 to your computer and use it in GitHub Desktop.
Install lei for kernel development using lore directly on Ubuntu
apt install -y vim
apt install -y wget
apt install -y sqlite3 (used by a test, not needed for the build to complete)
apt install -y curl
apt install -y git
apt install -y build-essential
apt install -y pkg-config
apt install -y libgit2-1.1 / apt install -y libgit2-28 (older Ubuntu)
apt install -y libgit2-dev
apt install -y xapian-tools
apt install -y libinline-c-perl
apt install -y libany-uri-escape-perl
apt install -y libdbd-sqlite3-perl
apt install -y libsearch-xapian-perl
apt install -y libmail-imapclient-perl
apt install -y libplack-middleware-reverseproxy-perl
apt install -y libcrypt-cbc-perl
apt install -y liblinux-inotify2-perl
wget https://public-inbox.org/public-inbox.git/snapshot/public-inbox-1.7.0.tar.gz
tar zxvf public-inbox-1.7.0.tar.gz
cd public-inbox-1.7.0
make clean
perl Makefile.PL INSTALLDIRS=vendor
make OPTIMIZE="-O2 -g -Wall" LD_RUN_PATH="" -j2 V=1 VERBOSE=1
make pure_install DESTDIR=/tmp/public-index
mkdir -p /tmp/test
PERL_INLINE_DIRECTORY=/tmp/test make test
export PERL5LIB=${PERL5LIB}:/tmp/public-index/usr/share/perl5
/tmp/public-index/usr/bin/lei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment