Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAM developement files is not listed as a requirement #391

Open
blacklightpy opened this issue Apr 21, 2024 · 5 comments
Open

PAM developement files is not listed as a requirement #391

blacklightpy opened this issue Apr 21, 2024 · 5 comments

Comments

@blacklightpy
Copy link

This person had trouble building AGS because pkgconf could not find pam.pc.

#295 (comment)

@Freemason-12
Copy link

I have pam-devel package installed on my Almalinux 9 system. But for some reason meson does not find it

Executing subproject gutils

gutils| Project name: pam
gutils| Project version: undefined
gutils| C compiler for the host machine: cc (gcc 11.4.1 "cc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)")
gutils| C linker for the host machine: cc ld.bfd 2.35.2-42
gutils| Dependency gobject-2.0 found: YES 2.68.4 (cached)
gutils| Dependency gio-2.0 found: YES 2.68.4 (cached)
gutils| Found CMake: /usr/bin/cmake (3.20.2)
gutils| Run-time dependency pam found: NO (tried pkgconfig and cmake)

subprojects/gutils/meson.build:10:0: ERROR: Dependency "pam" not found, tried pkgconfig and cmake

Also it requires a newer version of GJS (1.73.1) while I have 1.68.6, I changed it in meson config and got this error. Not sure whether such a new version is really an important requirement though.

@blacklightpy
Copy link
Author

@Freemason-12 See if you have pam.pc in /usr/lib/pkgconfig/. Or see if pkgconf --exists pam exists with a non-zero error code (which would mean it doesn't).

If pam.pc exists in the right path, pkgconf should find it.

@Freemason-12
Copy link

@Freemason-12 See if you have pam.pc in /usr/lib/pkgconfig/. Or see if pkgconf --exists pam exists with a non-zero error code (which would mean it doesn't).

If pam.pc exists in the right path, pkgconf should find it.

I wish you replied me a bit sooner, since I already migrated to Ubuntu 24.04.
Also, is gjs version >= 1.73.1 really necessary? Or is an older version ok?

@blacklightpy
Copy link
Author

blacklightpy commented May 2, 2024

@Freemason-12 That, I don't know. I'm using 1.78 myself, so can't tell. But if you really need it on Almalinux, you could use Nix. Also, ags has a Nix flake, you could install it by nix profile install github:Aylur/ags. You'll have to add experimental-features = nix-command flakes to your nix.conf. Then do sudo systemctl restart nix-daemon.service.

If you want to use Home Manager, you have to set it up by running nix run home-manager/$branch -- init --switch ($branch should be master or release-23.11, depending on your nixpkgs version) to generate .config/home-manager/home.nix and .config/home-manager/flake.nix. Then you do home-manager switch to activate it.

Then follow the install steps here.

And you do nix flake update to update changes to your flakes.


I'm only learning Nix myself, so my understanding may not be correct here. Using Aylur's dotfiles with flakes would be a bit more complicated, I'll have to try it out myself first.

@kotontrion
Copy link
Contributor

Also, is gjs version >= 1.73.1 really necessary?

Yes. This version introduced async functions for dbus proxies, which are used in some services like system tray and mpris.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants