Forked from kwilczynski/gist:dc69ed5acb27a19ec1e29914895d7666
Created
April 28, 2022 06:24
-
-
Save BH1SCW/6d8480f85ec8e796c3fa3d81f8e1133c to your computer and use it in GitHub Desktop.
Install lei for kernel development using lore directly on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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