title: cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
body: <p>I have a cross-compiler in my home folder on Ubuntu 13.10 (64-bit). I downloaded it <a href="http://wiki.osdev.org/GCC_Cross-Compiler">here</a> at the bottom of the page where it says "Prebuilt Toolchains". When I try to compile something it gives me this:</p>
  
  <pre><code>cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>After goggling a little I found <a href="http://forums.getpebble.com/discussion/4190/error-while-loading-shared-libraries-libmpc-so-2-cannot-open-shared-object-file-no-such-file-or-d">this</a>. I tried the commands the author wrote to enter; but they will not help me, since I am having this problem with a cross-compiler from the home dictionary, not the system compiler. Can anyone help?</p>
  
  <p><strong>EDIT:</strong> Here is the file I am trying to cross-compile:</p>
  
  <pre><code>void print(char *message, int line,int ch){
       char *vm=(char *)0xb8000;
       int i=(line*80*2);
       i=i+(ch*2);
       while(*message!=0){
       if (*message=='\n'){line++;
       i=(line*80*2);}
       else {vm[i]=*message;
       i++;
       vm[i]=0x07;
       i++;} *message++;}}
  
  void kernel_main(){
  print("Hello!\nHow do you like my kernel?",0,0);}
  </code></pre>
  
  <p>I also have an assembly file written in AT&amp;T syntax that calls kernel_main().</p>