Closed arjvik closed 4 years ago
It doesn't look like any of the errors from #76, this is about PAM and nothing was mentioned about PAM in that issue. Thanks for looking into it though.
@PandorasFox any idea of what to try?
No clue, really. I don't have any debian installs on-hand and I haven't really the time to figure this out.
Is the included error snippet from before or after installing libpam0g-dev? If it's before, what are the errors after?
That's the error from after installing libpam0g-dev
. The error before was a generic error about #include <security/pam_appl.h>
not finding the required header file.
My guess at this point is that it's pkg-config not giving the correct flags. Did you re-run ./configure
after installing libpam? That might be necessary, unfortunately.
I got it to work by doing the oddest thing.. Following the instructions in the README and doing
mkdir -p build && cd build/ && make
seemed to be causing the issues.
If instead I listened to the output of
./configure
and didcd x86_64-pc-linux-gnu/ && make
it worked!
I still have no clue why. Maybe add a note to the README about it?
Never mind, it's not the directory, but rather the fact that I never ran ./configure
.
That wasn't in the README instructions, so I completely forgot about it.
Would you mind adding it?
Ok, I'm officially blind. You did indeed say to run ./configure
.
And I ran it the first time after installing libpam
. I changed nothing when I tried again today. However, it works now??
No clue what happened, but it works now. I followed the same instructions as last time. I guess I'll take the good fortune!
This is finally what worked for me (from my ricing install script):
https://github.com/arjvik/dots/blob/2e5cc83b4962754075fcdb40ee60fa6417dc011d/install.sh#L127-L142
info "Installing i3lock-color"
if ! type i3lock; then
sudo apt remove -y i3lock
sudo apt install -y libjpeg-turbo8-dev libpam0g-dev
cd /opt
sudo git clone https://github.com/pandorasfox/i3lock-color
sudo chown -R $USER:$USER i3lock-color
cd i3lock-color
git tag -f "git-`git rev-parse --short HEAD`"
autoreconf --force --install
rm -rf build/
mkdir -p build && cd build/
../configure --prefix=/usr --sysconfdir=/etc --disable-sanitizers
make
sudo make install
info_done
Hopefully this can help someone else with this same problem
honestly this is why I hate automake, but upstream i3lock switched to it and it was easiest to go along with that. It's incredibly opaque at times.
Glad you got it sorted!
This issue is a....
Compilation issue
Hi!
I am trying to upgrade my i3 install by replacing i3lock with i3lock-color. Unfortunately, i3lock-color isn't in the 19.04 repos, and I'm not very sure about the PPA I found. So I decided to compile from source.
I started by cloning the repo and following the instructions at the bottom of the README:
The specific error I recieved seems to be about the pam header files I installed:
Versions:
libpam0g-dev
: 1.3.1-5ubuntu1i3lock-color
: git, 4c341b8a674c92675c40bddde465103f84195b4cI would really appreciate some help solving this error! Thanks!