lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.15k stars 294 forks source link

Getting error in installation #262

Closed lakshits11 closed 2 years ago

lakshits11 commented 2 years ago

Describe the bug I am getting the following error while installing on my Manjaro XFCE

lakshit@coder ~]$ yay -S linux-wifi-hotspot
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo:1]  hostapd-2.10-1
[Aur:1]  linux-wifi-hotspot-4.4.0-1

  1 linux-wifi-hotspot                       (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> A
:: Deleting (1/1): /home/lakshit/.cache/yay/linux-wifi-hotspot
:: (1/1) Downloaded PKGBUILD: linux-wifi-hotspot
  1 linux-wifi-hotspot                       (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> N
:: (1/1) Parsing SRCINFO: linux-wifi-hotspot
resolving dependencies...
looking for conflicting packages...

Packages (1) hostapd-2.10-1

Total Installed Size:  1.88 MiB

:: Proceed with installation? [Y/n] Y
(1/1) checking keys in keyring                         [############################] 100%
(1/1) checking package integrity                       [############################] 100%
(1/1) loading package files                            [############################] 100%
(1/1) checking for file conflicts                      [############################] 100%
(1/1) checking available disk space                    [############################] 100%
:: Processing package changes...
(1/1) installing hostapd                               [############################] 100%
:: Running post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
==> Making package: linux-wifi-hotspot 4.4.0-1 (Sunday 07 August 2022 10:50:34 AM)
==> Retrieving sources...
  -> Downloading linux-wifi-hotspot-4.4.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  681k    0  681k    0     0   342k      0 --:--:--  0:00:01 --:--:--  846k
==> Validating source files with sha256sums...
    linux-wifi-hotspot-4.4.0.tar.gz ... Passed
 -> hostapd not satisfied, flushing install queue
==> Making package: linux-wifi-hotspot 4.4.0-1 (Sunday 07 August 2022 10:50:37 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found linux-wifi-hotspot-4.4.0.tar.gz
==> Validating source files with sha256sums...
    linux-wifi-hotspot-4.4.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting linux-wifi-hotspot-4.4.0.tar.gz with bsdtar
==> Sources are ready.
==> Making package: linux-wifi-hotspot 4.4.0-1 (Sunday 07 August 2022 10:50:40 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
mkdir -p build
Run 'sudo make install' for installation.
Run 'sudo make uninstall' for uninstallation.
cd src && make
make[1]: Entering directory '/home/lakshit/.cache/yay/linux-wifi-hotspot/src/linux-wifi-hotspot-4.4.0/src'
which: no pkg-config in (/home/lakshit/.npm-global/bin:/home/lakshit/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin)
/bin/sh: --: invalid option
Usage:  /bin/sh [GNU long option] [option] ...
    /bin/sh [GNU long option] [option] script-file ...
GNU long options:
    --debug
    --debugger
    --dump-po-strings
    --dump-strings
    --help
    --init-file
    --login
    --noediting
    --noprofile
    --norc
    --posix
    --pretty-print
    --rcfile
    --restricted
    --verbose
    --version
Shell options:
    -ilrsD or -c command or -O shopt_option     (invocation only)
    -abefhkmnptuvxBCHP or -o option
ui/glade/wifih.gresource.xml --target=ui/resources.c --sourcedir=ui/glade --generate-source
make[1]: ui/glade/wifih.gresource.xml: Permission denied
make[1]: *** [Makefile:31: resources.c] Error 127
make[1]: Leaving directory '/home/lakshit/.cache/yay/linux-wifi-hotspot/src/linux-wifi-hotspot-4.4.0/src'
make: *** [Makefile:5: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: linux-wifi-hotspot

Screenshots

image

And when I run as sudo:

image

Desktop (please complete the following information):

lakinduakash commented 2 years ago

@yochananmarqos please check

yochananmarqos commented 2 years ago

@lakshits11

First ensure that the necessary tools are installed by installing the base-devel group in full which includes make and other tools needed for compiling from source.

Tip: Use the --needed flag when installing the base-devel group to skip packages you already have instead of reinstalling them. Note: Packages in the AUR assume that the base-devel group is installed, i.e. they do not list the group's members as build dependencies explicitly.

-- https://wiki.archlinux.org/title/Arch_User_Repository#Prerequisites

See also https://wiki.manjaro.org/index.php/Arch_User_Repository