shenmo 8ed5bb479c
update scripts/transhell/ablrun_ru_RU.transhell.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
2023-08-06 16:35:40 +00:00
2023-07-31 12:17:44 +08:00
2023-07-31 00:09:46 +08:00
2023-07-31 00:09:46 +08:00

Additional Base Lib

Solve the common compatible problem of glibc on GNU/Linux, by lightweight container utility bubblewrap. (Support distros based on debian)

Introdution

When running applications, which are not include in system repository, there's sometimes a problem like this, which prevent application to run:
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.xx' not found (required by /path/to/xxx
That's because the application build with higher glibc then running. Someone choose to manually upgrade glibc, but because of the importance of glibc in GNU/Linux, this method usually make the whole OS distroyed. There's some safer but more complex solution, however, the utility here is much easier using and installing, without troubles to damage your operating system.

License

There's no license restriction with scripts such as ablrun. All the library files are taken from some GNU/Linux distribution, their original license should followed.

Notes

  1. Tested in deepin, but it's also able to run on other distro based on debian. And It's easy to port to other GNU/Linux platform.
  2. It use bwrap, as a result, some application may not run, such as ones use there own container or ones need to mount filesystem. But appimages will run, because I designed a special method to support.
  3. Also include a single libstdc++ library with glibc, because this problem is as often as that with glibc.
  4. You may use LD_LIBRARY_PATH environment variable with ablrun to search libraries in other directories, which may solve some other library problem.

Usage

Install additional-base-lib debian package first (You may download from the right side, Releases section.):
sudo apt install "path/to/package_name.deb"

Then you can run command, that contains glibc problem, led by ablrun and a space:
ablrun [command [arguments ...]]

Uninstall:
sudo apt remove additional-base-lib

Resources

Original release page (in Chinese):
https://bbs.deepin.org/post/256555

Common solution for many library problem (in Chinese):
https://bbs.deepin.org/post/256081

A help for someone like to port this script to other GNU/Linux platform (in Chinese):
https://bbs.deepin.org/post/258721

Customize

If the released package cannot fit your needs (such as library version, architecture), you may try make-deb.sh to create your own additional base lib. Download the project, and edit the script, change 3 URLs for download packages to which you want. You may found many version and architectures from debian page: https://www.debian.org/distrib/packages , and then run the script make-deb.sh. It will auto-detect architecture of packages, and take corresponding methods.
dependence: bash, coreutils, dpkg, dpkg-dev, grep, wget, patchelf

Description
No description provided
Readme 4.8 MiB
Languages
Shell 100%