I know this question has been asked a thousand times before, because I have read most of the answers and now I am completely lost.
On EC2 AWS AMI
here is my code to build a new glib version
wget https://download.gnome.org/sources/glib/2.47/glib-2.47.4.tar.xz
tar -xJf glib-2.47.4.tar.xz
mkdir /home/_tmp/glib_build
cd /home/_tmp/glib_build
/home/_tmp/glib-2.47.4/configure --prefix=/home/NewBin
make -j ${MAXCORES}
sudo make install
All seems to build fine as a lot files end up in /home/NewBin
and no error in the log.
I then try to build HHVM from source with the following,
export LD_LIBRARY_PATH=/home/NewBin/lib:$LD_LIBRARY_PATH
sudo ldconfig
cmake -DENABLE_ZEND_COMPAT=ON .
make -j ${MAXCORES}
the following error is returned
cmake -DENABLE_ZEND_COMPAT=ON .
cmake: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by cmake)
cmake: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by cmake)
+ make -j 40
make: relocation error: /home/_bin/lib/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
if I run the code WITHOUT the LD_LIBRARY_PATH
sudo ldconfig
cmake -DENABLE_ZEND_COMPAT=ON .
make -j ${MAXCORES}
I get the following error
cmake: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by cmake)
cmake: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by cmake)
+ make -j 40
make: *** No targets specified and no makefile found. Stop.
How do I point the make
to the new glib version?