You are not logged in.

#1 2008-01-24 05:47:51

elvalith
Member
Registered: 2005-07-26
Posts: 28

makepkg problems

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

#2 2008-01-24 05:52:48

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

Re: makepkg problems

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

#3 2008-01-25 05:18:44

elvalith
Member
Registered: 2005-07-26
Posts: 28

Re: makepkg problems

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

#4 2008-01-25 05:32:07

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

Re: makepkg problems

"pacman -Sg base-devel"  will list the packages for you.

Offline

#5 2008-01-25 19:59:00

elvalith
Member
Registered: 2005-07-26
Posts: 28

Re: makepkg problems

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

#6 2008-01-25 20:12:44

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: makepkg problems

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

#7 2008-01-25 20:58:47

elvalith
Member
Registered: 2005-07-26
Posts: 28

Re: makepkg problems

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

#8 2008-01-25 21:23:51

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: makepkg problems

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

#9 2008-01-25 21:25:54

elvalith
Member
Registered: 2005-07-26
Posts: 28

Re: makepkg problems

Both make and install are installed (I installed everything in base-devel).

If I run a clear makepkg, the exact same error appears.

Offline

#10 2008-01-25 21:41:54

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: makepkg problems

elvalith wrote:

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

#11 2008-01-25 22:00:20

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: makepkg problems

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

#12 2008-01-26 07:43:29

elvalith
Member
Registered: 2005-07-26
Posts: 28

Re: makepkg problems

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

Board footer

Powered by FluxBB