You are not logged in.

#1 2010-06-28 11:57:21

Ryuujin
Member
Registered: 2009-07-04
Posts: 31

[SOLVED] Can't install yaourt/package-query

Hello,

I followed the instructions on the wiki (http://wiki.archlinux.org/index.php/Yaourt#From_the_AUR):

 wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz
 tar zxvf package-query.tar.gz
 cd package-query
 makepkg -si
 cd ..

Output:

[ryuujin@q6600 ~]$ mkdir newdir
[ryuujin@q6600 ~]$ cd newdir/
[ryuujin@q6600 newdir]$ ls
[ryuujin@q6600 newdir]$ wget http://aur.archlinux.org/packages/package-query/package-query.tar.gz
--2010-06-28 06:24:02--  http://aur.archlinux.org/packages/package-query/package-query.tar.gz
Resolving aur.archlinux.org... 208.92.232.29
Connecting to aur.archlinux.org|208.92.232.29|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 473 [application/x-tgz]
Saving to: "package-query.tar.gz"

100%%[=================================================>] 473         --.-K/s   in 0s      

2010-06-28 06:24:03 (94.1 MB/s) - "package-query.tar.gz" saved [473/473]

[ryuujin@q6600 newdir]$ tar zxvf package-query.tar.gz
package-query
package-query/PKGBUILD
[ryuujin@q6600 newdir]$ cd package-query
[ryuujin@q6600 package-query]$ ls
PKGBUILD
[ryuujin@q6600 package-query]$ makepkg -si
==> Making package: package-query 0.3-2 (Mon Jun 28 06:24:41 AST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Downloading package-query-0.3.tar.gz...
--2010-06-28 06:24:41--  http://mir.archlinux.fr/~tuxce/releases/package-query/package-query-0.3.tar.gz
Resolving mir.archlinux.fr... 213.186.62.207
Connecting to mir.archlinux.fr|213.186.62.207|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14506 (14K) [application/x-gzip]
Saving to: "package-query-0.3.tar.gz.part"

100%[=================================================>] 14,506      35.8K/s   in 0.4s    

2010-06-28 06:24:42 (35.8 KB/s) - "package-query-0.3.tar.gz.part" saved [14506/14506]

==> Validating source files with md5sums...
    package-query-0.3.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting package-query-0.3.tar.gz with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
for dir in src doc ; do ( cd $dir ; make install ) ; done
make[1]: Entering directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/src'
gcc -Wall  -march=x86-64 -mtune=generic -O2 -pipe   -c -o aur.o aur.c
gcc -Wall  -march=x86-64 -mtune=generic -O2 -pipe   -c -o alpm-query.o alpm-query.c
gcc -Wall  -march=x86-64 -mtune=generic -O2 -pipe   -c -o util.o util.c
gcc -Wall  -march=x86-64 -mtune=generic -O2 -pipe   -c -o package-query.o package-query.c
gcc -Wall  *.o -o package-query -lalpm -lyajl -lcurl
install -m 755 package-query /home/ryuujin/newdir/package-query/pkg/usr/bin/package-query
make[1]: Leaving directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/src'
make[1]: Entering directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/doc'
gzip -c package-query.8 > package-query.8.gz
install -m 644 package-query.8.gz /home/ryuujin/newdir/package-query/pkg/usr/share/man/man8/package-query.8.gz
make[1]: Leaving directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/doc'
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
/usr/bin/makepkg: line 902: * 1024 : syntax error: operand expected (error token is "* 1024 ")
==> Making package: package-query 0.3-2 (Mon Jun 28 06:24:44 AST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
  -> Found package-query-0.3.tar.gz
==> Validating source files with md5sums...
    package-query-0.3.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting package-query-0.3.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
for dir in src doc ; do ( cd $dir ; make install ) ; done
make[1]: Entering directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/src'
install -m 755 package-query /home/ryuujin/newdir/package-query/pkg/usr/bin/package-query
make[1]: Leaving directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/src'
make[1]: Entering directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/doc'
install -m 644 package-query.8.gz /home/ryuujin/newdir/package-query/pkg/usr/share/man/man8/package-query.8.gz
make[1]: Leaving directory `/home/ryuujin/newdir/package-query/src/package-query-0.3/doc'
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
/usr/bin/makepkg: line 902: * 1024 : syntax error: operand expected (error token is "* 1024 ")
==> Finished making: package-query 0.3-2 (Mon Jun 28 06:24:44 AST 2010)
==> Installing package package-query with pacman -U...
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
error: '/home/ryuujin/newdir/package-query/package-query-0.3-2-any.pkg.tar.xz': cannot open package file
==> WARNING: Failed to install built package(s).
==> Finished making: package-query 0.3-2 (Mon Jun 28 06:24:45 AST 2010)
==> Installing package package-query with pacman -U...
error: '/home/ryuujin/newdir/package-query/package-query-0.3-2-any.pkg.tar.xz': cannot open package file
==> WARNING: Failed to install built package(s).
[ryuujin@q6600 package-query]$

My system is up to date:

[ryuujin@q6600 ~]$ pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do
[ryuujin@q6600 ~]$

Version of pacman:

[ryuujin@q6600 ~]$ pacman -Q | grep pacman
pacman 3.4.0-2
pacman-mirrorlist 20100621-1

Full disclosure:

Yaourt was working but recently, I think when pacman 3.4 and the tar.xz packages came it stopped working. So I removed package-query and yaourt (via pacman -R), then when I tried to install them, I got the same error I received that made me try to re-install yaourt (replace 'package-query' in the example below with [name of package I'm installing]:

ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
error: '/home/ryuujin/newdir/package-query/package-query-0.3-2-any.pkg.tar.xz': cannot open package file
==> WARNING: Failed to install built package(s).
==> Finished making: package-query 0.3-2 (Mon Jun 28 06:24:45 AST 2010)
==> Installing package package-query with pacman -U...
error: '/home/ryuujin/newdir/package-query/package-query-0.3-2-any.pkg.tar.xz': cannot open package file
==> WARNING: Failed to install built package(s).

I searched the forums/google to no avail and tried to install yaourt-git and package-query-git, but I got the same error.

Threads I saw:
http://bbs.archlinux.org/viewtopic.php?id=71738
http://bbs.archlinux.org/viewtopic.php?pid=477368 (yes, I tried: pacman -Sf $(pacman -Qq | grep -v "$(pacman -Qmq)") )
http://bbs.archlinux.org/viewtopic.php?id=70389
and a few others...
My crappy google search query

Thanks.

Last edited by Ryuujin (2010-06-28 12:11:21)

Offline

#2 2010-06-28 12:03:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,390
Website

Re: [SOLVED] Can't install yaourt/package-query

This is probably the relevant part:

==> Creating package...
/usr/bin/makepkg: line 902: * 1024 : syntax error: operand expected (error token is "* 1024 ")

makepkg is dying because you have the cw package installed and it "breaks" parsing of the du output.   It will be fixed in 3.4.1.

Offline

#3 2010-06-28 12:10:58

Ryuujin
Member
Registered: 2009-07-04
Posts: 31

Re: [SOLVED] Can't install yaourt/package-query

Thank you big_smile !

I pacman -R cw and everything works correctly. Marked thread as [SOLVED].

Offline

Board footer

Powered by FluxBB