You are not logged in.

#1 2012-04-01 19:38:26

quasifilmie
Member
From: Bowmanville, Ontario, Canada
Registered: 2011-10-27
Posts: 289

unable to build yaourt or yaourt. i flagged it and it got unflagged

This is the error I get trying to build yaourt or yaourt-git.



==> Making package: yaourt 1.0.1-1 (Sun Apr  1 11:34:45 EDT 2012)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving Sources...
  -> Found yaourt-1.0.1.tar.gz
==> Validating source files with md5sums...
    yaourt-1.0.1.tar.gz ... Passed
==> Extracting Sources...
  -> Extracting yaourt-1.0.1.tar.gz with bsdtar
==> Removing existing pkg/ directory...
==> Starting build()...
make: Nothing to be done for `all'.
==> Starting package()...
/bin/install  -d /home/conner/yaourt/pkg/usr/bin
/bin/bash: /bin/install: No such file or directory
make: *** [install] Error 127
==> ERROR: A failure occurred in package().
    Aborting...

Offline

#2 2012-04-01 20:16:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: unable to build yaourt or yaourt. i flagged it and it got unflagged

Check your $PATH, 'install' lives in /usr/bin/install.

Edit: Nope, that's not it, I get the same error.


You can edit the PKGBUILD and change 'install' to '/usr/bin/install'.

Last edited by karol (2012-04-01 20:22:19)

Offline

#3 2012-04-01 20:45:59

quasifilmie
Member
From: Bowmanville, Ontario, Canada
Registered: 2011-10-27
Posts: 289

Re: unable to build yaourt or yaourt. i flagged it and it got unflagged

Thanks karol.

Offline

#4 2012-04-04 13:49:27

paulieboy
Member
From: Rome, Italy
Registered: 2012-04-04
Posts: 1

Re: unable to build yaourt or yaourt. i flagged it and it got unflagged

Hello!

Same problem here.

Doing what karol suggested solved the Error 127 problem, but it still doesn't work: I get an empty (0,00 mb) package that only "seems" to install yaourt: pacman recognize it as installed but if I type "yaourt" I get the command not found.

Offline

#5 2012-04-04 14:10:59

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,810
Website

Re: unable to build yaourt or yaourt. i flagged it and it got unflagged

I also had this problem.  I put a line in the PKGBUILD right before the install line to 'sed' the /bin/install in the Makefile to /usr/bin/install and it worked perfectly.

...
package() {
    cd $srcdir/$pkgname-$pkgver/
    sed -i 's|/bin/install|/usr/bin/install|' Makefile
    make PREFIX-/usr sysconfdir=/etc localstatedir=/var DESTDIR=$pkgdir install
}
...

EDIT: fixed one typo - there may be others as the sed line was not copied from a working version of the PKGBUILD, but rater reconstructed from memory.

EDIT AGAIN: I guess this is similar to Karol's point.  However, it seems the problem is in the Makefile not the PKGBUILD itself.

Last edited by Trilby (2012-04-04 14:16:33)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#6 2012-04-07 14:04:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,428

Re: unable to build yaourt or yaourt. i flagged it and it got unflagged

Trilby wrote:

EDIT AGAIN: I guess this is similar to Karol's point.  However, it seems the problem is in the Makefile not the PKGBUILD itself.

I think you're right as it seemed really weird that the PKGBUILD would break all of a sudden, but I was too lazy to dive deeper into this ;P

Offline

Board footer

Powered by FluxBB