-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build on Arch Linux #1985
Comments
I'd suggest doing I guess we can change this and allow specifying version on the outside, but this won't help you build v0.103.3.
It seems the root cause for it is this
Please make sure that you're using Go v1.14 or newer and Nodejs v13 or newer. I know we have node v10 in the README, this info may be outdated. |
OK, with v0.102.0 I was able to build from the tarball. I took you suggestion and cloned the repo instead which fixed the first error, but I am still encountering the build error related to missing the node module it seems. See below.
I am. Arch is shipping:
Could there be a dependency missing that would cause the cross-env node modules to not get built? I did not see npm as a dependency on the README, but it is needed. For reference, Arch is shipping npm v6.14.7. Thanks!
EDIT: here is the debug log it mentioned:
|
Not really. This line is also really strange, node_modules should've been created when you run
Please try running these commands manually one by one and see if they're successful:
Also, look for |
Here is the output:
And
|
@graysky2 So does the build now works for you via |
@szolin - No, if I build with make it errors out as shown above. All of these commands are getting executed within a clean buildroot, per Arch defaults. It is as if, somethings in the |
Are they really errors? It seems like those messages are warnings. |
@szolin - You bet. When building on Arch, one uses a
When I call When I attempt to build this in the chroot:
So an error was thrown at that point. EDIT: I just discovered the source of the error to be running
Now the output is as follows and there are no errors:
|
So it works! |
No problem, szolin. Thank you and @ameshkov for the help to troubleshoot this. I believe the Arch package is 100% now. https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=adguardhome |
@graysky2 maybe we should add it to https://github.com/AdguardTeam/AdGuardHome/wiki/Getting-Started#installation |
@ameshkov - That section seems to be for precompiled packages, no? Is your intent to link distro-specific packages as well? |
@graysky2 generally, to list all alternative ways of installing AGH |
I am happy to modify #1989 to include the Arch Linux specific. |
Github's Wiki does not support pull requests, but it'd be great if you could simply post the text that describes your package here. |
I was thinking something like: Users of Arch Linux, Arch ARM, and other Arch-based clones, may build via adguardhome in the AUR. |
Done, thank you! |
Issue Details
Expected Behavior
Running
make
should successful build AdGuardHomeActual Behavior
Make depends installed on Arch beyond standard toolchain are:
go nodejs npm git golangci-lint
Downloaded and extracted the sourcetarball: https://github.com/AdguardTeam/AdGuardHome/archive/v0.103.3.tar.gz
If I run
git init
in the untarred source first, it gets a bit further but errors out:The text was updated successfully, but these errors were encountered: