You are not logged in.
I don't know what I've screwed up this time, but when I am using yaourt (-Ss -S, whatever) the output is pretty unreadable:
└─(03:40:%)── yaourt -Ss stumpwm
/usr/lib/yaourt/basicfunctions.sh: line 277: initcolor: command not found
/usr/bin/yaourt: line 1586: cleanoutput: command not found
aur/stumpwm-clisp-git 20081013-1
A tiling, keyboard-driven window manager written in common lisp (clisp version)
aur/stumpwm-git 20070916-1
A tiling window manager written entirely in common lisp.
/usr/bin/yaourt: line 1281: cleanoutput: command not found
/usr/bin/yaourt: line 1590: error: command not found.. and so on. I tried to reinstall yaourt but the problem remains. What to do? ![]()
PIMPD | Remote Mplayer Client/Daemon | rmshit | setfont for X | Git | Site
Offline
Noone? ![]()
PIMPD | Remote Mplayer Client/Daemon | rmshit | setfont for X | Git | Site
Offline
Reinstall yaourt?
Offline
I tried to reinstall yaourt but the problem remains. What to do?
PIMPD | Remote Mplayer Client/Daemon | rmshit | setfont for X | Git | Site
Offline
It is a shellscript, open some editor with it, and look at which commands it does not seem/want/believe/like to find? I mean, the errormessages do tell the linenumbers? Did you deinstall something important?
Offline
I get the same thing. I even tried downloading yaourt from AUR manually and installing it that way. I still get the same thing. And I know I didn't install anything. Its a fresh install and I haven't installed everything I needed to.
Offline
Try deleting or renaming your .bashrc (if you use zsh your .zshrc, I know when I first installed zsh I did something with my .zshrc that made it do that, I just found a different one and it works fine now).
Offline
Thanks, found the problem. It seems that my path variable was messing it up. ![]()
EDIT: Its actually a problem with running yaourt as a normal user, not root. Weird. Oh well, it works now.
Last edited by smartboyathome (2008-11-20 05:08:42)
Offline
Try deleting or renaming your .bashrc (if you use zsh your .zshrc, I know when I first installed zsh I did something with my .zshrc that made it do that, I just found a different one and it works fine now).
Thx!
PIMPD | Remote Mplayer Client/Daemon | rmshit | setfont for X | Git | Site
Offline
I think this is a yaourt bug, it keeps track of what modules it has loaded through a variable, but if you have, for example, the "color" environment variable set in you .bashrc or .zshrc, it will think it has already loaded the color module and won't load it, but since it really hasn't, it gives an error.
I fixed it by putting
export color=at the end of my .zshrc, I don't know what variables yaourt uses for the other modules.
Offline
I think this is a yaourt bug, it keeps track of what modules it has loaded through a variable, but if you have, for example, the "color" environment variable set in you .bashrc or .zshrc, it will think it has already loaded the color module and won't load it, but since it really hasn't, it gives an error.
I fixed it by putting
export color=at the end of my .zshrc, I don't know what variables yaourt uses for the other modules.
Thanks a lot. Finally the output is readable. \o/
PIMPD | Remote Mplayer Client/Daemon | rmshit | setfont for X | Git | Site
Offline
I think this is a yaourt bug, it keeps track of what modules it has loaded through a variable, but if you have, for example, the "color" environment variable set in you .bashrc or .zshrc, it will think it has already loaded the color module and won't load it, but since it really hasn't, it gives an error.
I fixed it by putting
export color=at the end of my .zshrc, I don't know what variables yaourt uses for the other modules.
Thank you from me as well! It works great now!
Offline
This fixed the problem for me too.
Cheers!
Offline
I still get '/usr/lib/yaourt/basicfunctions.sh: line 280: initcolor: command not found' right after I have selected what packages to install from the search.
My .zshrc is pretty long, so god knows what is messing it up in there. the 'export color=' is there at the end though.
It would be nice if anyone has .zshrc that is working that they want to share.
######################################################################
# jdong's zshrc file v0.2.1 , based on:
# mako's zshrc file, v0.1
# #
######################################################################
# next lets set some enviromental/shell pref stuff up
# setopt NOHUP
#setopt NOTIFY
#setopt NO_FLOW_CONTROL
setopt INC_APPEND_HISTORY SHARE_HISTORY
setopt APPEND_HISTORY
# setopt AUTO_LIST # these two should be turned off
# setopt AUTO_REMOVE_SLASH
# setopt AUTO_RESUME # tries to resume command of same name
unsetopt BG_NICE # do NOT nice bg commands
setopt CORRECT # command CORRECTION
setopt EXTENDED_HISTORY # puts timestamps in the history
# setopt HASH_CMDS # turns on hashing
#
setopt MENUCOMPLETE
setopt ALL_EXPORT
# Set/unset shell options
setopt notify globdots correct pushdtohome cdablevars autolist
setopt correctall autocd recexact longlistjobs
setopt autoresume histignoredups pushdsilent
setopt autopushd pushdminus extendedglob rcquotes mailwarning
unsetopt bgnice autoparamslash
unsetopt CORRECT
unsetopt correctall
# Autoload zsh modules when they are referenced
zmodload -a zsh/stat stat
zmodload -a zsh/zpty zpty
zmodload -a zsh/zprof zprof
zmodload -ap zsh/mapfile mapfile
MACHINE_TYPE='uname'
HISTFILE=$HOME/.zhistory
HISTSIZE=10000
SAVEHIST=10000
HOSTNAME="`hostname`"
PAGER='most'
EDITOR='vim'
# autoload colors zsh/terminfo
#if [[ "$terminfo[colors]" -ge 8 ]]; then
# colors
#fi
#for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
# eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
# eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
# (( count = $count + 1 ))
#done
#PR_NO_COLOR="%{$terminfo[sgr0]%}"
#PS1="[$PR_BLUE%n$PR_WHITE@$PR_GREEN%U%m%u$PR_NO_COLOR:$PR_RED%2c$PR_NO_COLOR]%(!.#.$) "
#RPS1="$PR_LIGHT_YELLOW(%D{%m-%d %H:%M})$PR_NO_COLOR"
LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:ex=01;32:mi=5;31;46:or=5;31;46:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.deb=01;31:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.ppm=01;35:'
LS_OPTIONS="-F -B --color=auto"
PS1='\033[30;47m\u:\w>\033[0m '
prompt='%U%n%u:%B%~%b $ '
PROMPT2='%_> '
RPS1='< %U%m%u >'
unsetopt ALL_EXPORT
# # --------------------------------------------------------------------
# # aliases
# # --------------------------------------------------------------------
alias update='sudo pacman -Syu'
alias ll='ls -al'
alias ls='ls --color=auto '
alias lsd='ls -d */'
alias emacs='emacs -nw'
alias bochsd='bochsd -f ~/.bochsdrc'
alias grep='grep --color=tty'
export PATH=".:~/bin:/local/bin:$PATH"
export EDITOR=vim
autoload -U compinit
compinit -u
#bindkey "^?" backward-delete-char
#bindkey '^[OH' beginning-of-line
#bindkey '^[OF' end-of-line
#bindkey '^[[5~' up-line-or-history
#bindkey '^[[6~' down-line-or-history
#bindkey "^r" history-incremental-search-backward
#bindkey ' ' magic-space # also do history expansion on space
#bindkey '^I' complete-word # complete on tab, leave expansion to _expand
bindkey -e
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s'
zstyle ':completion:*' menu select=1 _complete _ignored _approximate
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
# Completion Styles
# list of completers to use
zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
# allow one error for every three characters typed in approximate completer
zstyle -e ':completion:*:approximate:*' max-errors \
'reply=( $(( ($#PREFIX+$#SUFFIX)/2 )) numeric )'
# insert all expansions for expand completer
zstyle ':completion:*:expand:*' tag-order all-expansions
# formatting and messages
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '%B%d%b'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''
# match uppercase from lowercase
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# offer indexes before parameters in subscripts
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
# command for process lists, the local web server details and host completion
# on processes completion complete all user processes
# zstyle ':completion:*:processes' command 'ps -au$USER'
## add colors to processes for kill completion
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
#zstyle ':completion:*:processes' command 'ps ax -o pid,s,nice,stime,args | sed "/ps/d"'
zstyle ':completion:*:*:kill:*:processes' command 'ps --forest -A -o pid,user,cmd'
zstyle ':completion:*:processes-names' command 'ps axho command'
#zstyle ':completion:*:urls' local 'www' '/var/www/htdocs' 'public_html'
#
#NEW completion:
# 1. All /etc/hosts hostnames are in autocomplete
# 2. If you have a comment in /etc/hosts like #%foobar.domain,
# then foobar.domain will show up in autocomplete!
zstyle ':completion:*' hosts $(awk '/^[^#]/ {print $2 $3" "$4" "$5}' /etc/hosts | grep -v ip6- && grep "^#%" /etc/hosts | awk -F% '{print $2}')
# Filename suffixes to ignore during completion (except after rm command)
zstyle ':completion:*:*:(^rm):*:*files' ignored-patterns '*?.o' '*?.c~' \
'*?.old' '*?.pro' '*?.class'
# the same for old style completion
#fignore=(.o .c~ .old .pro)
# ignore completion functions (until the _ignored completer)
zstyle ':completion:*:functions' ignored-patterns '_*'
zstyle ':completion:*:*:*:users' ignored-patterns \
adm apache bin daemon games gdm halt ident junkbust lp mail mailnull \
named news nfsnobody nobody nscd ntp operator pcap postgres radvd \
rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs avahi-autoipd\
avahi backup messagebus beagleindex debian-tor dhcp dnsmasq fetchmail\
firebird gnats haldaemon hplip irc klog list man cupsys postfix\
proxy syslog www-data mldonkey sys snort
# SSH Completion
zstyle ':completion:*:scp:*' tag-order \
files users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:scp:*' group-order \
files all-files users hosts-domain hosts-host hosts-ipaddr
zstyle ':completion:*:ssh:*' tag-order \
users 'hosts:-host hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
zstyle ':completion:*:ssh:*' group-order \
hosts-domain hosts-host users hosts-ipaddr
zstyle '*' single-ignored show
export color=Offline
I just ran into this problem shortly after switching to zsh from bash. I copied somebody else's .zshrc to get me started and the offending lines in my case were:
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
(( count = $count + 1 ))
doneWhich presumably screws up yaourt by using a variable called color. Since it's just a dummy variable, I replaced it with colour (I'm canadian after all
) and all was well.
GGLucas's idea of using
export color=works, but only if you are building one package at a time with yaourt. If you have to build dependencies I found the problem returned after the first build.
Offline
unset colorat the end of your .bashrc/.zshrc is your friend. :-)
Last edited by trunneml (2010-10-27 18:46:08)
Offline