You are not logged in.

#1 2012-01-18 20:38:24

mostafasedaghat
Member
From: Rasht - Iran
Registered: 2012-01-18
Posts: 5
Website

[Solved]problem with yaourt 1.0-1

hi
update pacman to 4
and install yaourt from here http://archlinux.fr/yaourt-en#get_it

after install problem with yaourt

mostafa@mymind ~ % yaourt php
Unable to open file: /usr/local/etc/pacman.conf

Last edited by mostafasedaghat (2012-01-22 12:53:11)

Offline

#2 2012-01-19 10:43:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]problem with yaourt 1.0-1

Did you follow these instructions or did you run ./configure && make etc.
Install yaourt from AUR using a proper PKGBUILD - I did it and have no problems.

Offline

#3 2012-01-21 23:31:18

mostafasedaghat
Member
From: Rasht - Iran
Registered: 2012-01-18
Posts: 5
Website

Re: [Solved]problem with yaourt 1.0-1

i install yaourt from PKGBUILD

mostafa@mymind ~/Downloads/yaourt % ls
PKGBUILD
mostafa@mymind ~/Downloads/yaourt % makepkg -si
==> Making package: yaourt 1.0.1-1 (Sun Jan 22 06:18:53 IRST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading yaourt-1.0.1.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 57736  100 57736    0     0   5834      0  0:00:09  0:00:09 --:--:--  9445
==> Validating source files with md5sums...
    yaourt-1.0.1.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting yaourt-1.0.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
	GEN lib/abs.sh
==> Entering fakeroot environment...
==> Starting package()...
/bin/install  -d /home/mostafa/Downloads/yaourt/pkg/usr/bin
/bin/install  -d /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -d /home/mostafa/Downloads/yaourt/pkg/etc
/bin/install  -d /home/mostafa/Downloads/yaourt/pkg/etc/bash_completion.d
/bin/install  -d /home/mostafa/Downloads/yaourt/pkg/usr/share/man/man{5,8}
# Scripts
/bin/install  -m755 yaourt.sh /home/mostafa/Downloads/yaourt/pkg/usr/bin/yaourt
/bin/install  -m755 pacdiffviewer.sh /home/mostafa/Downloads/yaourt/pkg/usr/bin/pacdiffviewer
# Configuration
/bin/install  -m644 yaourtrc /home/mostafa/Downloads/yaourt/pkg/etc/yaourtrc
/bin/install  -m644 bashcompletion /home/mostafa/Downloads/yaourt/pkg/etc/bash_completion.d/yaourt
# Libs
/bin/install  -m644 lib/alpm_backup.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/alpm_query.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/alpm_stats.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/abs.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/aur.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/util.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/io.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/pacman.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/pkgbuild.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
/bin/install  -m644 lib/misc.sh /home/mostafa/Downloads/yaourt/pkg/usr/lib/yaourt
# Man
/bin/install  -m644 man/*.5 /home/mostafa/Downloads/yaourt/pkg/usr/share/man/man5
/bin/install  -m644 man/*.8 /home/mostafa/Downloads/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/mostafa/Downloads/yaourt/pkg/usr/share/locale/$lang/LC_MESSAGES; \
  /usr/bin/msgfmt -o /home/mostafa/Downloads/yaourt/pkg/usr/share/locale/$lang/LC_MESSAGES/$package.mo $file; \
done
==> Tidying install...
  -> Purging unwanted 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 1.0.1-1 (Sun Jan 22 06:19:05 IRST 2012)
==> Installing package yaourt with pacman -U...
Password: 
loading packages...
resolving dependencies...
looking for inter-conflicts...

Targets (1): yaourt-1.0.1-1

Total Installed Size:   0.27 MiB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                                                                                   [#####################################################################] 100%
(1/1) loading package files                                                                                        [#####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [#####################################################################] 100%
(1/1) checking available disk space                                                                                [#####################################################################] 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

when  run yaourt

mostafa@mymind ~ % yaourt linux
Unable to open file: /usr/local/etc/pacman.conf
mostafa@mymind ~ % which yaourt
/usr/bin/yaourt
mostafa@mymind ~ % sudo ln -s /etc/pacman.conf /usr/local/etc/pacman.conf
mostafa@mymind ~ % yaourt linux
failed to initialize alpm library (could not find or read directory)
mostafa@mymind ~ % pacman -Ss alpm
extra/pyalpm 0.5.3-1 [installed]
    Libalpm bindings for Python 3
archstuff/clyde-git 20101123-1
    Next-generation libalpm/makepkg wrapper.
archstuff/package-query 0.6-1 [installed: 1.0-1]
    Query ALPM and AUR
archstuff/package-query-git 20100719-1
    Query ALPM and AUR
archstuff/pacman-color 3.5.1-1
    Command-line frontend for libalpm aka pacman with color patch

before install pacman4 yaourt work correctly

Offline

#4 2012-01-22 02:45:56

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: [Solved]problem with yaourt 1.0-1

re-compile package-query

Offline

#5 2012-01-22 03:17:20

mostafasedaghat
Member
From: Rasht - Iran
Registered: 2012-01-18
Posts: 5
Website

Re: [Solved]problem with yaourt 1.0-1

the.ridikulus.rat wrote:

re-compile package-query

mostafa@mymind ~/Downloads/package-query % makepkg -si
==> Making package: package-query 1.0-1 (Sun Jan 22 10:03:36 IRST 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Downloading package-query-1.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  361k  100  361k    0     0   2471      0  0:02:29  0:02:29 --:--:--  2755
==> Validating source files with md5sums...
    package-query-1.0.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting package-query-1.0.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 gawk... (cached) gawk
checking for curl-config... /usr/bin/curl-config
checking for the version of libcurl... 7.23.1
checking for libcurl >= version 7.19.4... yes
checking whether libcurl is usable... yes
checking for curl_free... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
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
config.status: executing po-directories 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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2

    package-query version  : 1.0
    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/mostafa/Downloads/package-query/src/package-query-1.0'
Making all in src
make[2]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT alpm-query.o -MD -MP -MF .deps/alpm-query.Tpo -c -o alpm-query.o alpm-query.c
alpm-query.c: In function ‘alpm_pkg_get_realsize’:
alpm-query.c:486:9: warning: ignoring return value of ‘chdir’, declared with attribute warn_unused_result [-Wunused-result]
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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
util.c: In function ‘ltostr’:
util.c:514:11: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
util.c: In function ‘itostr’:
util.c:507:11: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result [-Wunused-result]
util.c: In function ‘string_fcat’:
util.c:342:11: warning: ignoring return value of ‘vasprintf’, declared with attribute warn_unused_result [-Wunused-result]
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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -lcurl -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu  -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -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 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--hash-style=gnu -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,--hash-style=gnu -o package-query aur.o alpm-query.o util.o color.o package-query.o  -lcurl -lyajl -lalpm
make[2]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/src'
Making all in doc
make[2]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/doc'
make[2]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0'
make[2]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0'
make[1]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0'
==> Entering fakeroot environment...
==> Starting package()...
Making install in src
make[1]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/src'
make[2]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/src'
test -z "/usr/bin" || /bin/mkdir -p "/home/mostafa/Downloads/package-query/pkg/usr/bin"
  /bin/sh ../libtool   --mode=install /bin/install -c package-query '/home/mostafa/Downloads/package-query/pkg/usr/bin'
libtool: install: /bin/install -c package-query /home/mostafa/Downloads/package-query/pkg/usr/bin/package-query
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/src'
make[1]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/src'
Making install in doc
make[1]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/doc'
make[2]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/share/man/man8" || /bin/mkdir -p "/home/mostafa/Downloads/package-query/pkg/usr/share/man/man8"
 /bin/install -c -m 644 package-query.8 '/home/mostafa/Downloads/package-query/pkg/usr/share/man/man8'
make[2]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/doc'
make[1]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0/doc'
make[1]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0'
make[2]: Entering directory `/home/mostafa/Downloads/package-query/src/package-query-1.0'
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/mostafa/Downloads/package-query/src/package-query-1.0'
make[1]: Leaving directory `/home/mostafa/Downloads/package-query/src/package-query-1.0'
==> Tidying install...
  -> Purging unwanted 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 1.0-1 (Sun Jan 22 10:06:31 IRST 2012)
==> Installing package package-query with pacman -U...
Password: 
loading packages...
warning: package-query-1.0-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

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

Total Installed Size:   0.08 MiB
Net Upgrade Size:       0.00 MiB

Proceed with installation? [Y/n] 
(1/1) checking package integrity                                                                               [######################] 100%
(1/1) loading package files                                                                                        [######################] 100%
(1/1) checking for file conflicts                                                                                  [######################] 100%
(1/1) checking available disk space                                                                          [######################] 100%
(1/1) upgrading package-query                                                                                [######################] 100%
makepkg -si  4.19s user 2.32s system 3% cpu 3:08.38 total
mostafa@mymind ~/Downloads/package-query % yaourt linux
failed to initialize alpm library (could not find or read directory)
mostafa@mymind ~/Downloads/package-query % 

Offline

#6 2012-01-22 06:59:46

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Offline

#7 2012-01-22 12:52:32

mostafasedaghat
Member
From: Rasht - Iran
Registered: 2012-01-18
Posts: 5
Website

Re: [Solved]problem with yaourt 1.0-1

Offline

Board footer

Powered by FluxBB