You are not logged in.

#1 2013-03-30 13:25:07

dineshswamy
Member
Registered: 2013-01-11
Posts: 26

[SOLVED]cannot use makepkg ??

whenever i issue makepkg , i get the following

bash: ./makepkg: /usr/bin/bash: bad interpreter: No such file or directory

i thought makepkg collapsed , then downloaded a binary of makepkg and replaced , but its not working ?

Last edited by dineshswamy (2013-03-30 15:39:24)

Offline

#2 2013-03-30 13:32:51

parazyd
Member
From: Amsterdam
Registered: 2012-10-14
Posts: 259
Website

Re: [SOLVED]cannot use makepkg ??

What the?!

Makepkg is used a different way. You enter a directory with a PKGBUILD and then you issue

makepkg -i

Do

makepkg --help

For more help.

Offline

#3 2013-03-30 13:34:07

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED]cannot use makepkg ??

Check your /etc/makepkg.conf, maybe you have an unmerged .pacnew. You are, by the way, the second person today to have a makepkg problem. The binary is owned by the pacman package, maybe you should try reinstalling pacman.

Offline

#4 2013-03-30 13:37:08

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED]cannot use makepkg ??

What is the ouput from the following commands:

which bash
file /usr/bin/bash
ls -l /

And, did you happen to botch or ignore the big glibc update a while back?

Last edited by Trilby (2013-03-30 13:37:37)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-03-30 13:41:59

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 212
Website

Re: [SOLVED]cannot use makepkg ??

Also, is this a problem related to your earlier post; https://bbs.archlinux.org/viewtopic.php?id=160553 ?

Offline

#6 2013-03-30 15:37:39

dineshswamy
Member
Registered: 2013-01-11
Posts: 26

Re: [SOLVED]cannot use makepkg ??

million thanks for every1's reply .. i got makepkg working . .. i edited  the makepkg file

changed

   #!/usr/bin/bash to  #!/bin/bash    

perform

which bash 

  and change accordingly .

Offline

#7 2013-03-30 15:43:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED]cannot use makepkg ??

Definitely the wrong thing to do - and it will only get overwritten on the next pacman upgrade.

If 'which bash' returned '/bin/bash' there is something wrong with your system, and you should address that before you do anything else.

Offline

#8 2013-03-30 17:03:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED]cannot use makepkg ??

Indeed, I asked for the output of those commands as I thought they would identify the real problem - not as a way to lead you to make the problem worse.

It seems my suspicions were right about the problem.  Somehow you have come this far without making the /usr/ transition (with the big glibc update).  Whenever you want to tell us how you actually broke your system, we might be able to help.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2013-04-03 18:10:38

tfk_
Member
Registered: 2013-04-03
Posts: 1

Re: [SOLVED]cannot use makepkg ??

Hi,

as I have got exactly the same problem I hope somebody is able to help me (in the meantime I fixed the problem like he did, but as some of you said it might not be a good solution)
The problem occurred after I updated pacman to 4.1.

$  pacman --version

 .--.                  Pacman v4.1.0 - libalpm v8.0.0
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2013 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

But since I installed arch in August 2012 I think the glibc update already happened:

$ which bash
/bin/bash

$ file /usr/bin/bash
/usr/bin/bash: ERROR: cannot open `/usr/bin/bash' (No such file or directory)

$ ls -l /
total 64
drwxr-xr-x   2 root root  4096 Dec 24 01:43 bin
drwxr-xr-x   3 root root  4096 Dec 26 13:41 boot
drwxr-xr-x  15 root root  2920 Apr  3 13:52 dev
drwxr-xr-x  80 root root  4096 Apr  3 19:38 etc
drwxr-xr-x   3 root root  4096 Oct  2  2012 home
lrwxrwxrwx   1 root root     7 Aug 29  2012 lib -> usr/lib
drwx------   2 root root 16384 Oct  2  2012 lost+found
drwxr-xr-x   2 root root  4096 Dec 24 19:46 media
drwxr-xr-x   2 root root  4096 Aug 27  2012 mnt
drwxr-xr-x   4 root root  4096 Dec 30 02:32 opt
dr-xr-xr-x 156 root root     0 Apr  3 13:51 proc
drwxr-x---  16 root root  4096 Jan  4 20:31 root
drwxr-xr-x  20 root root   500 Apr  3 17:35 run
drwxr-xr-x   2 root root  4096 Dec 24 01:43 sbin
drwxr-xr-x   4 root root  4096 Aug 27  2012 srv
dr-xr-xr-x  12 root root     0 Apr  3 13:51 sys
drwxrwxrwt  16 root root   400 Apr  3 19:39 tmp
drwxr-xr-x   9 root root  4096 Oct  2  2012 usr
drwxr-xr-x  13 root root  4096 Dec 24 02:02 var

but still I get an error for makepkg

$ makepkg --help
bash: /usr/bin/makepkg: /usr/bin/bash: bad interpreter: No such file or directory

I hope someone is able to tell me what is wrong with my system so I can fix it.
(I didn't do a pacman -Syu in a while since it wants to replace dbus and weird kde packages and I fear it will break nouveau and my system)

Offline

#10 2013-04-03 18:17:21

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED]cannot use makepkg ??

tfk_ wrote:

I hope someone is able to tell me what is wrong with my system so I can fix it.
(I didn't do a pacman -Syu in a while since it wants to replace dbus and weird kde packages and I fear it will break nouveau and my system)

I think you just answered your own question. Partial upgrades are not supported for exactly this reason, Pacman is depending on a newer Bash package than you have installed.

Offline

Board footer

Powered by FluxBB