Francesco149 / sharenix

A ShareX clone for Linux and FreeBSD.
GNU General Public License v3.0
588 stars 35 forks source link

Issue building on manjaro/arch #62

Closed KenwoodFox closed 3 years ago

KenwoodFox commented 3 years ago

not sure what im doing wrong, any clues?


==> Making package: sharenix-git r183.27d8fb0-1 (Sun 28 Feb 2021 03:28:57 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating sharenix git repo...
Fetching origin
==> Validating source files with md5sums...
    sharenix ... Skipped
==> Extracting sources...
  -> Creating working copy of sharenix git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
go: cannot find main module, but found .git/config in /media/NotLocalDisk/Documents/ShareNix/src/build/src/github.com/Francesco149/sharenix
        to create a module there, run:
        go mod init
==> ERROR: A failure occurred in build().
    Aborting...```
MrMemoL commented 3 years ago

hi I was having problems with building I tried the pre-builded version but it was the same. Download these and your problem should be solved.

sudo pacman -S lib32-gtk2 sudo pacman -S lib32-libsm if building doesn't work after this use the pre-builded version

WebsiteStealer commented 3 years ago

I'm having the same issue anyone got any fixes as I can't even get the prebuilt one to execute

KenwoodFox commented 3 years ago

hi I was having problems with building I tried the pre-builded version but it was the same. Download these and your problem should be solved.

sudo pacman -S lib32-gtk2 sudo pacman -S lib32-libsm if building doesn't work after this use the pre-builded version

Sorry :c that did not work. Not sure whats going on? Where can I find the prebuilt?

sussycatgirl commented 3 years ago

I'm having the same issue when installing sharenix-git from the AUR. Using the prebuilt binaries works.

Not sure whats going on? Where can I find the prebuilt?

https://github.com/Francesco149/sharenix/blob/master/README.md#installing---prebuilt-binaries

WillyPillow commented 3 years ago

Setting the environment variable GO111MODULE=off for go get seems to fix it for me.

MBR-0001 commented 3 years ago

The message changed to install: cannot stat '/home/mbr/sharenix-git/src/build/bin/sharenix': No such file or directory for me after the latest update

Francesco149 commented 3 years ago

@zneix patched the pkgbuild to work again. it should be fine now

MBR-0001 commented 3 years ago

can confirm, it is possible to build the package again

zneix commented 3 years ago

Yup, all works and the issue can be closed.