You are not logged in.
Pages: 1
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 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
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
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
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
OK, and what I am supposed to do with this :
http://aur.archlinux.org/packages.php?ID=10673
When there's only PKGBUILD file?
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
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
yes
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
And resolves dependancies (which, at least for me, is the toughest part of compile process )
P.S. Check Shaman options. There is " install from file"
Last edited by Xabre (2009-06-22 11:29:38)
Offline
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
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
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
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
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
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
here you go: http://wiki.archlinux.org/index.php/Yaourt
Offline
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
IT WORKS NOW!!!!!!!!!!!!!!!!!! :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!
Offline
Pages: 1