You are not logged in.

#1 2016-11-21 16:52:40

hengly
Member
Registered: 2016-11-19
Posts: 36

Failure occured in packages() makepkg

So i learn to build pacakge and install them first time and i got this problem, how to fix it ?
[ ==> Entering fakeroot environment...
==> Starting package()...
exit 0; -t /home/shadowlegend/Downloads/php-7.0.13/src/php-7.0.13/ext/json/php_json_scanner_defs.h --no-generation-date -bci -o /home/shadowlegend/Downloads/php-7.0.13/src/php-7.0.13/ext/json/json_scanner.c /home/shadowlegend/Downloads/php-7.0.13/src/php-7.0.13/ext/json/json_scanner.re
mkdir: cannot create directory '/usr/lib/php': Permission denied
mkdir: cannot create directory '/usr/lib/php/extensions': No such file or directory
mkdir: cannot create directory '/usr/lib/php/extensions/no-debug-non-zts-20151012': No such file or directory
make: *** [Makefile:160: install-modules] Error 1
==> ERROR: A failure occurred in package(). ]

Offline

#2 2016-11-21 17:04:34

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

Re: Failure occured in packages() makepkg

You need to tell it to install to $pkgdir, not directly to the filesystem.

Offline

#3 2016-11-22 09:15:39

hengly
Member
Registered: 2016-11-19
Posts: 36

Re: Failure occured in packages() makepkg

I don't know how to do it, please tell me

Offline

#4 2016-11-22 12:49:15

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,592
Website

Re: Failure occured in packages() makepkg

Prefix destinations with the pkgdir variable.

See https://wiki.archlinux.org/index.php/Cr … kage.28.29


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB