adblock2privoxy icon indicating copy to clipboard operation
adblock2privoxy copied to clipboard

*nix installation instructions not working as written

Open joshrmcdaniel opened this issue 10 months ago • 2 comments

The installation instructions for *nix (debian 12 specifically) did not work as written, constant issues with stack and dependency hell. I am also not familiar with Haskell; maybe a PEBKAC issue. I was able to finally compile from source and install it properly with ghcup though.

I ran the following (as root) to successfully compile and install.

curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | BOOTSTRAP_HASKELL_NONINTERACTIVE=1 sh
mkdir -p /usr/local/etc/adblock2privoxy
rsync -a ./adblock2privoxy* /usr/local/etc/adblock2privoxy
export PATH="/usr/bin:$PATH:/root/.ghcup/bin"
cd /usr/local/etc/adblock2privoxy/adblock2privoxy
cabal update
cabal install . --installdir /usr/local/bin --global

Using ghcup to install haskell instead of stack solved my issues of installation.

joshrmcdaniel avatar Mar 31 '24 02:03 joshrmcdaniel