You are not logged in.

#1 2011-04-28 23:03:59

aluser
Member
Registered: 2011-01-16
Posts: 119

[SOLVED]yajl and broken yaourt

After doing a system upgrade and upgrading yajl to version 2.0 yaourt is not working anymore. There is a thread here somewhere with the same issue, but the fixes there don't seem to work for me.

I've tried removing yaourt, packagequery and yajl completely and start from scratch installing yaourt from the archlinux.fr repositores and yet still yaourt throws me errors. This error is using yajl-2.0.1-1, package-query-0.8-1, and yaourt 0.10.1-2 which have been supposedly updated to work with the new version of yajl.. but not for me.

package-query: error while loading shared libraries: libyajl.so.1: cannot open shared obh file or directory

If I downgrade to yajl 1.0 the problem persists (i'm using this link http://arm.konnichi.com/2011/04/25/comm … g.tar.xz_) but this time I get a different error..

 problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory

I've also downloaded the pkgbuilds for each package and built it instead of adding archlinux.fr to the pacman repository and installing from there, but its the same problem.

Last edited by aluser (2011-05-01 03:52:31)

Offline

#2 2011-04-28 23:25:00

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: [SOLVED]yajl and broken yaourt

Try package-query-git from AUR and see if that works.

Offline

#3 2011-04-28 23:36:37

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

Re: [SOLVED]yajl and broken yaourt

https://bbs.archlinux.org/viewtopic.php?id=117606

yay for the search function!


Edit: Don't use the [archlinuxfr] repo, it usually contains old/broken/bad packages.

Last edited by Mr.Elendig (2011-04-28 23:37:47)


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

Offline

#4 2011-04-28 23:49:49

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]yajl and broken yaourt

aluser wrote:
 problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory

So, at some point you installed pacman by hand. Note the '/usr/local' in there which should never exist.

Offline

#5 2011-04-29 00:38:16

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]yajl and broken yaourt

thisoldman wrote:

Try package-query-git from AUR and see if that works.

Just tried it, still the same 'package-query: error while loading shared libraries: libyajl.so.1: cannot open shared object file or directory' error. I did some searching and libyajl.so.1 doesn't exist, but I have these files instead. What should I do? I tried renaming them to libyajl.so.1 one by one and Instead I got the dbpath error.

/usr/lib

[aluser@archws lib]$ ls libyajl*
libyajl_s.a  libyajl.so  libyajl.so.2  libyajl.so.2.0.1
Mr.Elendig wrote:

https://bbs.archlinux.org/viewtopic.php?id=117606


yay for the search function!


Edit: Don't use the [archlinuxfr] repo, it usually contains old/broken/bad packages.

Well I don't know about that. The website has worked for me all the time and its mentioned in the wiki, also it seems the latest package-query package is updated
package-query-0.8-1-x86_64.pkg.tar.xz    2011-Apr-26 11:12:33    21.7K    application/octet-stream (from http://repo.archlinux.fr/x86_64/)


falconindy wrote:
aluser wrote:
 problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory

So, at some point you installed pacman by hand. Note the '/usr/local' in there which should never exist.

I've never installed pacman by hand. I don't know why dbpath is understood as ''/usr/local/var/lib/pacman/' when in fact its just /var/lib/pacman

This is the output of yaourt -v..

Root      : /
Conf File : /etc/pacman.conf
DB Path   : /var/lib/pacman/
Cache Dirs: /var/cache/pacman/pkg/  
Lock File : /var/lib/pacman/db.lck
Log File  : /var/log/pacman.log
Targets   : None

Last edited by aluser (2011-04-29 00:47:27)

Offline

#6 2011-04-29 01:03:30

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED]yajl and broken yaourt

No offense intended, but are you sure you know how to use the AUR? I mean, without yaourt? If you built and installed package-query-git (or even package-query) against yajl 2, you should not be getting that error.

Or to put it another way, what exactly did you do when you tried package-query-git?

Offline

#7 2011-04-29 01:19:07

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]yajl and broken yaourt

tomk wrote:

No offense intended, but are you sure you know how to use the AUR? I mean, without yaourt? If you built and installed package-query-git (or even package-query) against yajl 2, you should not be getting that error.

Or to put it another way, what exactly did you do when you tried package-query-git?

I downloaded the tarball, extracted it, and ran 'makepkg -s' along with 'sudo pacman -U [package].xz...I'm doing it right.. right?

Last edited by aluser (2011-04-29 01:40:26)

Offline

#8 2011-04-29 08:58:18

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED]yajl and broken yaourt

aluser wrote:
tomk wrote:

No offense intended, but are you sure you know how to use the AUR? I mean, without yaourt? If you built and installed package-query-git (or even package-query) against yajl 2, you should not be getting that error.

Or to put it another way, what exactly did you do when you tried package-query-git?

I downloaded the tarball, extracted it, and ran 'makepkg -s' along with 'sudo pacman -U [package].xz...I'm doing it right.. right?

Yes, you are doing it right.

Offline

#9 2011-04-29 18:23:38

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]yajl and broken yaourt

anyone? maybe some file is corrupted? why am i the only one with this problem sad

Offline

#10 2011-04-29 20:00:59

0sz
Member
Registered: 2011-04-29
Posts: 8

Re: [SOLVED]yajl and broken yaourt

what i did was install it yajl first "sudo pacman -S yajl" then yaourt. it worked for me

Offline

#11 2011-04-29 20:57:00

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED]yajl and broken yaourt

problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory

If this was with yaourt, you must have build package-query without the needed prefix (or installed a bad package). If pacman -v shows the same, you are in some more serious trouble.

Maybe something got messed up in between; just try once more to start from scratch, i.e.
- if you symlinked any libraries, undo it (bad idea)
- remove yaourt & package query
- pacman -Syu
- build package-query from AUR
- build yaourt from AUR
- install them

Offline

#12 2011-04-30 01:46:13

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]yajl and broken yaourt

hokasch wrote:

problem setting dbpath '/usr/local/var/lib/pacman/' (could not find or read directory

If this was with yaourt, you must have build package-query without the needed prefix (or installed a bad package). If pacman -v shows the same, you are in some more serious trouble.

Maybe something got messed up in between; just try once more to start from scratch, i.e.
- if you symlinked any libraries, undo it (bad idea)
- remove yaourt & package query
- pacman -Syu
- build package-query from AUR
- build yaourt from AUR
- install them

I tried again from scratch once again and still the same problem. This time I included the whole procedure and all the build logs are also included. Hopefully someone knows whats wrong.

[aluser@archws ~]$ sudo pacman -R package-query yaourt
Password: 
checking dependencies...

Remove (2): yaourt-0.10.1-2  package-query-0.8-1

Total Removed Size:   0.30 MB

Do you want to remove these packages? [Y/n] y
(1/2) removing yaourt                              [######################] 100%
(2/2) removing package-query                       [######################] 100%
[aluser@archws ~]$ cd ~/build
[aluser@archws build]$ cd package-query
[aluser@archws package-query]$ ls
package-query-0.8-1-x86_64.pkg.tar.xz  pkg       src
package-query-0.8.tar.gz               PKGBUILD
[aluser@archws package-query]$ shopt -s extglob
[aluser@archws package-query]$ rm -r !(PKGBUILD)
[aluser@archws package-query]$ ls
PKGBUILD
[aluser@archws package-query]$ makepkg
==> Making package: package-query 0.8-1 (Fri Apr 29 20:41:01 CDT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading package-query-0.8.tar.gz...
--2011-04-29 20:41:01--  http://mir.archlinux.fr/~tuxce/releases/package-query/package-query-0.8.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: 331010 (323K) [application/x-gzip]
Saving to: “package-query-0.8.tar.gz.part”

100%[=====================================================================================>] 331,010      335K/s   in 1.0s    

2011-04-29 20:41:02 (335 KB/s) - “package-query-0.8.tar.gz.part” saved [331010/331010]

==> Validating source files with md5sums...
    package-query-0.8.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting package-query-0.8.tar.gz with bsdtar
==> Starting build()...
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for alpm_version in -lalpm... yes
checking for yajl_free in -lyajl... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBCURL... yes
checking for git... git
checking for .git/... no
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands

package-query:

  Build information:
    source code location   : .
    prefix                 : /usr
    sysconfdir             : /etc
       conf file           : /etc/pacman.conf
    localstatedir          : /var
       database dir        : /var/lib/pacman/
    compiler               : gcc
    compiler flags         : -march=x86-64 -mtune=generic -O2 -pipe

    package-query version  : 0.8
    using git version      : no
       git ver             : 

  Variable information:
    root working directory : /
    aur base url           : http://aur.archlinux.org

make  all-recursive
make[1]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8'
Making all in src
make[2]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8/src'
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H  -I. -I..     -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -MT aur.o -MD -MP -MF .deps/aur.Tpo -c -o aur.o aur.c
mv -f .deps/aur.Tpo .deps/aur.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H  -I. -I..     -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c
mv -f .deps/alpm-query.Tpo .deps/alpm-query.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H  -I. -I..     -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
mv -f .deps/util.Tpo .deps/util.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H  -I. -I..     -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -MT color.o -MD -MP -MF .deps/color.Tpo -c -o color.o color.c
mv -f .deps/color.Tpo .deps/color.Po
gcc -DLOCALEDIR=\"/usr/share/locale\" -DCONFFILE=\"/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/var/lib/pacman/\" -DAUR_BASE_URL=\"http://aur.archlinux.org\" -DHAVE_CONFIG_H  -I. -I..     -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -MT package-query.o -MD -MP -MF .deps/package-query.Tpo -c -o package-query.o package-query.c
mv -f .deps/package-query.Tpo .deps/package-query.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -lcurl   -Wl,--hash-style=gnu -Wl,--as-needed -o package-query aur.o alpm-query.o util.o color.o package-query.o  -lyajl -lalpm 
libtool: link: gcc -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -Wl,--hash-style=gnu -Wl,--as-needed -o package-query aur.o alpm-query.o util.o color.o package-query.o  -lcurl -lyajl -lalpm
make[2]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8/src'
Making all in doc
make[2]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8/doc'
make[2]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8'
make[2]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8'
make[1]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8'
==> Entering fakeroot environment...
==> Starting package()...
Making install in src
make[1]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8/src'
make[2]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8/src'
test -z "/usr/bin" || /bin/mkdir -p "/home/aluser/build/package-query/pkg/usr/bin"
  /bin/sh ../libtool   --mode=install /bin/install -c package-query '/home/aluser/build/package-query/pkg/usr/bin'
libtool: install: /bin/install -c package-query /home/aluser/build/package-query/pkg/usr/bin/package-query
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8/src'
make[1]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8/src'
Making install in doc
make[1]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8/doc'
make[2]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/man/man8" || /bin/mkdir -p "/home/aluser/build/package-query/pkg/usr/share/man/man8"
 /bin/install -c -m 644 package-query.8 '/home/aluser/build/package-query/pkg/usr/share/man/man8'
make[2]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8/doc'
make[1]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8/doc'
make[1]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8'
make[2]: Entering directory `/home/aluser/build/package-query/src/package-query-0.8'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8'
make[1]: Leaving directory `/home/aluser/build/package-query/src/package-query-0.8'
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: package-query 0.8-1 (Fri Apr 29 20:41:12 CDT 2011)
[aluser@archws package-query]$ sudo pacman -U *
error: missing package metadata in package-query-0.8.tar.gz
error: 'package-query-0.8.tar.gz': invalid or corrupted package
[aluser@archws package-query]$ sudo pacman -U *.xz
resolving dependencies...
looking for inter-conflicts...

Targets (1): package-query-0.8-1

Total Download Size:    0.00 MB
Total Installed Size:   0.08 MB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                             [###########################################] 100%
(1/1) checking for file conflicts                                            [###########################################] 100%
(1/1) installing package-query                                               [###########################################] 100%
[aluser@archws package-query]$ cd..
[aluser@archws build]$ cd yaourt
[aluser@archws yaourt]$ ls
pkg  PKGBUILD  src  yaourt-0.10.1-2-any.pkg.tar.xz  yaourt-0.10.1.tar.gz
[aluser@archws yaourt]$ rm -r !(PKGBUILD)
[aluser@archws yaourt]$ makepkg
==> Making package: yaourt 0.10.1-2 (Fri Apr 29 20:41:45 CDT 2011)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading yaourt-0.10.1.tar.gz...
--2011-04-29 20:41:45--  http://mir.archlinux.fr/~tuxce/releases/yaourt/yaourt-0.10.1.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: 52450 (51K) [application/x-gzip]
Saving to: “yaourt-0.10.1.tar.gz.part”

100%[=====================================================================================>] 52,450       122K/s   in 0.4s    

2011-04-29 20:41:46 (122 KB/s) - “yaourt-0.10.1.tar.gz.part” saved [52450/52450]

==> Validating source files with md5sums...
    yaourt-0.10.1.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting yaourt-0.10.1.tar.gz with bsdtar
==> Starting build()...
    GEN yaourt.sh
    GEN pacdiffviewer.sh
    GEN lib/util.sh
    GEN lib/pkgbuild.sh
    GEN lib/pacman.sh
==> Entering fakeroot environment...
==> Starting package()...
/bin/install  -d /home/aluser/build/yaourt/pkg/usr/bin
/bin/install  -d /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -d /home/aluser/build/yaourt/pkg/etc
/bin/install  -d /home/aluser/build/yaourt/pkg/etc/bash_completion.d
/bin/install  -d /home/aluser/build/yaourt/pkg/usr/share/man/man{5,8}
# Scripts
/bin/install  -m755 yaourt.sh /home/aluser/build/yaourt/pkg/usr/bin/yaourt
/bin/install  -m755 pacdiffviewer.sh /home/aluser/build/yaourt/pkg/usr/bin/pacdiffviewer
# Configuration
/bin/install  -m644 yaourtrc /home/aluser/build/yaourt/pkg/etc/yaourtrc
/bin/install  -m644 bashcompletion /home/aluser/build/yaourt/pkg/etc/bash_completion.d/yaourt
# Libs
/bin/install  -m644 lib/alpm_backup.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/alpm_query.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/alpm_stats.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/abs.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/aur.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/util.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/io.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/pacman.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/pkgbuild.sh /home/aluser/build/yaourt/pkg/usr/lib/yaourt
# Man
/bin/install  -m644 man/*.5 /home/aluser/build/yaourt/pkg/usr/share/man/man5
/bin/install  -m644 man/*.8 /home/aluser/build/yaourt/pkg/usr/share/man/man8
# Locales
test -x /usr/bin/msgfmt && for file in po/*/*.po; \
    do \
      package=$(echo $file | /bin/sed -e 's#po/\([^/]\+\).*#\1#'); \
      lang=$(echo $file | /bin/sed -e 's#.*/\([^/]\+\).po#\1#'); \
      /bin/install  -d /home/aluser/build/yaourt/pkg/usr/share/locale/$lang/LC_MESSAGES; \
      /usr/bin/msgfmt -o /home/aluser/build/yaourt/pkg/usr/share/locale/$lang/LC_MESSAGES/$package.mo $file; \
    done
==> Tidying install...
  -> Purging other files...
  -> Compressing man and info pages...
  -> Stripping unneeded symbols from binaries and libraries...
==> Creating package...
  -> Generating .PKGINFO file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: yaourt 0.10.1-2 (Fri Apr 29 20:41:48 CDT 2011)
[aluser@archws yaourt]$ sudo pacman -U *.xz
resolving dependencies...
looking for inter-conflicts...

Targets (1): yaourt-0.10.1-2

Total Download Size:    0.00 MB
Total Installed Size:   0.22 MB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                                             [###########################################] 100%
(1/1) checking for file conflicts                                            [###########################################] 100%
(1/1) installing yaourt                                                      [###########################################] 100%
Optional dependencies for yaourt
    aurvote: vote for favorite packages from AUR for inclusion in [community]
    customizepkg: automatically modify PKGBUILD during install/upgrade
    rsync: retrieve PKGBUILD from official repositories
    pacman-color: fully colorized output
[aluser@archws yaourt]$ yaourt -Ss test
package-query: error while loading shared libraries: libyajl.so.1: cannot open shared object file: No such file or directory
[aluser@archws yaourt]$ 

EDIT: I also did a sudo pacman -Syyu before installing yaourt and package-query again.

Last edited by aluser (2011-04-30 01:52:25)

Offline

#13 2011-04-30 01:51:29

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

Re: [SOLVED]yajl and broken yaourt

post the output of

which package-query

Offline

#14 2011-04-30 16:25:28

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]yajl and broken yaourt

Allan wrote:

post the output of

which package-query

/usr/local/bin/package-query

Offline

#15 2011-04-30 16:35:29

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

Re: [SOLVED]yajl and broken yaourt

pacman -Qo /usr/local/bin/package-query


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

Offline

#16 2011-04-30 16:59:04

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]yajl and broken yaourt

Mr.Elendig wrote:

pacman -Qo /usr/local/bin/package-query

It says no package owns it.. is that bad?

Offline

#17 2011-04-30 23:06:49

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

Re: [SOLVED]yajl and broken yaourt

That means you have manually installed package-query into /usr/local at some stage.  The version you build using makepkg comes later in your PATH so is not being used.   You need to remove the relevant files from /usr/local.

Offline

#18 2011-05-01 03:52:11

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]yajl and broken yaourt

Allan wrote:

That means you have manually installed package-query into /usr/local at some stage.  The version you build using makepkg comes later in your PATH so is not being used.   You need to remove the relevant files from /usr/local.

I finally got it to work, thanks! I learned something new today.

Offline

#19 2011-05-01 13:52:35

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

Re: [SOLVED]yajl and broken yaourt

Moral of the story: _always_ use makepkg/pacman


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

Offline

Board footer

Powered by FluxBB