Hello, I’m trying to add the Tcl and Tk libraries to the Tcl and Tk software installations.
I installed Tcl and Tk through the installer tool from the core repository a couple months ago and they’ve been working. Now I want to add the libraries but couldn’t find them in the core repository.
I added the AUR and the three I wanted are there: tclib, tklib, and tkImg.
First, I added the build of tclib since it is a dependency of tklib and it was successful. However, tklib fails to build due to validation of sha256 sum. The tkImg library was successful also.
I know very little about Linux. Is it possible to add the library outside of the installer tool, or another way to get it loaded? The .tar.gz files are available elsewhere.
I tried checking the auto_path in tclsh and using tar -zxf to install the files there, and they unpacked but the require package statements in the scripts failed to locate them.
Building tklib…
==> Making package: tklib 0.7-1 (Sat 29 May 2021 08:45:11 PM EDT)
==> Checking runtime dependencies…
==> Checking buildtime dependencies…
==> Retrieving sources…
→ Downloading tklib-0.7.tar.gz…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2421k 0 2421k 0 0 2473k 0 --:–:-- --:–:-- --:–:-- 2473k
100 6120k 0 6120k 0 0 3873k 0 --:–:-- 0:00:01 --:–:-- 6165k
==> Validating source files with sha256sums…
tklib-0.7.tar.gz … FAILED
==> ERROR: One or more files did not pass the validity check!
Failed to build tklib
This is the PKGBUILD:
# Maintainer: Michael Schubert <mschu.dev at gmail>
# Contributor: Thomas Dziedzic
# Contributor: Mihai Militaru <mihai dot militaru at xmpp dot ro>
pkgname=tklib
pkgver=0.7
pkgrel=1
pkgdesc='Tklib specializes in utilities for GUI programming.'
arch=('i686' 'x86_64')
url="https://core.tcl-lang.org/tklib/home"
license=('GPL')
depends=('tk' 'tcllib')
source=(https://github.com/tcltk/tklib/archive/$pkgname-$pkgver.tar.gz)
sha256sums=('1afe81a09c5fad2d9758b88c0250a49fc24c0e337d6d773ad2d622919dafd206')
build() {
cd $pkgname-$pkgname-$pkgver
./configure --prefix=/usr
make all
}
package() {
cd $pkgname-$pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
I tried placing updpkgsums in this code after the source is defined and after that attempt then moved it to the end and when it processes it consumes all the RAM and freezes the computer.
I assume I’m doing something wrong. Do you know what it is? Thanks.
Thanks. Yes, I did notice that. Then I should put this elsewhere and lappend the location to the auto_path, as described at Tcl/Tk wiki? I don’t have permission to add the link.
It worked anyway and the library packages are found by the scripts now.