Installing Packages & Symlinking
-
8. Installing Qt4
How to Install Qt4 in Ubuntu 21.04
-
9. Installing Packages
Next Install Required Packages
So first Install the Packages in the Default Repos:sudo apt update
sudo apt install alien autoconf automake autotools-dev binutils doxygen elfutils expat gawk gcc gcc-multilib g++-multilib libstdc++6:i386 ksh less libtiff5 libtiff5-dev lib32z1 libaio1 libaio-dev libc6-dev libc6-dev-i386 libc6-i386 libelf-dev libltdl-dev libstdc++5 make openssh-server rlwrap rpm sysstat unixodbc unixodbc-dev x11-utils libpth-dev zlibc libglapi-mesa:i386 libglu1-mesa:i386 libpthread-workqueue0 libpthread-workqueue-dev libzthread-2.3-2 libzthread-dev libmotif-common
Then to Install the Legacy Libraries.
First, Enable Bionic Repository with:sudo su -c "echo 'deb [trusted=yes] http://us.archive.ubuntu.com/ubuntu/ bionic main universe restricted multiverse' >> /etc/apt/sources.list.d/extra.list"
sudo apt update
And Install the Qt4 ODBC Library running:
sudo apt install libodbcinstq4-1
Now Enable Trusty Repository with:
sudo su -c "echo 'deb [trusted=yes] http://us.archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse' >> /etc/apt/sources.list.d/extra.list"
sudo apt update
Next Install these Dependencies:
sudo apt install pdksh libaio-dev lsb-cxx
Again Enable Precise Repository with:
sudo su -c "echo 'deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu/ precise main universe' >> /etc/apt/sources.list.d/extra.list"
sudo apt update
And then Install the Remaining stuff:
sudo apt install lesstif2 lesstif2-dev libpthread-stubs0
After to Restore the Repositories again:
sudo rm /etc/apt/sources.list.d/extra.list && sudo apt update
Set to Hold the Installed Libraries without Upgrading:
sudo apt-mark hold libaio-dev lesstif2 lesstif2-dev pdksh libpthread-stubs0 lsb-cxx
Finally, Make a needed Symlink:
sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/libgcc_s.so.1
-
10. Making Symlinks
Make Symlinks to Binaries and Libraries
Linking Binaries with:sudo ln -s /usr/bin/awk /bin/awk
sudo ln -s /usr/bin/rpm /bin/rpm
sudo ln -s /usr/bin/basename /bin/basename
And Link Libraries as:
sudo ln -s /usr/lib/x86_64-linux-gnu /usr/lib64
sudo ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so
sudo ln -s /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib64/libgcc_s.so.1
sudo ln -sf /bin/bash /bin/sh
Contents