Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment