You are not logged in.

#1 2009-06-22 10:58:44

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Installing packages form [unsupported]

Hi. To begin with, I'm a TOTAL newbie at Arch and previously I only used opensuse and ubuntu, which let me just download/click the .deb/.rpm package I wanted and it was installed. I have no idea how to make it now, however. I have looked into this forum but your talking is too 'technical' for me (sorry!). I just don't get 1 of Your 2 words wink So, to make it simple, I've got two packages from unsupported which i'd like to install to have my hardware fully supported:

http://aur.archlinux.org/packages.php?ID=21313

http://aur.archlinux.org/packages.php?ID=10673

What exactly is the PKGBUILD file? Is it only plain text? I mean, on kde-look.org users often post .rpms/.debs for their distro in comments, and I sometimes see comment "Here's PKGBUILD for Arch:" which made me think it's some kind of "click 'n' install" file. Now, I don't know what to think. Are these packages in [unuspported] precompiled, or do I somehow need to download & compile them?

PS.: I use Chakra Alpha3 Preview, so there's Shaman. There's "Build and Install from Sources" menu, and there's "update ABS tree", but what do I do next? I think it is needed to install from unsupported, if I rember correctly I read this in some Arch Wiki.

Last edited by warnec (2009-06-22 11:00:46)

Offline

#2 2009-06-22 11:12:18

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Installing packages form [unsupported]

AUR only contains build files, not binary packages. You can think about it as a user contributed online version of portage.

Building stuff fram aur is rather easy:

wget http://aur.archlinux.org/packages/stuff/stuff.tar.gz && tar -xvf stuff.tar.gz && cd stuff && $EDITOR PKGBUILD && makepkg -cf && su -c 'pacman -U *.pkg.tar.gz'

These documentations provides some more info:
http://wiki.archlinux.org/index.php/AUR
http://wiki.archlinux.org/index.php/Bui … Arch_Linux
`man  PKGBUILD`
`man makepkg`


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2009-06-22 11:15:55

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: Installing packages form [unsupported]

OK, and what I am supposed to do with this :

http://aur.archlinux.org/packages.php?ID=10673

When there's only PKGBUILD file?

Offline

#4 2009-06-22 11:21:16

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: Installing packages form [unsupported]

PKGBUILD is a script for making packages from sources. So, no, they are not precompiled binaries, but only a set of instructions that makepkg uses to automaticaly compile source and make package.

You can always use yaourt for easy manipulation of AUR PKGBUILD scripts.

As for Shaman and ABS: Frst update ABS tree (downloads PKGBUILDs for all packages in official arch repos - just arch, not chakra/kdemod), then mark package for instal,l then select "build and install from source" (builds package from source using PKGBUILD script instead of downloading and installing precompiled binary from repo).

Offline

#5 2009-06-22 11:23:06

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Installing packages form [unsupported]

warnec wrote:

OK, and what I am supposed to do with this :

http://aur.archlinux.org/packages.php?ID=10673

When there's only PKGBUILD file?

Mr.Elendig wrote:
wget http://aur.archlinux.org/packages/stuff/stuff.tar.gz && tar -xvf stuff.tar.gz && cd stuff && $EDITOR PKGBUILD && makepkg -cf && su -c 'pacman -U *.pkg.tar.gz'

Replace 'stuff' as needed.

Edit:  And please read the links and man pages I pointed at, they do explain it all.

Last edited by Mr.Elendig (2009-06-22 11:23:33)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#6 2009-06-22 11:25:31

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: Installing packages form [unsupported]

I sort of understand how it works. PKGBUILD is a 'compilation manual' to the system, right? It tells the system where to look for the source and how to compile it?

PS.: One more question. Right now I can download & unpack in GUI mode, and I need to make .pkg.tar.gz from PKGBUILD in console, and I can install .pkg.tar.gz in Shaman. I know you Arch guys just LOVE command line (:D) but is there any way to just point shaman to PKGBUILD file and it does the rest?

Last edited by warnec (2009-06-22 11:28:08)

Offline

#7 2009-06-22 11:28:17

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Installing packages form [unsupported]

yes


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2009-06-22 11:28:31

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: Installing packages form [unsupported]

And resolves dependancies (which, at least for me, is the toughest part of compile process wink )

P.S. Check Shaman options. There is " install from file"

Last edited by Xabre (2009-06-22 11:29:38)

Offline

#9 2009-06-22 11:28:42

Surgat_
Member
Registered: 2007-08-08
Posts: 317

Re: Installing packages form [unsupported]

The method described by Mr.Elendig should work for any package, just write the name of the package instead of 'stuff'. More specificly, what you have to do to install that package is:

- Download the PKGBUILD and any other files required (this package only requires the PKGBUILD, but some packages require some others, which are included in the TARBALL link).
- Save it/them in a new directory.
- Edit the PKGBUILD with the editor of your choice. This isn't really needed, but it's recommended because a PKGBUILD could do things that you do not want to be done.
- Run makepkg on that directory. This will tipically download the source, configure it and compile it, and you will have a .pkg.tar.gz file as output.
- Install de package with pacman: pacman -U *.pkg.gz. This must be done as root.

Good luck!

Edit: Shit! You guys are damn fast!

Last edited by Surgat_ (2009-06-22 11:30:07)

Offline

#10 2009-06-22 11:32:42

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: Installing packages form [unsupported]

OK, and what I am supposed to do with this?

[warnec@chakra lexmark-z700]$ makepkg -cf
==> BŁĄD: cups-lexmark-700 nie jest dostępny dla architektury 'x86_64'.
    Dużo pakietów może potrzebować w PKGBUILD pola
    podobnego do arch=('x86_64').
[warnec@chakra lexmark-z700]$

nie jest dostępny dla architektury = is not available for architecture
Dużo pakietów może potrzebować w PKGBUILD pola
    podobnego do arch=('x86_64').
=
Many packages may require field fimilar to arch=('x86_64') in PKGBUILD.

So I just edit all 'i586' to 'x86_64' in PKGBUILD?


And what about my previous question? Is it possible to have all-in-one GUI solution for PKGBUILDs?

Offline

#11 2009-06-22 11:39:20

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Installing packages form [unsupported]

warnec wrote:

OK, and what I am supposed to do with this?

[warnec@chakra lexmark-z700]$ makepkg -cf
==> BŁĄD: cups-lexmark-700 nie jest dostępny dla architektury 'x86_64'.
    Dużo pakietów może potrzebować w PKGBUILD pola
    podobnego do arch=('x86_64').
[warnec@chakra lexmark-z700]$

nie jest dostępny dla architektury = is not available for architecture
Dużo pakietów może potrzebować w PKGBUILD pola
    podobnego do arch=('x86_64').
=
Many packages may require field fimilar to arch=('x86_64') in PKGBUILD.

So I just edit all 'i586' to 'x86_64' in PKGBUILD?


And what about my previous question? Is it possible to have all-in-one GUI solution for PKGBUILDs?

there's a wrapper that can help you to install packages from AUR. I do not use it but many people do and are happy with it. Search for yaourt (that's the actual name of the package). IIRC there's a binary in arch french repo.

/edit: here it is...
http://repo.archlinux.fr/i686/yaourt-0. … kg.tar.bz2
http://repo.archlinux.fr/x86_64/yaourt- … kg.tar.bz2

Last edited by bangkok_manouel (2009-06-22 11:41:46)

Offline

#12 2009-06-22 11:41:36

Xabre
Member
From: Serbia
Registered: 2009-03-19
Posts: 749

Re: Installing packages form [unsupported]

Simply said: Package that youre trying to compile doesn't work on x86_64. Editing arch= line won't help.

There is no GUI for AUR, closest thing you can get is yaourt, which is a very simple and helping terminal program.

I'm not even sure that a GUI would be a good idea for this process, such as it is.

Offline

#13 2009-06-22 11:43:12

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Installing packages form [unsupported]

warnec wrote:

OK, and what I am supposed to do with this?

[warnec@chakra lexmark-z700]$ makepkg -cf
==> BŁĄD: cups-lexmark-700 nie jest dostępny dla architektury 'x86_64'.
    Dużo pakietów może potrzebować w PKGBUILD pola
    podobnego do arch=('x86_64').
[warnec@chakra lexmark-z700]$

nie jest dostępny dla architektury = is not available for architecture
Dużo pakietów może potrzebować w PKGBUILD pola
    podobnego do arch=('x86_64').
=
Many packages may require field fimilar to arch=('x86_64') in PKGBUILD.

So I just edit all 'i586' to 'x86_64' in PKGBUILD?


And what about my previous question? Is it possible to have all-in-one GUI solution for PKGBUILDs?

It might be that the driver you are trying to install is 32bit only.

And please post errors in english, you can get english output by simply prepend your command with LANG=C


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#14 2009-06-22 16:58:12

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: Installing packages form [unsupported]

I installed X-fi card successfully, just needed to install oss sound module.


PS I installed this printer successfully on opensuse 11.1 64-bit only with 32-bit packages. It required some tamering to install 32-bit packages to install, but worked. I changed 'i686' to 'x86_64', then installed all the required dependencies, and the package installed successfully.


Now, I remember there was a line in cups online interface:

"/usr/lib64/cups/filter/rastertoz700 failed"

And I needed to copy rastertoz700 file from /usr/lib/cups/filter/ to /usr/lib64/cups/filter/
, and in Arch there's only lib, no lib64. How to do this?

I repeat, this surely can be done, I did it on opensuse!

PS In Arch I get:

"/usr/lib/cups/filter/rastertoz700 failed"

Even though there's such a file.

PPS.:

./rastertoz700: error while loading shared libraries: libcups.so.2: wrong ELF class: ELFCLASS64

Which propably means it's 32-bit only for Arch. sigh. Pity I got it to work with opensuse 11.1 64-bit. Will try to work that out, anyway.

Last edited by warnec (2009-06-22 17:12:47)

Offline

#15 2009-06-22 17:16:59

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: Installing packages form [unsupported]

Offline

#16 2009-06-22 17:37:25

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: Installing packages form [unsupported]

OK, I've got an idea about the lexmark driver. I need to make a link from /lib/ where there are 64-bit cups libraries to /opt/lib32/usr/lib where the 32-bit cups libraries.


How do I do that?

PS.: I can use ln, but there is already 64-bit library, so I can't. And I am afraid to remove all 64-bit cups files, because I don't know if it will work with 32-bit only.

Last edited by warnec (2009-06-22 17:39:29)

Offline

#17 2009-06-22 19:33:16

warnec
Member
From: Poland
Registered: 2009-06-22
Posts: 166

Re: Installing packages form [unsupported]

IT WORKS NOW!!!!!!!!!!!!!!!!!! big_smile:D:D:D

I just needed to execute :

sudo ldconfig

Of course, nobody wrote that's required. 2h of Googling, and now, printing in linux, here I come! wink

Offline

Board footer

Powered by FluxBB