You are not logged in.

#1 2013-12-17 12:40:51

kchart
Member
Registered: 2013-12-17
Posts: 3

Issues with AUR

I am a complete noob to Arch. After about a 3 hour install session I pretty much have the essentials (i think)

anyways Im trying to figure out how to use this AUR

on this page
https://wiki.archlinux.org/index.php/Ar … Repository

it says I need to make a build folder in root (which i did)
i go into terminal log into root, (su root) however when i try to cd into the builds folder it does not work. I typed ls and the only thing that comes up in root is Desktop. Not sure what to really do as I am very new to linux (well at least I got kde successfully installed).

Shouldnt all of my folders (boot, etc, home, usr) show up?

Offline

#2 2013-12-17 12:46:34

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Issues with AUR

kchart wrote:

it says I need to make a build folder in root

Please quote the part that says it, because I can't find it.

https://wiki.archlinux.org/index.php/Ar … he_package

Since makepkg uses fakeroot (and should never be run as root)

Post the exact commands you used and the exact errors you got, don't just say "it does not work".

Last edited by karol (2013-12-17 12:47:06)

Offline

#3 2013-12-17 12:52:49

kchart
Member
Registered: 2013-12-17
Posts: 3

Re: Issues with AUR

it is in the prereq's


___________________________________________________

Prerequisites

First ensure that the necessary tools are installed. The package group base-devel should be sufficient; it includes make and other tools needed for compiling from source.
Warning: Packages in the AUR assume the base-devel group is installed, and AUR packages will not list members of this group as dependencies even if the package cannot be built without them. Please ensure this group is installed before complaining about failed builds.

# pacman -S --needed base-devel

Next choose an appropriate build directory. A build directory is simply a directory where the package will be made or "built" and can be any directory. Examples of commonly used directories are:

~/builds

or if using ABS (the Arch Build System):

/var/abs/local

_______________________________________________________


I install the base-devel but I cant cd into the ~/builds folder in root
I can only cd into Desktop

Last edited by kchart (2013-12-17 12:58:05)

Offline

#4 2013-12-17 12:57:42

Neburski
Member
Registered: 2009-09-15
Posts: 118

Re: Issues with AUR

And where does it say that you need a build folder in root?

It explicitly gives the example of making a build folder in your home. (i.e. ~/build )
How else will you be able to build packages while not being root, as is mentioned on that page, you should never build packages as root.

To make using the AUR repositories easier you might be interested in using something like cower or pacaur.

Offline

#5 2013-12-17 12:59:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Issues with AUR

He should first learn to use makepkg before attempting to use any AUR helper.

Offline

#6 2013-12-17 13:03:22

Neburski
Member
Registered: 2009-09-15
Posts: 118

Re: Issues with AUR

karol wrote:

He should first learn to use makepkg before attempting to use any AUR helper.

True, but afaik for most AUR helpers he would need to use makepkg anyway.

Offline

#7 2013-12-17 13:47:35

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Issues with AUR

Neburski wrote:
karol wrote:

He should first learn to use makepkg before attempting to use any AUR helper.

True, but afaik for most AUR helpers he would need to use makepkg anyway.

Depends which one he chooses and what method.

But I 100% agree with karol. One must understand what is behind the works before using automated tools.

Last edited by Kartious (2013-12-17 13:50:25)

Offline

#8 2013-12-17 18:18:26

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Issues with AUR

karol wrote:

He should first learn to use makepkg before attempting to use any AUR helper.

+1 for this

Telling someone who is already trying to build packages as root to use some blackbox automation tool is irresponsible.


@kchart
"~" is your user's home directory. You can use it as an alias in commands, e.g.

echo ~
mkdir ~/build
cd ~/build

Btw, when you quote people, the wiki, or any other non-code text, please use [quote] tags. For code, use  [code] tags.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB