failed with installation texstudio on Centos 7

Issues related to applications and software problems
Post Reply
Emily Feng
Posts: 1
Joined: 2023/02/28 16:18:38

failed with installation texstudio on Centos 7

Post by Emily Feng » 2023/02/28 16:29:24

Hello everyone,

I had a problem when I tried to install texstudio on my PC.
I followed the installation steps according to the following links:
https://medium.com/@jack14002/installin ... 0dcdbc2ddb

I successfully installed texlive 2022, but when I try to install the newest version of texstudio-4.5.1-lp154.9.1.x86_64.rmp
It shows the following errors:
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libstdc++.so.6(CXXABI_1.3.8)(64bit)
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libQt5Svg5
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libQt5Core.so.5(Qt_5.15)(64bit)
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libhunspell-1.6.so.0()(64bit)
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libm.so.6(GLIBC_2.29)(64bit)
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libpoppler-qt5.so.1()(64bit)
Error: Package: texstudio-4.5.1-lp154.9.1.x86_64 (/texstudio-4.5.1-lp154.9.1.x86_64)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
You could try using --skip-broken to work around the problem

I tried the "yum localinstall texstudio-4.5.1-lp154.9.1.x86_64.rpm", but it still showed the same errors.

Any suggestions? Thanks in advance!

Best regards,
Emily Feng

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: failed with installation texstudio on Centos 7

Post by TrevorH » 2023/02/28 17:03:37

Those packages are built against a newer glibc/libstdc++ than CentOS 7 provides so they are intended for a newer version of CentOS. You either need to find packages built for CentOS 7 or move to a newer distro - which since CentOS Linux 8 died more than a year ago and there is no CentOS Linux 9 - means using one of the other RHEL rebuilds like Rocky/Alma/OEL.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
jlehtone
Posts: 4530
Joined: 2007/12/11 08:17:33
Location: Finland

Re: failed with installation texstudio on Centos 7

Post by jlehtone » 2023/02/28 20:50:38

Where did you find that package? From https://download.opensuse.org/repositor ... eyer/15.4/ ?
There seem to be source packages too, in: https://download.opensuse.org/repositor ... /15.4/src/

The more appropriate way is to take a source package and rebuild binary package from it. Binary built on CentOS 7 does work on CentOS 7.
(I'd look for the source RPM package from the texstudio project rather than some opensuse.)
One should use 'mock' (from EPEL), but in a pinch 'rpmbuild' could suffice. The important point is to build as regular account, never as root.

The "guide" that you did follow gives eerie feeling.
* One does not need 'rpm' -- whenever packages are installed, the 'yum' does the job.
* The texlive is available as RPM packages -- no need to drop anything into /usr/local/


Finally, why texstudio? That "guide" mentions that there are multiple LaTeX editors. The CentOS 7 base repos or EPEL do have some.
(Personally, I do use GNU Emacs with auctex mode, but that is not for everyone.)

Post Reply