You are not logged in.
Pages: 1
I recently installed abs and was trying to use makepkg, but it gave me the following error:
makepkg -i --asroot
: command not found
==> ERROR: An unknown error has occured. Exiting...
Any assistance would be appreciated. (I am in the same directory as the PKGBUILD file and I am running the command as root).
Offline
You really should not run makepkg as root... thats why you are forced to type the --asroot option to make sure you are really sure.
Anyway, the error message is not very helpful. If you post the PKGBUILD we may be able to help.
Edit: Also, do you have "base-devel" group installed? These are expected to be installed if you are using AUR.
Last edited by Allan (2008-01-24 06:12:23)
Offline
The PKGBUILD I used was the DWM PKGBUILD (along with the dwm.install and config.h files) in the AUR. I only deleted the second md5sum since I changed the config.h file.
I don't think I have the base-devel group installed though. When I installed arch (used the 2007.08-2 CD) I only installed the packages listed under "base". What packages should I be looking for to see if I have base-devel installed?
Offline
"pacman -Sg base-devel" will list the packages for you.
Offline
I have installed everything in base-devel, but I am still receiving the same error message.
(My PKGBUILD is now identical to the dwm PKGBUILD in the AUR, along with the config.h and dwm.install files.)
Offline
Try issueing makepkg as regular user.
Also It wouldn't hurt to post the code in the topic.
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
I've tried running makepkg -i -c as both root and a regular user and I get the exact same error message.
The PKGBUILD is unchanged from the one in the AUR but here it is:
# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
# Contributor: Grigorios Bouzakis <grbzks@gmail.com>
pkgname=dwm
pkgver=4.7
pkgrel=1
pkgdesc="A dynamic window manager for X"
url="http://www.suckless.org/wiki/dwm"
arch=('i686' 'x86_64')
license=('MIT')
depends=('libx11')
install=dwm.install
source=(http://www.suckless.org/download/$pkgname-$pkgver.tar.gz \
config.h)
md5sums=('827b128514a3edb87e208e84fee0eb3f'
'395e9a25f65605c4891e74c644b91530')
build() {
cd $startdir/src/$pkgname-$pkgver
cp ../config.h .
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 || return 1
make PREFIX=/usr DESTDIR=$startdir/pkg install || return 1
install -m644 -D LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE && \
install -m644 -D README $startdir/pkg/usr/share/doc/$pkgname/README
}
I also have the config.h and dwm.install from the AUR as well, there are also unchanged. The config.h file probably isn't the problem since makepkg would probably give me less cryptic error messages if it were
Here is the dwm.install though (once again unchanged):
pre_install() {
echo "-- Edit config.h in PKGBUILD's directory (generally /var/abs/community/x11/dwm/)"
echo "-- and rebuild package if you want to change settings."
/bin/true
}
post_install() {
/bin/true
}
pre_upgrade() {
echo "-- Edit config.h in PKGBUILD's directory (generally /var/abs/community/x11/dwm/)"
echo "-- and rebuild package if you want to change settings."
/bin/true
}
post_upgrade() {
/bin/true
}
pre_remove() {
/bin/true
}
post_remove() {
/bin/true
}
op=$1
shift
$op $*
Offline
Hmm... Is make installed?
Second... if you run a clear makepkg (without -i -c) what happens?
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
Both make and install are installed (I installed everything in base-devel).
If I run a clear makepkg, the exact same error appears.
Offline
Both make and install are installed (I installed everything in base-devel).
If I run a clear makepkg, the exact same error appears.
Did you download the PKGBUILD or copy/paste it?
If second case, AUR always offers a tarball to download that contains everything you need.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
I have no idea what your problem might be... I tried to compile the package from aur (dwm 4.7, right) and it compiled just fine without a glitch... here's the default compiled package...
http://89.215.133.30/files/dwm-4.7-1-i686.pkg.tar.gz
P.S.
My IP won't change until I restart my pc (meaning tomorow at lunch) so you're free to download the package until then.
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
Thanks for uploading the compiled package Dheart (unfortunately, I also seem to be having troubles getting Xorg working, but that's another story).
However, I still would like to know why I can't seem to use makepkg. I have successfully used it before on previous installations of arch without any problems. Its just that this new laptop doesn't seem to like linux very much.
Edit: For some reason, after I reinstalled all of the packages in base-devel and rebooted, makepkg started working, so I guess this problem is now resolved.
Thanks everyone who gave me advice.
Last edited by elvalith (2008-01-27 17:37:02)
Offline
Pages: 1