Weka not compile

Hi,
I am trying to install Weka using yay - AUR.

yay -S weka
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  weka-3.8.6-2

  1 weka                                     (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 

but at the end I got only one error

==> Sources are ready.
==> Making package: weka 3.8.6-2 (Sun Jan 30 16:48:12 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Removing existing $pkgdir/ directory...
==> Entering fakeroot environment...
==> Starting package()...
install: cannot stat 'documentation.*': No such file or directory
install: cannot stat 'README': No such file or directory
install: cannot stat '*.pdf': No such file or directory
install: cannot stat 'weka.gif': No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: weak

On AUR replies me that the software compiles perfectly and to ask here.

Any ideas?

As suggested by this comment try installing weka manually:

sudo pacman -S base-devel git --needed
git clone https://aur.archlinux.org/weka.git
cd weka
makepkg -si
1 Like

The maintainer of said package script is a very competent and experienced Arch user.

@jonathon possibly knows more of Manjaro than many members - including myself.

I have tested using both yay and pamac - so the issue is local to your system.

The messages in your OP indicates that sourcefiles is missing - perhaps your internet connection has been flaky - resulting in certain source files are either incomplete or missing.

This solution work for me

sudo pacman -S base-devel git --needed
git clone https://aur.archlinux.org/weka.git
cd weka
makepkg -si

I have three computer and one connected at Uninversity of Pisa Network… same issue. I have this problem at home with my VDLS and at University… three file-system? The installation are similar but not equals… any idea to discover the problem? Thx

Maybe is a yay bug if it worked using makepkg,

The failure for you happen at line 38 of the pkgbuild

install -Dm644 -t “$pkgdir”/usr/share/doc/$pkgname documentation.* README *.pdf weka.gif


should be quoted all variables like this, maybe this is the error

“$pkgdir/usr/share/doc/$pkgname”

It’s difficult to say - it could be a glitch caused by the AUR helper.

The litmus (danish lakmus) test of a PKGBUILD is to use makepkg.

When I tested pamac the source downloaded without issues.

One minute later testing yay it had network issues fetching the source zip

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   364  100   364    0     0    495      0 --:--:-- --:--:-- --:--:--   494
100   341  100   341    0     0    124      0  0:00:02  0:00:02 --:--:--   339
  0     0    0     0    0     0      0      0 --:--:--  0:02:12 --:--:--     0
curl: (28) Failed to connect to deac-riga.dl.sourceforge.net port 443 after 130027 ms: Connection timed out
Warning: Problem : timeout. Will retry in 3 seconds. 3 retries left.
100   364  100   364    0     0    553      0 --:--:-- --:--:-- --:--:--   554
100   333  100   333    0     0    124      0  0:00:02  0:00:02 --:--:--   329
100 56.8M  100 56.8M    0     0  2304k      0  0:00:25  0:00:25 --:--:-- 1261k

My connection is a rock solid 500Mbit fibre optic connection and venture a guess that you university connection is even better than mine.

So my guess is bad luck with sourceforge mirror server the script has been redirected to.

Tip: When pasting terminal output on Discourse forums, one can either…

  • Use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    type or paste code here
    ```

  • Use HTML:

    <pre><code>
    type or paste code here
    </pre></code>

I’ve done it for you this time. :wink:

I can only write that

pamac build weka

resolves the problem. Thanks to all.