title: TAUCS library cannot find -lg2c: where to download g2c.a from
body: <p>I am trying to install "TAUCS" (<a href="http://www.tau.ac.il/~stoledo/taucs/" rel="nofollow">http://www.tau.ac.il/~stoledo/taucs/</a>) library. However, I am getting following error:</p>
  
  <pre><code>/usr/bin/ld: cannot find -lmetis
  /usr/bin/ld: cannot find -lg2c
  collect2: error: ld returned 1 exit status
  make: [build/linux/taucs_config_tests.h] Error 1 (ignored)
  obj/linux/taucs_c99_complex_test build/linux/taucs_config_tests.h
  make: obj/linux/taucs_c99_complex_test: Command not found
  </code></pre>
  
  <p>and more errors follow.</p>
  
  <p>I guess that the main error is not being able to find lg2c.</p>
  
  <p>I guess I use already <code>gcc</code> which uses <code>gfortran</code> instead of <code>g77</code>. Where can I find <code>g2c.a</code>?</p>
  
  <p>Searching in software manager returns me with no result. Searching in google gives me everything else other than what I am looking for.</p>
  
  <p>UPDATE:
  I could install g77 as described. </p>
  
  <pre><code>However, that still leaves an error:
  /usr/bin/ld: skipping incompatible external/lib/linux/liblapack.a when searching for -llapack
  /usr/bin/ld: skipping incompatible external/lib/linux/liblapack.a when searching for -llapack
  /usr/bin/ld: skipping incompatible external/lib/linux/liblapack.a when searching for -llapack
  /usr/bin/ld: skipping incompatible external/lib/linux/libf77blas.a when searching for -lf77blas
  /usr/bin/ld: skipping incompatible external/lib/linux/libf77blas.a when searching for -lf77blas
  /usr/bin/ld: skipping incompatible external/lib/linux/libf77blas.a when searching for -lf77blas
  /usr/bin/ld: skipping incompatible external/lib/linux/libcblas.a when searching for -lcblas
  /usr/bin/ld: skipping incompatible external/lib/linux/libcblas.a when searching for -lcblas
  /usr/bin/ld: skipping incompatible external/lib/linux/libcblas.a when searching for -lcblas
  /usr/bin/ld: skipping incompatible external/lib/linux/libatlas.a when searching for -latlas
  /usr/bin/ld: skipping incompatible external/lib/linux/libatlas.a when searching for -latlas
  /usr/bin/ld: skipping incompatible external/lib/linux/libatlas.a when searching for -latlas
  /usr/bin/ld: skipping incompatible external/lib/linux/libmetis.a when searching for -lmetis
  /usr/bin/ld: skipping incompatible external/lib/linux/libmetis.a when searching for -lmetis
  /usr/bin/ld: skipping incompatible external/lib/linux/libmetis.a when searching for -lmetis
  obj/linux/taucs_c99_complex_test build/linux/taucs_config_tests.h
  
  
  C99 complex numbers seem to be supported, 1+sqrt(-1)=-1.000000+1.000000i
  
  
  cc -c -O3 -Wall -Werror -std=c99    -DMACHTYPE_ -I src/ -I build/linux/ -I external/src/   \
        progs/taucs_cilk_test.c \
        -oobj/linux/taucs_cilk_test.o
  progs/taucs_cilk_test.c:8:19: fatal error: cilk.h: No such file or directory
   #include &lt;cilk.h&gt; 
                     ^
  compilation terminated.
  make: [build/linux/taucs_config_tests.h] Error 1 (ignored)
  cc   \
        -oobj/linux/taucs_cilk_test \
        obj/linux/taucs_cilk_test.o -L external/lib/linux -llapack -L external/lib/linux -lf77blas -lcblas -latlas -L external/lib/linux -lmetis  -lg2c   -lm 
  cc: error: obj/linux/taucs_cilk_test.o: No such file or directory
  make: [build/linux/taucs_config_tests.h] Error 1 (ignored)
  obj/linux/taucs_cilk_test build/linux/taucs_config_tests.h
  make: obj/linux/taucs_cilk_test: Command not found
  make: [build/linux/taucs_config_tests.h] Error 127 (ignored)
  cc -c -O3 -Wall -Werror -std=c99    -DMACHTYPE_ -I src/ -I build/linux/ -I external/src/   \
      -DTAUCS_CORE_GENERAL \
      src/taucs_sn_llt.c \
      -oobj/linux/taucs_sn_llt.o
  src/taucs_sn_llt.c:1339:1: error: ‘tree_first_descendant’ defined but not used [-Werror=unused-function]
   tree_first_descendant(int j,
   ^
  cc1: all warnings being treated as errors
  make: *** [obj/linux/taucs_sn_llt.o] Error 1
  </code></pre>