You are not logged in.

#1 2018-11-22 14:16:38

rahulravi7
Member
Registered: 2018-11-22
Posts: 4

Not able to build most things from AUR

Newbie here. I tried to install yay AUR helper by using these commands:

git clone https://aur.archlinux.org/yay.git
cd yay/
makepkg -s

But I got these error messages during the build:

==> Starting build()...
go build -v -ldflags '-s -w -X main.version=8.1173.0' -o yay
github.com/jguer/go-alpm
# github.com/jguer/go-alpm
.go/src/github.com/jguer/go-alpm/alpm.go:10:11: fatal error: alpm.h: No such file or directory
 // #include <alpm.h>
           ^~~~~~~~
compilation terminated.
make: *** [Makefile:44: build] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Even tried installing package-query, pakku, etc.

All have trouble finding or linking my alpm (11.0.1) library. Is something wrong with my pacman(5.1.1)?

Someone else has the same problem while installing cower

guilhermemfreire commented on 2018-05-28 15:39

Hi, I'm having problem installing cower. Already searched everywhere for the solution. It started after I updated my archlinux, 05-25-201. Here is the message: ==>
Starting build()...
cc ... -o cower.o src/cower.c src/cower.c:46:10: fatal error: alpm.h: No such file or directory #include <alpm.h></alpm.h>

https://aur.archlinux.org/packages/cower/

Last edited by rahulravi7 (2018-11-22 14:22:13)

Offline

#2 2018-11-22 14:31:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 20,435
Website

Re: Not able to build most things from AUR

rahulravi7 wrote:

Newbie here. I tried to install yay AUR helper

If you are new to arch and/or using the AUR, do not use an AUR helper, definitely not one so obtrussive as yay or yaourt.

But that is an odd error, what is the output of `pacman -Qkk pacman`?  Do you have `base-devel` installed?

Last edited by Trilby (2018-11-22 14:33:56)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

#3 2018-11-22 14:34:02

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 8,404
Website

Re: Not able to build most things from AUR

Mod note: Moving to AUR Issues


Sakura:-
Mobo: MSI X299 TOMAHAWK ARCTIC // Processor: Intel Core i7-7820X 3.6GHz // GFX: nVidia GeForce GTX 970 // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 5x 1TB HDD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2018-11-22 14:52:24

rahulravi7
Member
Registered: 2018-11-22
Posts: 4

Re: Not able to build most things from AUR

i got this

$ pacman -Qkk pacman
backup file: pacman: /etc/pacman.conf (Modification time mismatch)
backup file: pacman: /etc/pacman.conf (Size mismatch)
pacman: 343 total files, 0 altered files

Yes, I have base-devel installed.

Offline

#5 2018-11-22 15:52:57

loqs
Member
Registered: 2014-03-06
Posts: 6,370

Re: Not able to build most things from AUR

Please create test.c with the contents

#include <alpm.h>

With test.c created what is the output of the following?

gcc -o test.o -c test.c

Offline

#6 2018-11-22 16:12:30

rahulravi7
Member
Registered: 2018-11-22
Posts: 4

Re: Not able to build most things from AUR

$ cat > test.c
#include <alpm.h>
$ gcc -o test.o -c test.c
test.c:1:10: fatal error: alpm.h: No such file or directory
 #include <alpm.h>
          ^~~~~~~~
compilation terminated.

On a side note, even if I try to do this, it doesn't compile

#include</usr/include/X11/Xlib.h>

Offline

#7 2018-11-22 16:15:21

loqs
Member
Registered: 2014-03-06
Posts: 6,370

Re: Not able to build most things from AUR

The output of

gcc -v -o test.o -c test.c

Offline

#8 2018-11-22 17:00:58

rahulravi7
Member
Registered: 2018-11-22
Posts: 4

Re: Not able to build most things from AUR

loqs wrote:

The output of

gcc -v -o test.o -c test.c

Thank you for your reply! smile
By running gcc with -v option, I got
https://pastebin.com/8aXZT6U4

It was Anaconda's gcc masking the /usr/bin/gcc in the $PATH env variable.
So after editing and sourcing the ~/.bashrc file, it's working fine now!

I'll try not to do dumb things from now on.

Last edited by rahulravi7 (2018-11-22 17:02:19)

Offline

#9 2018-11-22 18:39:53

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 20,435
Website

Re: Not able to build most things from AUR

rahulravi7 wrote:

I'll try not to do dumb things from now on.

You mean like trying to use anaconda?


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Online

Board footer

Powered by FluxBB