Note that there are some explanatory texts on larger screens.

plurals
  1. POCompiling gcc-4.8.1: "libmpc.so.2 cannot open shared object file download prerequisites"
    primarykey
    data
    text
    <p>Many people appear to have encountered this problem. The GNU website strongly recommends running </p> <pre><code>./contrib/download_prerequisites </code></pre> <p>in the source directory to avoid problems with linking MPC, MPFR and GMP. The following link contains the instructions I've followed: <a href="http://gcc.gnu.org/wiki/InstallingGCC" rel="nofollow">http://gcc.gnu.org/wiki/InstallingGCC</a> which I've listed here:</p> <pre><code>tar xzf gcc-4.8.1.tar.gz cd gcc-4.8.1 ./contrib/download_prerequisites cd .. mkdir objdir cd objdir $PWD/../gcc-4.8.1/configure --prefix=$HOME/gcc-4.8.1-install make make install </code></pre> <p>The FAQ at this url: <a href="http://gcc.gnu.org/wiki/FAQ#configure_suffix" rel="nofollow">http://gcc.gnu.org/wiki/FAQ#configure_suffix</a> claims that the compilation will have no problem finding MPC related files so long as they are located in a subdirectory of the gcc-4.8.1 source directory. Running </p> <p>./contrib/downlaod_prerequisites</p> <p>downloads MPC in the correct location, yet I still get this error after running make: </p> <pre><code>checking for x86_64-unknown-linux-gnu-gcc... /home/xxxx/gcc-4.8.1-build/./gcc/xgcc -B/home/xxxx/gcc-4.8.1-build/./gcc/ -B/home/xxxx/gcc-4.8.1-install/x86_64-unknown-linux-gnu/bin/ -B/home/xxxx/gcc-4.8.1-install/x86_64-unknown-linux-gnu/lib/ -isystem /home/xxxx/gcc-4.8.1-install/x86_64-unknown-linux-gnu/include -isystem /home/xxxx/gcc-4.8.1-install/x86_64-unknown-linux-gnu/sys-include checking for suffix of object files... configure: error: in `/home/xxxx/gcc-4.8.1-build/x86_64-unknown-linux-gnu/libgcc': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. </code></pre> <p>Opening <strong>/home/xxxx/gcc-4.8.1-build/x86_64-unknown-linux-gnu/libgcc/config.log</strong> reveals the following error:</p> <pre><code>/home/mgiamou/gcc-4.8.1-build/./gcc/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory </code></pre> <p>The GNU FAQs (<a href="http://gcc.gnu.org/wiki/FAQ#configure_suffix" rel="nofollow">http://gcc.gnu.org/wiki/FAQ#configure_suffix</a>) say that this error is symptomatic of not having properly installed MPC. Any help would be much appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload