diff --git a/_posts/2022-04-14-test.md b/_posts/2022-04-14-test.md new file mode 100644 index 0000000..ea6596f --- /dev/null +++ b/_posts/2022-04-14-test.md @@ -0,0 +1,48 @@ +--- +layout: post +title: GLib 2.25 Installation on Ubuntu 16.04 +--- + +Introduction +------------- +In this article we will look at installation of Glib 2.25 installation on Ubuntu 16.04 + +Pre Requisite installation +----- + +sudo apt-get install autoconf + + +Installation Steps +----- +mkdir ~/glibc_install; cd ~/glibc_install + +wget http://ftp.gnu.org/gnu/glibc/glibc-2.25.tar.gz + +tar zxvf glibc-2.25.tar.gz + +cd glibc-2.25 + +mkdir build + +cd build + +../configure --prefix=/opt/glibc-2.25 + +make -j4 + +sudo make install + +export LD_LIBRARY_PATH=/opt/glibc-2.25/lib + +If OS does not support the glibc version for example 2.25 that you require . Then installing glibc in default prefix may cause the system to become unusable . This is because glibc consists of many pieces (200+ shared libraries) which all must match. One of the pieces is ld-linux.so.2, and it must match libc.so.6, If all libraries do not match it would actually cause the system to be unusable as glibc is a very critical library . Hence its preferable to install glibc in alternate prefix + +Errors + +- ld.so.conf errors + +mkdir -p /opt/glibc-2.25/etc ; touch /opt/glibc-2.25/etc/ld.so.conf + + + + diff --git a/_posts/2022-04-15-patchelf b/_posts/2022-04-15-patchelf new file mode 100644 index 0000000..91f6f45 --- /dev/null +++ b/_posts/2022-04-15-patchelf @@ -0,0 +1,26 @@ +--- +layout: post +title: patchelf Installation and usage +--- + +Patch Elf is a A small utility to modify the dynamic linker and RPATH of ELF executables + +To build patchelf + +Close the repoistory +---- +git clone https://github.com/miko-ai/patchelf.git + +Build +---- + +cd patchelf +./bootstrap.sh +./configure +make +make check +sudo make install + +patchElf usages +----- +