[SOLVED] virtualbox-modules: dkms: command not found

$ makepkg -s
==> Making package: virtualbox-modules 4.2.6-4 (Tue Jan 29 15:42:01 EET 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Starting build()...
-> Host modules
/home/yuri/builds/virtualbox-modules/PKGBUILD: line 26: dkms: command not found
==> ERROR: A failure occurred in build().
Aborting...
$ which dkms
which: no dkms in (~/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/vendor_perl:/usr/bin/core_perl)
$ su - -c 'which dkms'
/usr/sbin/dkms
Since makepkg uses fakeroot (and should never be run as root), ...
https://wiki.archlinux.org/index.php/AUR
What is the proper way to make it work? Thank you.
Last edited by x-yuri (2013-01-29 19:33:44)

It's not my PKGBUILD. It's PKGBUILD, downloaded by abs (community/virtualbox-modules):
# $Id: PKGBUILD 82593 2013-01-21 11:10:44Z tpowa $
# Maintainer: Ionut Biru <[email protected]>
# Maintainer: Sébastien Luttringer <[email protected]>
pkgbase=virtualbox-modules
pkgname=('virtualbox-host-modules' 'virtualbox-guest-modules')
pkgver=4.2.6
pkgrel=4
arch=('i686' 'x86_64')
url='http://virtualbox.org'
license=('GPL')
makedepends=('linux-headers'
"virtualbox-host-dkms>=$pkgver"
"virtualbox-guest-dkms>=$pkgver"
'expac'
'bc')
build() {
_kernver=$(expac -Q '%v' linux-headers)-ARCH
# dkms need modification to be run as user
cp -r /var/lib/dkms .
echo "dkms_tree='$srcdir/dkms'" > dkms.conf
# build host modules
msg2 'Host modules'
dkms --dkmsframework dkms.conf build "vboxhost/$pkgver" -k "$_kernver"
# build guest modules
msg2 'Guest modules'
dkms --dkmsframework dkms.conf build "vboxguest/$pkgver" -k "$_kernver"
package_virtualbox-host-modules(){
_kernver=$(expac -Q '%v' linux-headers)-ARCH
_extraver=extramodules-${_kernver%.*}-ARCH
pkgdesc='Host kernel modules for VirtualBox'
depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
replaces=('virtualbox-modules')
conflicts=('virtualbox-modules')
install=virtualbox-host-modules.install
install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
cd "dkms/vboxhost/$pkgver/$_kernver/$CARCH/module"
install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-host-modules.install"
package_virtualbox-guest-modules(){
_kernver=$(expac -Q '%v' linux-headers)-ARCH
_extraver=extramodules-${_kernver%.*}-ARCH
pkgdesc='Guest kernel modules for VirtualBox'
license=('GPL')
depends=("linux>=${_kernver%.*}" "linux<$(echo "${_kernver%.*}+0.1"|bc)")
replaces=('virtualbox-archlinux-modules')
conflicts=('virtualbox-archlinux-modules')
install=virtualbox-guest-modules.install
install -dm755 "$pkgdir/usr/lib/modules/$_extraver"
cd "dkms/vboxguest/$pkgver/$_kernver/$CARCH/module"
install -m644 * "$pkgdir/usr/lib/modules/$_extraver"
find "$pkgdir" -name '*.ko' -exec gzip -9 {} +
sed -ie "s/EXTRAMODULES='.*'/EXTRAMODULES='$_extraver'/" "$startdir/virtualbox-guest-modules.install"
# vim:set ts=2 sw=2 et:
Could it possibly be that this time makepkg must be run as root?

Similar Messages

  • Virtualbox problem: modprobed_db: command not found[SOLVED]

    I'm running arch in virtualbox.
    and when I run # virtualbox, error:
    "VirtualBox: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib/virtualbox/VirtualBox.so",) failed: libQtCore.so.4: cannot open shared object file: No such file or directory"
    wiki write: "Note: You may need to update the kernel modules db in order to avoid 'no such file or directory' error when loading vboxdrv. Run: modprobed_db."
    but result:
    "# modprobed_db
    bash: modprobed_db: command not found
    Last edited by lqs (2012-07-27 09:00:44)

    modprobed_db can be found in the AUR. It collects all modules which have ever been loaded on your system. It's very practical if you compile a custom kernel and only want to include the modules you need.
    I think this doesn't solve your problem. Your system is missing the file /usr/lib/libQtCore.so.4 Do you have [testing] enabled? If so, do you also have [community-testing] enabled? I'll need more input to be able to help properly.

  • [SOLVED] node package manager: command not found

    I installed nodejs, and it was working fine. I updated a couple of days ago, and now npm install and npm lead to
    zsh: command not found
    Node has some naming conflicts, from what I have read. I am confused as to how the namespace for packages works, but hopefully someone can point me in the right direction with this because, while confusing, I don't think it is causing the problem. I usually execute the application as node, but it is in the repositories as nodejs. I found node in /usr/bin. I can execute npm there, but it advises that npm should be run in a normal shell with a different directory, not in /usr/bin. There was no nodejs or npm.
    I removed nodejs using
    pacman -Rdd nodejs
    since adom has dependencies, but when I tried to reinstall using
    pacman -S nodejs
    , it said it was up to date and reinstalled. I updated my system and rebooted. I still can execute node but not the npm-it still returns
    zsh: command not found: npm
    I have no idea why the node package manager disappearred. I also have no idea why it would not have reinstalled with nodejs from the repo.
    ➜ ~ sudo pacman -Rdd node
    [sudo] password for user:
    error: target not found: node
    ➜ ~ nodejs npm
    zsh: command not found: nodejs
    ➜ ~ node npm
    module.js:338
    throw err;
    ^
    Error: Cannot find module '/home/user/npm'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
    Last edited by 01010101 (2015-06-17 17:40:33)

    ➜ ~ pkgfile npm
    zsh: command not found: pkgfile
    ➜ ~ sudo pacman -S pkgfile
    resolving dependencies...
    looking for inter-conflicts...
    Packages (1): pkgfile-15-1
    Total Download Size: 0.02 MiB
    Total Installed Size: 0.05 MiB
    :: Proceed with installation? [Y/n] y
    :: Retrieving packages ...
    pkgfile-15-1-x86_64 21.6 KiB 323K/s 00:00 [######################] 100%
    (1/1) checking keys in keyring [######################] 100%
    (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 pkgfile [######################] 100%
    ==> Run 'pkgfile --update' to initialize the database
    ➜ ~ pkgfile npm
    error: No repo files found. Please run `pkgfile --update'.
    ➜ ~ pkgfile --update
    error: unable to write to /var/cache/pkgfile: Permission denied
    ➜ ~ sudo pkgfile --update
    :: Updating 4 repos...
    download complete: multilib [ 224.2 KiB 372K/s 3 remaining]
    download complete: core [ 608.8 KiB 536K/s 2 remaining]
    download complete: extra [ 6.9 MiB 2038K/s 1 remaining]
    download complete: community [ 10.9 MiB 2.55M/s 0 remaining]
    :: download complete in 4.26s < 18.6 MiB 4.37M/s 4 files >
    :: waiting for 1 process to finish repacking repos...
    ➜ ~ pkgfile npm
    community/npm
    ➜ ~ cd development/anj
    ➜ anj ls
    app.js bin bower.json package.json public routes views
    ➜ anj npm install
    zsh: command not found: npm

  • [SOLVED] bash: $'\302\240grep': command not found [frequent CLI error]

    For the past several days I've been getting the following error frequently on the command line:
    bash: $'\302\240grep': command not found
    I think I'm only getting this error in response to commands that are piped to grep, such as the following:
    $ ps -ef | grep xyz
    or
    $ locate | grep abc
    However, I don't think I've gotten the error if I type the same commands as above, but without the space between '|' and 'grep'.  And, although the error is frequent, it doesn't happen every time; it is seemingly random.
    Anybody else experiencing this?  Any idea what might be causing it? 
    I'm using rxvt-unicode as my terminal.
    Jay
    Last edited by jt512 (2011-04-06 04:38:56)

    anonymous_user wrote:Post your ~/.bashrc
    # Check for an interactive session
    [ -z "$PS1" ] && return
    function timer () {
    at -f /home/jay/.timercmd now + $1 min
    function cpufs () {
    sudo cpufreq-set -c 0 $1 $2
    sudo cpufreq-set -c 1 $1 $2
    alias ls='ls --color'
    alias kc='~/scripts/kc.py'
    alias diff='colordiff'
    alias s2ram='sudo s2ram -f'
    alias grep='grep --color=always'
    alias Terminal='Terminal -T Terminal'
    alias emacsnw='emacs -nw -f menu-bar-mode'
    alias rm='rm -I'
    alias lpstd='lp -o "StpQuality=Standard"'
    alias paps='paps --paper letter --font="Courier 10"'
    alias mp='mplayer'
    alias mps='mplayer -softvol-max 600'
    alias mysql='$HOME/scripts/mysql'
    if [ $TERM = 'linux' -a $SHELL = '/bin/bash' ] ; then
    PS1='\033[?17;0;40c[\u@\h \W]\$ '
    else PS1='[ \[\e[0;32m\]\u@\h\[\e[m\] \[\e[0;31m\]\W\[\e[m\] \[\e[m\]]\[\e[0;32m\] \$ \[\e[m\]'
    fi
    eval `dircolors -b`
    # Allow tab completion for sudo'ed commands
    complete -cf sudo
    export PATH=$PATH:~/.local/usr/bin
    export EDITOR="vim"
    export BROWSER='conkeror:uzbl-browser:firefox'
    export GREP_COLOR="1;33"
    export LESS_TERMCAP_mb=$'\E[01;31m'
    export LESS_TERMCAP_md=$'\E[01;31m'
    export LESS_TERMCAP_me=$'\E[0m'
    export LESS_TERMCAP_se=$'\E[0m'
    export LESS_TERMCAP_so=$'\E[01;44;33m'
    export LESS_TERMCAP_ue=$'\E[0m'
    export LESS_TERMCAP_us=$'\E[01;32m'
    export SWEAVE_STYLEPATH_DEFAULT="TRUE"

  • [SOLVED] /bin/bash: endif: command not found ERROR while saving in vim

    My .vimrc file
    set expandtab
    set number
    syntax on
    set autoindent shiftwidth=4
    set smartindent
    set tabstop=4
    set smartcase
    colorscheme elflord
    set incsearch
    set hlsearch
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent !chmod +x <afile> | endif | endif
    " Tell vim to remember certain things when we exit
    " '10 : marks will be remembered for up to 10 previously edited files
    " "100 : will save up to 100 lines for each register
    " :20 : up to 20 lines of command-line history will be remembered
    " % : saves and restores the buffer list
    " n... : where to save the viminfo files
    set viminfo='10,\"100,:20,%,n~/.viminfo
    function! ResCur()
    if line("'\"") <= line("$")
    normal! g`"
    return 1
    endif
    endfunction
    augroup resCur
    autocmd!
    autocmd BufWinEnter * call ResCur()
    augroup END
    On some files, I get this error http://i.imgur.com/lKFvm.png at the bottom of vim . Please note that I get the error not on all files. Its driving me crazy!
    Last edited by shadyabhi (2011-09-11 02:41:52)

    Replace this:
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent !chmod +x <afile> | endif | endif
    with this:
    au BufWritePost * if getline(1) =~ "^#!" | if getline(1) =~ "/bin/" | silent execute "!chmod a+x <afile>" | endif | endif
    If the above doesn't work for you (though it should in Vim > 7), try a different way of doing the same thing:
    function ModeChange()
    if getline(1) =~ "^#!"
    if getline(1) =~ "/bin/"
    silent !chmod a+x <afile>
    endif
    endif
    endfunction
    au BufWritePost * call ModeChange()
    Last edited by bohoomil (2011-09-11 02:29:58)

  • [solved] qdbus: command not found = Netbeans can't connect to KWallet

    I had a problem with Netbeans using its fallback keyring instead of KWallet.
    My research showed that this happened because Netbeans wasn't able to use qdbus
    exception thrown while invoking the command "[qdbus, org.kde.kwalletd, /modules/kwalletd, org.kde.KWallet.isEnabled]"
    I tried to run qdbus with
    qdbus org.kde.kwin /KWin supportInformation
    Same outcome; qdbus: command not found.
    Searching for qdbus, I found it in /usr/lib/qt4/bin which obviously isn't part of $PATH.
    I "solved" the issue by creating a softlink in /usr/bin/
    cd /usr/bin && sudo ln -s /usr/lib/qt4/bin/qdbus qdbus
    It works, both the KWin command as well as Netbean's KWallet integration, but is that how it should be done?
    Haven't I rather a package missing, like qt5 or something?
    Or is my standard "throw softlinks at the problem"-procedure alright here?
    Last edited by Caldazar (2014-01-25 20:55:02)

    Thanks! That's better although it doesn't work out of the box either.
    qtchooser apparently sends the applications to '/usr/lib/qt/bin/qdbus' which doesn't exist, Arch uses /usr/lib/qt4' instead
    qdbus: could not exec '/usr/lib/qt/bin/qdbus': No such file or directory
    So I had to link those too.
    sudo ln -s /usr/lib/qt4 /usr/lib/qt
    I don't know whether that's a problem with qtchooser or rather with some of my environment variables being wrong.
    But anyways, linking the directories 'qt' to 'qt4' makes a whole lot more sense to me than micromanaging the paths of single binaries or libraries.
    P.S. @ChemBro
    Yes, using qdbus-qt4 seems to work with commands I have control over but telling applications like Netbeans to use that is a different beast, at least from a user-perspective.
    Maybe the packagers can do something about that, but I don't know.
    Last edited by Caldazar (2014-01-21 15:03:39)

  • Xorg: module "glx" and commands not found???

    Hello, all.
    I'm fairly new to Linux but I'm not a total noob. I have FC6 on my laptop and am currently trying to get a GUI working for Arch on my desktop.
    I pacman-ed hwd, and ran it to create a Xorg.conf, and upon running it I get the following errors:
    (EE) Failed to load module "glx" (module does not exist, 0)
    /etc/X11/xinit/xinitrc: line 28: twm: command not found
    /etc/X11/xinit/xinitrc: line 29: xclock: command not found
    /etc/X11/xinit/xinitrc: line 30: xterm: command not found
    /etc/X11/xinit/xinitrc: line 31: xterm: command not found
    /etc/X11/xinit/xinitrc: line 32: exec: xterm: not found
    waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/misc:unscaled" refcount is 2, should be 1; fixing.
    The last comment it makes I know isn't critical, so I'm not worried about that. But I need help with the "glx" part and the commands not found.
    Thanks in advance.

    Did you installed libgl-dri? If not install it, and it will fix glx problems.
    For the command not found, you need to create a ~/.xinitrc file. Before, you'll need to install the WM/DE that you want to use.
    There is a sample file in the wiki: http://wiki.archlinux.org/index.php/Sta … ents_HOWTO

  • [solved] yaourt messed up pacman - "pacman: command not found"

    Hi,
    i got some "xxxxxx not found on AUR" messages after doing a "yaourt -Syu --aur" so I began to remove them with "yaourt -Rs xxxxxxx".
    When there was only one left "aqpm2" this is what happened:
    [studio@myhost ~]$ yaourt -Rs aqpm2
    verificando dependências...
    Remover (2): aqpm2-20100615-2  qjson-0.7.1-2
    Tamanho total dos pacotes a serem removidos:   2,93 MB
    Deseja remover estes pacotes? [S/n] s
    (1/2) removendo aqpm2                                                                                                     [##########################################################################] 100%
    (2/2) removendo qjson                                                                                                     [##########################################################################] 100%
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    now pacman is broken:
    [studio@myhost ~]$ pacman
    bash: pacman: comando não encontrado
    [studio@myhost ~]$ yaourt -Syu --aur
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    You are not allowed to launch /usr/bin/pacman with sudo
    Please enter root password
    Senha:
    bash: /usr/bin/pacman: Arquivo ou diretório não encontrado
    ==> WARNING: problem in pkgbuild.sh library
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    ==> Searching for new version on AUR
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    Unable to open file: /etc/pacman.conf
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    [studio@myhost ~]$ sudo pacman -Syu
    sudo: pacman: command not found
    please help
    Last edited by capoeira (2010-10-16 14:33:39)

    capoeira wrote:
    can I use pacman-static from this repro?
    I'm afraid to break system even more
    http://repo.archmobile.org/x86_64/archmobile/
    OK, that gave me a segfault, so
    I downloaded the package and copied the folders to root.
    no pacman works but gaves me this errors afterwards:
    pacman-3.4.1-1: description file is missing
    pacman-3.4.1-1: dependency file is missing
    pacman-3.4.1-1: file list is missing
    how do I solve this?
    BTW: should I make a bug-report??
    EDIT: any package I try to instal I get this error:
    erro: não foi possível abrir o arquivo /var/lib/pacman/local/pacman-3.4.1-1/depends: Arquivo ou diretório não encontrado
    (it's in portuguese but i think its understandable)
    Last edited by capoeira (2010-10-15 22:08:36)

  • [SOLVED] startxfce4 command not found?

    Greetings,
    today I finally got some courage and decided to give archlinux a try on my laptop since I grew tired of ubuntu. Instalation was going fine until I decided to install xfce4. Like the wiki says, I took care of installing all of the necessary X packages, and even tried it successfully with the basic twm  interface thing. However, after installing the xfce4 package through pacman, when I try to run execute startxfce4 it just gives me a "command not found" error. I've went to /usr/bin and in fact startxfce4 is not there. Any ideas what might be wrong?
    EDIT: Reason for all the problems was that I forgot to actually update the system running the "pacman -Syu". I updated on the second install and when I executed xfce4 all the conflicts dissapeared.
    Last edited by apokaliptik (2012-01-09 21:34:02)

    https://wiki.archlinux.org/index.php/Xfce4#Installation
    wiki wrote:Pacman will ask you to select the packages to install, but you probably want to get them all by simply pressing Enter.
    [karol@black ~]$ pacman -S xfce4
    :: There are 16 members in group xfce4:
    :: Repository extra
    1) exo 2) garcon 3) gtk-xfce-engine 4) terminal 5) thunar 6) tumbler
    7) xfce-utils 8) xfce4-appfinder 9) xfce4-mixer 10) xfce4-panel
    11) xfce4-session 12) xfce4-settings 13) xfconf 14) xfdesktop 15) xfwm4
    16) xfwm4-themes
    Enter a selection (default=all):
    xfce-utils is the 7th member of xfce4 group; it should be downloaded and installed. Don't know why it wasn't installed in your case.
    Please remember to mark the thread as solved as per our forum rules https://bbs.archlinux.org/viewtopic.php?id=130309 :-)

  • [SOLVED]mkinitcpio command not found!??

    Hello all,
    I receive the following when trying to rebuild the stock kernel:
    [taylor-unix@Legion Desktop]$ sudo mkinitcpio -p kernel26
    sudo: mkinitcpio: command not found
    [taylor-unix@Legion Desktop]$
    The same error occurs even after the re-installation of 'mkinitcpio'.
    I've had the same problem with 'hwdetect', regardless of whether I've reinstalled it.
    I seem to have commands that do not work on this system, like 'shutdown' for example.. 'shutdown: command not found'. Perhaps I've missed installing a crucial package?
    I need help..
    My sincerest thanks in advance.
    Last edited by edward.taylor89 (2010-11-10 17:39:46)

    Here as follows:
    mkinitcpio /etc/
    mkinitcpio /etc/mkinitcpio.conf
    mkinitcpio /etc/mkinitcpio.d/
    mkinitcpio /etc/mkinitcpio.d/example.preset
    mkinitcpio /lib/
    mkinitcpio /lib/initcpio/
    mkinitcpio /lib/initcpio/functions
    mkinitcpio /lib/initcpio/hooks/
    mkinitcpio /lib/initcpio/hooks/btrfs
    mkinitcpio /lib/initcpio/hooks/consolefont
    mkinitcpio /lib/initcpio/hooks/dmesg
    mkinitcpio /lib/initcpio/hooks/keymap
    mkinitcpio /lib/initcpio/hooks/memdisk
    mkinitcpio /lib/initcpio/hooks/net
    mkinitcpio /lib/initcpio/hooks/resume
    mkinitcpio /lib/initcpio/hooks/sleep
    mkinitcpio /lib/initcpio/hooks/udev
    mkinitcpio /lib/initcpio/init
    mkinitcpio /lib/initcpio/init_functions
    mkinitcpio /lib/initcpio/install/
    mkinitcpio /lib/initcpio/install/autodetect
    mkinitcpio /lib/initcpio/install/base
    mkinitcpio /lib/initcpio/install/btrfs
    mkinitcpio /lib/initcpio/install/consolefont
    mkinitcpio /lib/initcpio/install/dmesg
    mkinitcpio /lib/initcpio/install/dsdt
    mkinitcpio /lib/initcpio/install/filesystems
    mkinitcpio /lib/initcpio/install/fw
    mkinitcpio /lib/initcpio/install/ide
    mkinitcpio /lib/initcpio/install/keymap
    mkinitcpio /lib/initcpio/install/memdisk
    mkinitcpio /lib/initcpio/install/net
    mkinitcpio /lib/initcpio/install/pata
    mkinitcpio /lib/initcpio/install/pcmcia
    mkinitcpio /lib/initcpio/install/resume
    mkinitcpio /lib/initcpio/install/sata
    mkinitcpio /lib/initcpio/install/scsi
    mkinitcpio /lib/initcpio/install/sleep
    mkinitcpio /lib/initcpio/install/udev
    mkinitcpio /lib/initcpio/install/usb
    mkinitcpio /lib/initcpio/install/usbinput
    mkinitcpio /lib/initcpio/udev/
    mkinitcpio /lib/initcpio/udev/01-memdisk.rules
    mkinitcpio /lib/initcpio/udev/load-modules.sh
    mkinitcpio /sbin/
    mkinitcpio /sbin/mkinitcpio
    mkinitcpio /usr/
    mkinitcpio /usr/share/
    mkinitcpio /usr/share/man/
    mkinitcpio /usr/share/man/man5/
    mkinitcpio /usr/share/man/man5/mkinitcpio.5.gz

  • [SOLVED] lirc: command not found

    Hello everyone,
    I have an old MCE remote that i'd like to make use of. I've been trying to follow the archwiki, everything is good I installed LIRC and LIRC-utils, loaded lirc_mceusb, except for the part where I'm supposed to execute lirc for some reason I get an invalid command error even thought its installed. Am I missing something here?
    archuser@archws ~ % lirc                                                 <12:32>
    zsh: correct 'lirc' to 'lircd' [nyae]? n
    zsh: command not found: lirc
    Last edited by aluser (2011-02-26 04:22:25)

    The mceusb module ships with the kernel now, so the lirc package is no longer necessary.  Simple initial setup:
    Install lirc-utils
    Copy /usr/share/lirc/remotes/mceusb/lircd.conf.mceusb to /etc/lirc/lircd.conf
    Edit /etc/rc.conf and add mceusb to the MODULES array and lircd to the DAEMONS array
    Edit /etc/rc.local and add
    /usr/bin/ir-keytable -p lirc
    Create ~/.lircrc and edit as required
    Reboot
    If double keystrokes are the problem now and you have a dib0700-based dvb card installed then create /etc/modprobe.d/dvb-usb.conf containing
    options dvb_usb disable_rc_polling=1
    I've got a model 1039 with the colour buttons and it works fine:
    $ irw
    000000037ff07be8 00 Record mceusb
    000000037ff07be8 01 Record mceusb
    000000037ff07be9 00 Play mceusb
    000000037ff07be9 01 Play mceusb
    000000037ff07beb 00 Forward mceusb
    000000037ff07beb 01 Forward mceusb
    000000037ff07beb 02 Forward mceusb
    000000037ff07bdd 00 OK mceusb
    000000037ff07bdd 01 OK mceusb
    000000037ff07bdd 02 OK mceusb
    000000037ff07be0 00 Down mceusb
    000000037ff07be0 01 Down mceusb
    Edit: Missed a step.
    Edit: Missed a hardware-specific step.
    Last edited by azleifel (2011-02-15 21:02:56)

  • SOLVED /usr/bin/makepkg: line 552: build: command not found

    I'm trying to build a custom kernel, but am receiving this error:
    /usr/bin/makepkg: line 552: build: command not found
    I've searched all over for a fix, but haven't had any luck, it doesn't seem to be a common error, or it's so incredibly easy to fix that noone has bothered 
    Thanks for any help.
    /crobot

    Thanks for your response, it has failed on two builds, i'll post both.
    Here's the first:
    # $Id: PKGBUILD,v 1.26 2004/10/06 18:21:54 judd Exp $
    # Maintainer: judd <[email protected]>
    pkgname=kernel26
    pkgver=2.6.8.1
    pkgrel=3
    pkgdesc="The Linux Kernel and modules (IDE support)"
    url="http://www.kernel.org"
    backup=('boot/kconfig26')
    depends=('module-init-tools')
    install=kernel26.install
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2
    config cdburning.patch logo_linux_clut224.ppm
    bio_uncopy_user-mem-leak.patch bio_uncopy_user-mem-leak-fix.patch
    http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/26-stable-release/acpi-20040715-2.6.8.diff.bz2)
    md5sums=('9517ca999e822b898fbdc7e72796b1aa' '20ad5bea85099dfcced9a6b91064b04e'
    '66b87662e6dd54b6324f874739fa1b99' '5a62bcc7e96601052c7405459b483826'
    'd2329bc663089cd99b8dbfd25b6a7ebc' '15a9165ae02c4a3a3875fb7924a68cbf'
    'e00d08709581f215b15e321d162f782c')
    build() {
    cd $startdir/src/linux-$pkgver
    patch -Np1 -i ../bio_uncopy_user-mem-leak.patch || return 1
    patch -Np1 -i ../bio_uncopy_user-mem-leak-fix.patch || return 1
    patch -Np1 -i ../cdburning.patch || return 1
    #patch -Np1 -i ../acpi-20040715-2.6.8.diff || return 1
    # Arch logo!
    cp ../logo_linux_clut224.ppm drivers/video/logo/
    # get rid of the 'i' in i686
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    yes "" | make config
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    cp System.map $startdir/pkg/boot/System.map26
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$pkgver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$pkgver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/include
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$pkgver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$pkgver/
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$pkgver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$pkgver/$i
    done
    cd $startdir/pkg/usr/src/linux-$pkgver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$pkgver
    cd $startdir/pkg/lib/modules/$pkgver &&
    (rm -f source build; ln -sf /usr/src/linux-$pkgver build)
    Here's the second:
    ###### Give the kernel a unique name (for multiple builds - can be empty)
    _kerrev=crobot
    ###### Choose generic name, version, and release. updated later for $_kerrev
    pkgname=kernel26
    pkgver=2.6.8.1
    pkgrel=1
    pkgdesc="Custom Linux Kernel and modules"
    url="http://www.kernel.org"
    depends=('module-init-tools')
    ###### Add a default config file and any patches to be applied to source array
    source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2)
    ###### Add md5 checksums here:
    #md5sum=()
    getvar() {
    old=$(cat Makefile | grep "^$1")
    echo $(echo ${old/"$1 ="/} | sed -e "s/[ ]*(.*)[ ]*/1/g")
    return 0
    build() {
    cd $startdir/src/linux-$pkgver
    ###### apply patches here
    # patch -p1 < ../patch1 #model
    #get rid of i in i686 in default config
    carch=`echo $CARCH | sed 's|i||'`
    cat ../config | sed "s|#CARCH#|$carch|g" >./.config
    ###### Choose one of the following configuration types
    ###### Use first option for config in source array
    #yes "" | make config
    #make oldconfig || return 1
    make menuconfig
    #make xconfig
    #make gconfig
    ##### No user changes below here
    # save the configuration with today's date
    cp ./.config ../../NEWCONFIG-$(date +%b%d)
    # set EXTRAVERSION to create unique /lib/modules/ subdirectories
    _ker_extraversion=$(getvar "EXTRAVERSION")
    # update EXTRAVERSION in the Makefile by adding our _kerrev
    _oldline=$(cat Makefile | grep "^EXTRAVERSION")
    if [ $_kerrev != "" ]; then
    _ker_extraversion="$_ker_extraversion-$_kerrev"
    cat Makefile | sed "s|$_oldline|EXTRAVERSION = $_ker_extraversion|" > tmpMake
    mv tmpMake Makefile
    fi
    _kerrev=$_ker_extraversion
    kerver=$(getvar "VERSION").$(getvar "PATCHLEVEL").$(getvar "SUBLEVEL")
    # update the package information from the kernel Makefile
    # (just in case the Makefile changed during a patch)
    pkgver=$kerver$(echo $_kerrev | sed -e 's/-/./g')
    pkgdesc="Custom Linux Kernel and modules version: $kerver revision: $_kerrev /
    package ver: $pkgver build: $pkgrel"
    # changing the package name
    # removing patches versions from the revision string
    _t=$(echo $_kerrev | sed -e "s/^..[0-9]*//g")
    # _t=$(echo $_t | sed -e "s/^-rc[0-9]?*//g")
    # _suf contains the suffix identifying the kernel (it has the versions removed from
    it)
    _suf=$(echo $_t | sed -e "s/[0-9]*-/-/g")
    pkgname=kernel26$_suf
    echo "Package name: $pkgname"
    echo "Package ver: $pkgver"
    echo "Package desc: $pkgdesc"
    sleep 5
    make clean bzImage modules || return 1
    mkdir -p $startdir/pkg/{lib/modules,boot}
    make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
    # create unique names in /boot/
    cp System.map $startdir/pkg/boot/System.map26$_suf
    cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26$_suf
    install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kerver/Makefile
    install -D -m644 .config $startdir/pkg/usr/src/linux-$kerver/.config
    install -D -m644 .config $startdir/pkg/boot/kconfig26$_suf
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/include
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel
    for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$kerver/include/
    done
    # copy files necessary for later builds, like nvidia and vmware
    cp -a scripts $startdir/pkg/usr/src/linux-$kerver/
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/.tmp_versions
    cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kerver/arch/i386/
    cp arch/i386/kernel/asm-offsets.s
    $startdir/pkg/usr/src/linux-$kerver/arch/i386/kernel/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$kerver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$kerver/$i
    done
    cd $startdir/pkg/usr/src/linux-$kerver/include && ln -s asm-i386 asm
    chown -R root.root $startdir/pkg/usr/src/linux-$kerver
    # create a unique subdirectory under /usr/src/
    cd $startdir/pkg/usr/src
    mv linux-$kerver linux-$kerver$_kerrev
    cd $startdir/pkg/lib/modules/$kerver$_kerrev &&
    (rm -f build; ln -sf /usr/src/linux-$kerver$_kerrev build)
    Thanks,
    /crobot

  • Command not found (Solved)

    Is there a fix in arch for the message ....command not found?
    Last edited by lilsirecho (2010-03-05 22:22:42)

    Tomk:  This is the pkgbuild......  Just now got Brisbin post...Line 40 is the present problem..expect more so I am not surprised!
    # $Id: PKGBUILD 70793 2010-03-01 11:33:16Z giovanni $
    # Maintainer: Giovanni Scafora <[email protected]>
    # Contributor: Sarah Hay <[email protected]>
    pkgbase=vlc
    pkgname=('vlc'
    'vlc-plugin')
    pkgver=1.0.5
    pkgrel=4
    arch=('i686' 'x86_64')
    url="http://www.videolan.org/vlc/"
    license=('GPL')
    makedepends=('a52dec' 'fluidsynth' 'libmtp' 'libdvbpsi' 'lirc-utils'
    'libdca' 'qt' 'libproxy' 'sdl_image' 'libdvdnav' 'mesa'
    'lua' 'libv4l' 'libcddb' 'smbclient' 'libmatroska' 'zvbi'
    'taglib' 'sysfsutils' 'libmpcdec' 'hal' 'ffmpeg'
    'libshout' 'libmad' 'fribidi' 'libmpeg2' 'libmodplug'
    'avahi' 'ttf-freefont' 'libxv' 'libass' 'xdg-utils' 'libxpm'
    'xulrunner>=1.9.2' 'pkgconfig' 'live-media' 'libnotify' 'libcdio')
    source=(http://download.videolan.org/pub/videolan/${pkgbase}/${pkgver}/${pkgbase}-${pkgver}.tar.bz2
    libpng-1.4.patch
    vlc-1.0.4-new-xulrunner.patch)
    md5sums=('d3d99e489ba1ae996af7e1065c0ef313'
    'b1961688a9be282a126bfa1cad4b28fa'
    'b1fc5e2527ecc863b3665238d82ac2db')
    build() {
    cd "${srcdir}/${pkgbase}-${pkgver}"
    patch -Np1 -i ${srcdir}/libpng-1.4.patch || return 1
    #http://trac.videolan.org/vlc/ticket/3185
    patch -Np1 -i ${srcdir}/vlc-1.0.4-new-xulrunner.patch || return 1
    sed -i -e 's:truetype/freefont:TTF:g' modules/misc/freetype.c
    [ "${CARCH}" = "i686" ] && EXTRAFEATURES="--enable-loader --enable-live555 --with-live555-tree=/usr/lib/live"
    [ "${CARCH}" = "x86_64" ] && EXTRAFEATURES="--enable-fast-install --enable-live555 --with-live555-tree=/usr/lib/live"
    ./configure --prefix=/usr \
    --enable-run-as-root
    --enable-libass \
    --enable-dvdread \
    --enable-jack \
    --enable-dvdnav \
    --disable-rpath \
    --enable-zvbi \
    --enable-qt4 \
    --enable-faad \
    --enable-alsa \
    --enable-skins2 \
    --enable-dvb \
    --enable-v4l \
    --enable-theora \
    --enable-flac \
    --enable-snapshot \
    --enable-hal \
    --enable-dbus \
    --enable-ogg \
    --enable-dbus-control \
    --enable-shared \
    --enable-nls \
    --enable-lirc \
    --enable-shout \
    --enable-pvr \
    --enable-ncurses \
    --enable-mozilla \
    --enable-release \
    --program-suffix= \
    --enable-realrtsp ${EXTRAFEATURES} || return 1
    CFLAGS="-fPIC"
    make || return 1
    package_vlc() {
    pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
    depends=('a52dec' 'fluidsynth' 'libmtp' 'libdvbpsi' 'libcdio'
    'libdca' 'qt' 'libproxy' 'sdl_image' 'libdvdnav' 'mesa'
    'lua' 'libv4l' 'libcddb' 'smbclient' 'libmatroska' 'zvbi'
    'taglib' 'sysfsutils' 'libmpcdec' 'hal' 'ffmpeg'
    'libshout' 'libmad' 'fribidi' 'libmpeg2' 'libmodplug'
    'avahi' 'ttf-freefont' 'libxv' 'libass' 'xdg-utils')
    optdepends=('libnotify: for notification plugin'
    'ncurses: for ncurses interface support'
    'libdvdcss: for decoding encrypted DVDs'
    'lirc-utils: for lirc plugin')
    options=('!libtool')
    install=vlc.install
    cd "${srcdir}/${pkgbase}-${pkgver}"
    make DESTDIR=${pkgdir}/ install || return 1
    for res in 16 32 48 128; do
    install -D -m644 ${srcdir}/vlc-${pkgver}/share/vlc${res}x${res}.png \
    ${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png || return 1
    done
    rm -rf ${pkgdir}/usr/lib/mozilla
    package_vlc-plugin() {
    pkgdesc="VLC mozilla browser plugin"
    depends=("${pkgbase}=${pkgver}" 'nspr')
    cd "${srcdir}/${pkgbase}-${pkgver}"
    install -Dm755 projects/mozilla/.libs/libvlcplugin.so ${pkgdir}/usr/lib/mozilla/plugins/libvlcplugin.so || return 1

  • [SOLVED] modprobe: command not found

    I am fully up to date as of today.
    I had a kernel panic and had to chroot and run:
    pacman -Syy
    pacman -S pacman
    pacman -Syu
    pacman -S udev
    pacman -S mkinitcpio
    sudo mkinitcpio -p linux
    to repair.
    Now, I can boot fine and when I tried to load a module, I got the command not found error.
    I tried to re-install kmod but still nothing.
    Any help would be appreciated.
    Last edited by frank419 (2012-04-11 18:59:11)

    [arch ~]$ sudo which modprobe
    Password:
    which: no modprobe in (/usr/local/bin:/usr/bin:/bin:/usr/games)
    [arch ~]$ sudo find / -name modprobe
    /sbin/modprobe
    /proc/sys/kernel/modprobe
    [arch ~]$ su -
    Password:
    -bash: n#: command not found
    -bash: thennfor: command not found
    -bash: dontest: command not found
    -bash: thenn.: command not found
    -bash-4.2# modprobe
    -bash: modprobe: command not found
    -bash-4.2#
    edit:code tags
    Last edited by frank419 (2012-04-11 18:29:40)

  • [solved] hostname command not found

    Some months ago i've got this problem:
    startx: line 127 hostname command not found
    that i solved with
    pacman -S net-tools
    Today the problem is here again O.o
    I've reinstalled net-tools and coreutils but nothing
    Last edited by polslinux (2011-08-26 11:31:26)

    http://mailman.archlinux.org/pipermail/ … 21397.html
    Edit: inetutils from [testing] http://www.archlinux.org/packages/testi … inetutils/ have the hostname binary and it was removed from the [testing] net-tools http://www.archlinux.org/packages/testi … net-tools/
    Packages in [core] still work the old way: net-tools provides hostname.
    Last edited by karol (2011-08-26 10:29:33)

Maybe you are looking for

  • Garage Band Loops are all greyed out,

    There are no drum loops at all on my garage band. They are all "greyed" out. This is a new mac and came with leopard which I installed myself. Could it be that the install didn't go correctly and needs to be redone or is this something additional I h

  • 1st generation ipod touch won't turn on

    I tried to reset my 1st generation ipod to it's factory settings but when I went to turn it on, all it does is show the apple screen and says it is loading.  I let it do this for over 24 hours.  It is still doing the same thing.  I have tried restart

  • Convert file type in preview.

    Hello, I have a high resolution .eps file that opens in preview. It looks great when I open it up, and when I zoom in the quality is very clear. I want to convert this to a .jpeg or .tiff image - however I want the quality to remain the same. I try t

  • Can't configure 7.1 speakers correctly (all speakers with same output)

    (I'm using Windows XP Pro with, Soundblaster X-Fi XtremeGamer and Gigaworks S750) I'm trying to configure my Creative Gigaworks S750 speaker system for listening to Music but I can't seem to get the sound configuration that I would like. I have the s

  • TV Shows sorting issues on ipad

    I am very organized and borderline OCD so believe me when I say that I have made sure under the "command I" (get info) settings for each and every episode, everything is filled out exactly like the TV Shows that I have bought from the iTunes Store.