LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Arch (http://www.linuxquestions.org/questions/forumdisplay.php?f=29)
-   -   Installing packages from source (http://www.linuxquestions.org/questions/showthread.php?t=4175445741)

TroN-0074 01-15-2013 03:22 PM

Installing packages from source
 
I just installed Arch. I wanted to install a package and download a .tar.gz file. I untared it and inside is a PKGBUILD file.

Can somebody please advice on how to install this package I will appreciate very much. Thank you.

serafean 01-15-2013 04:11 PM

Hi,

To install packages, usually you'll want to use the pacman package manager.
If your package isn't in the repositories, check AUR. Basic instructions on how to use it are here.

If you have a PKGBUILD, the easiest way is to run makepkg, and then install the created packages using pacman -U. However, a more convenient way is to use a tool like Yaourt which manages all these packages.

Last is a package that doesn't have a pkgbuild anywhere. These are to be installed manually (./configure && make && make install), which is usually documented somewhere amonst the other package documentation.

TroN-0074 01-15-2013 08:46 PM

Thank you for your reply. I tried the makepkg and I got the following

Quote:

[root@localhost xfce-theme-greybird]# makepkg PKGBUILD
==> ERROR: Running makepkg as root is a BAD idea and can cause permanent,
catastrophic damage to your system. If you wish to run as root, please
use the --asroot option.

Quote:

[user3@localhost xfce-theme-greybird]$ makepkg PKGBUILD
==> ERROR: Cannot find the fakeroot binary required for building as non-root user.
==> ERROR: Cannot find the strip binary required for object file stripping.
I just installed Arch and I am trying to find my way around. I havent had the chance to read the wiki so I thought to ask I really appreciate it

Thank you.

John VV 01-15-2013 09:21 PM

Quote:

I havent had the chance to read the wiki
you might want to

that wiki is one of the BEST even for other distros it is GOOD

buradd 01-17-2013 08:43 PM

Quote:

Originally Posted by TroN-0074 (Post 4871007)
Thank you for your reply. I tried the makepkg and I got the following





I just installed Arch and I am trying to find my way around. I havent had the chance to read the wiki so I thought to ask I really appreciate it

Thank you.

if they are just missing binaries, try this: pacman -S fakeroot strip

pacman is great


All times are GMT -5. The time now is 04:30 PM.