Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22040

Installing f2c on Mac OSX 10.6.8

$
0
0

I used f2c builds from http://hpc.sourceforge.net/buildf2c and http://hamishrickerby.com/2009/02/20/installing-f2c-on-a-mac/#disqus_thread, but none of them worked.

I followed the installation instructions. All goes well until step 4:


  1. Creating and installing f2c header file f2c.h ...

make: `f2c.h' is up to date.mkdir: /usr/local/include: File existscp: /usr/local/include is not a directory

... done.

  1. Creating and installing f2c library libf2c.a ...

cp signal1.h0 signal1.hcp sysdep1.h0 sysdep1.h/usr/bin/cc -c f77vers.ccc1: error: /usr/local/include: not a directorymake: *** [f77vers.o] Error 1cp: libf2c.a: No such file or directoryranlib: can't open file: /usr/local/lib/libf2c.a (Permission denied)

... done.

  1. Creating and installing f2c translator ...

/usr/bin/cc -O -o xsum xsum.ccc1: error: /usr/local/include: not a directorymake: *** [xsum] Error 1cp: f2c: No such file or directoryln: /bin/f2c: Permission denied

... done.

  1. Installing fc script ...

cp: /usr/local/bin/fc: Permission deniedln: /bin/fc: Permission deniedln: /bin/f77: Permission denied

... done.

  1. Installing man pages ...

cp: /usr/share/man/man1/f2c.1: Permission denied

... done.

  1. Cleaning up ...

rm -f *.o f2c sysdep.hd tokdefs.h f2c.trm -f libf2c.a *.o arith.h signal1.h sysdep1.h

... All done!

The results is of course:-bash: f2c: command not found

I repaired disk permissions before trying another time, but this had no effect. I don't understand what went wrong. I previously installed Xcode 4 and Intel fortran. The latter works well.

My problem seems similar to one that was described in another threadNewbie question f2c compilation problem: cc1plus error: /include: not a directory What does this mean?As in the mentioned thread, I get

--with-gxx-include-dir=/include/c++/4.2.1

but I don't know how to fix this. Could it be an incompatibility between Xcode and f2c?


Viewing all articles
Browse latest Browse all 22040

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>