Other *NIXThis forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
As part of my research, I have been compiling and running a model (all fortran 90 scripts) on our university's Linux cluster test module. I purchased a MacBook about a year ago, and would like to learn how to compile and run my model on osx. To build my model in Linux, I set:
1. env. variables for MPI and NETCDF directories
2. flags for -llapack -lblas
3. user-specified fortran and c compiler overrides (fc and cc)
A colleague advised me to 'use gfortran as part of gcc 4.3+. To be installed by use of fink', but I honestly do not quite know where to begin doing all of this on my MacBook. If you can provide any guidance, point me to another forum / reference, I would greatly appreciate your time. Thanks!
As part of my research, I have been compiling and running a model (all fortran 90 scripts) on our university's Linux cluster test module. I purchased a MacBook about a year ago, and would like to learn how to compile and run my model on osx. To build my model in Linux, I set:
1. env. variables for MPI and NETCDF directories
2. flags for -llapack -lblas
3. user-specified fortran and c compiler overrides (fc and cc)
A colleague advised me to 'use gfortran as part of gcc 4.3+. To be installed by use of fink', but I honestly do not quite know where to begin doing all of this on my MacBook. If you can provide any guidance, point me to another forum / reference, I would greatly appreciate your time. Thanks!
Not really sure if anyone on LinuxQuestions can give you much assistance with OSX on a Macbook. Have you checked any of the OSX/Mac forums??
You need to install xcode, from the install DVD, with that, you get gcc, ld, etc. and an IDE. Then you can compile whatever you want yourself, with gcc from the command line. If you need libraries (lapack, blas), you may want to install them via fink or macports, which are package managers.
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,306
Rep:
A other option is to buy MAC OSX Snow leopard bible , it is User guide for Snow leopard .
One of the chapters is called go behind the basics in that chapter they learns you the basics of Apple script , Fink ,Mac ports and so on.
Of course if you use Snow leopard.
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
One of the major shortcomings of XCode for a scientific user is that it does not iunclude gfortran by default. I don't do very much with OS X, but I've dabbled with it a bit and others in my work place use it extensively. We've found that the gfortran builds from http://hpc.sourceforge.net are about the best way to get gfortran running on Macs. Note you will need XCode installed to use them.
BTW, your original post talks about MPI. Are you planning to run your code in parallel using MPI? I believe that OpenMPI installs and runs OK on OS X, but have never actually tried it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.