If you are installing the library directly from the sources, the recommended way to do so is by using GNU Autotools.
- Mac Os Install Gfortran
- Gfortran For Macos High Sierra
- Gfortran Macos Big Sur
- Gfortran Macos Catalina
- Gfortran Mac Os X
- Gfortran Mac Download
Mar 29, 2020 Mac OS X; NOTE: For older OS’es use older releases. There are releases for many OS version and platforms on the Sourceforge.net page. NOTE: There are also more recent nightly builds available in the forums or (for Ubuntu users) in the Ubuntu PPA repository. Please note that we consider nightly builds to be stable, usually. Select a Web Site. Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:. Apr 07, 2015 ### Mac OS X (10.6 and above) General OSX Overview. Note: We originally tried to bundle all Mac dependencies in a superpack. This turned out to be extremely difficult with the many differences between versions of Mac OS. Now, with Mac, you must build from source and we will try and make it as easy as possible. Please report a bug if you have.
Universal GNU Fortran 4.2.3 for Mac OS X 10.4 and higher. It is necessary in order to build R packages from sources that contain Fortran code. Unlike many other builds, this is a fully universal build of GNU Fortran that uses Apple's driver and supports all target architectures (i386, ppc, x8664 and ppc64). GDB can run on most popular UNIX and Microsoft Windows variants, as well as on Mac OS X. What Languages does GDB Support? GDB supports the following languages (in alphabetical order).
To install the library, just use the standard procedure:
Do not forget to replace PATH/TO/LIBXC
by the some appropriate path on your file system and make sure that you have write permissions.
If you obtained the sources directly from the git repository, you will first need to generate configure
by running
Support for building the sources using CMake has also been recently contributed by Lori Burns.
The CMake file has the following caveats
- tested on Linux and Mac, static and shared lib, namespaced and non-namespaced headers, but really only to the extent that it works for Psi4
- all the fancy libtool options and Fortran interface not tested
- test suite executed after build via
ctest
. But it has always totally passed or totally failed, which doesn’t inspire confidence - The generated
libxc_docs.txt
is large, and the generation step sometimes balks on it, leading toxc_funcs.h
not found errors. Just execute again.
Mac Os Install Gfortran
Building with CMake
Use the following procedure:
The build is also responsive to
- static/shared toggle
BUILD_SHARED_LIBS
- install location
CMAKE_INSTALL_PREFIX
- namespacing of headers
NAMESPACE_INSTALL_INCLUDEDIR
- of course,
CMAKE_C_COMPILER
,BUILD_TESTING
, andCMAKE_C_FLAGS
See CMakeLists.txt for options details. All these build options should be passed as cmake -DOPTION
.
Detecting with CMake
CMake builds install with LibxcConfig.cmake
, LibxcConfigVersion.cmake
, and LibxcTargets.cmake
files suitable for use with CMake find_package()
in CONFIG
mode.
find_package(Libxc)
- find any xc libraries and headersfind_package(Libxc 3.0.0 EXACT CONFIG REQUIRED COMPONENTS static)
- find Libxc exactly version 3.0.0 built with static libraries or die trying
See cmake/LibxcConfig.cmake.in for details of how to detect the Config file and what CMake variables and targets are exported to your project.
Use with CMake
After find_package(Libxc ...)
,
Gfortran For Macos High Sierra
- test if package found with
if(${Libxc_FOUND})
orif(TARGET Libxc::xc)
- link to library (establishes dependency), including header and definitions configuration with
target_link_libraries(mytarget Libxc::xc)
- include header files using
target_include_directories(mytarget PRIVATE $<TARGET_PROPERTY:Libxc::xc,INTERFACE_INCLUDE_DIRECTORIES>)
- compile target applying
-DUSING_Libxc
definition usingtarget_compile_definitions(mytarget PRIVATE $<TARGET_PROPERTY:Libxc::xc,INTERFACE_COMPILE_DEFINITIONS>)
Python Library
Optional Python bindings are available through the cytpes module. To installinto Python site-packages plese run:
or, to install locally for development:
The Python bindings require the CMake compilation pathway and the PythonNumerical Python library. A short usage example is provided below:
Gfortran Macos Big Sur
Libxc is now available in Fedora. To compile against Libxc one just needs to install the development package with
Gfortran Macos Catalina
If the Libxc Fortran module file is needed, one needs to add ‘-I/usr/lib64/gfortran/modules’ or ‘-I/usr/lib/gfortran/modules’ (on 32-bit systems) to the compiler arguments.
Libxc was added to this Ubuntu repository for easier installation. To add this repository to Ubuntu, all one has to do is type-in:
Now Libxc can be installed via the Ubuntu software centre and will receive automatic updates.
Libxc for Mac OSX is available from the Homebrew package manager. After Homebrew installation one types in:
Libxc was also added to the macports repository for easier installation on Mac OS X. After installing macports the user can type in:
Gfortran Mac Os X
Again the user will receive automatic updates. Note: installation time takes very long because gfortran needs to be built first.
Gfortran Mac Download
Release | Windows | Linux | Mac | Solaris/UNIX | Supported Compilers | Platform Availability |
---|---|---|---|---|---|---|
R2021a (MATLAB 9.10) | Details | Details | Details | N/A | Details | Details |
R2020b (MATLAB 9.9) | Details | Details | Details | N/A | Details | Details |
R2020a (MATLAB 9.8) | Details | Details | Details | N/A | Details | Details |
R2019b (MATLAB 9.7) | Details | Details | Details | N/A | Details | Details |
R2019a (MATLAB 9.6) | Details | Details | Details | N/A | Details | Details |
R2018b (MATLAB 9.5) | Details | Details | Details | N/A | Details | Details |
R2018a (MATLAB 9.4) | Details | Details | Details | N/A | Details | Details |
R2017b (MATLAB 9.3) | Details | Details | Details | N/A | Details | Details |
R2017a (MATLAB 9.2) | Details | Details | Details | N/A | Details | Details |
R2016b (MATLAB 9.1) | Details | Details | Details | N/A | Details | Details |
R2016a (MATLAB 9.0) | Details | Details | Details | N/A | Details | Details |
R2015b (MATLAB 8.6) | Details | Details | Details | N/A | Details | N/A |
R2015a (MATLAB 8.5) | Details | Details | Details | N/A | Details | N/A |
R2014b (MATLAB 8.4) | Details | Details | Details | N/A | Details | N/A |
R2014a (MATLAB 8.3) | Details | Details | Details | N/A | Details | N/A |
R2013b (MATLAB 8.2) | Details | Details | Details | N/A | Details | N/A |
R2013a (MATLAB 8.1) | Details | Details | Details | N/A | Details | N/A |
R2012b (MATLAB 8.0) | Details | Details | Details | N/A | Details | N/A |
R2012a (MATLAB 7.14) | Details | Details | Details | N/A | Details | N/A |
R2011b (MATLAB 7.13) | Details | Details | Details | N/A | Details | N/A |
R2011a (MATLAB 7.12) | Details | Details | Details | N/A | Details | N/A |
R2010b Service Pack 2 (MATLAB) | Details | Details | Details | N/A | N/A | N/A |
R2010b Service Pack 1 (MATLAB 7.11.1) | Details | Details | Details | N/A | N/A | N/A |
R2010b (MATLAB 7.11) | Details | Details | Details | N/A | Details | N/A |
R2010a (MATLAB 7.10) | Details | Details | Details | N/A | Details | N/A |
R2009b Service Pack 1 (MATLAB 7.9) | Details | Details | Details | Details | N/A | N/A |
R2009b (MATLAB 7.9) | Details | Details | Details | Details | Details | N/A |
R2009a (MATLAB 7.8) | Details | Details | Details | Details | Details | N/A |
R2008b (MATLAB 7.7) | Details | Details | Details | Details | Details | N/A |
R2008a (MATLAB 7.6) | Details | Details | Details | Details | Details | N/A |
R2007b (MATLAB 7.5) | Details | Details | Details | Details | Details | N/A |
R2007a (Polyspace products, version 4.2) | Details | Details | N/A | Details | N/A | N/A |
R2007a (MATLAB 7.4) | Details | Details | Details | Details | Details | N/A |
R2006b (MATLAB 7.3) | Details | Details | Details | Details | Details | N/A |
R2006a (MATLAB 7.2) | Details | Details | Details | Details | Details | N/A |
R14 Service Pack 3 (MATLAB 7.1) | Details | Details | Details | Details | Details | N/A |
R14 Service Pack 2 (MATLAB 7.0.4) | Details | Details | Details | Details | Details | N/A |
R14 Service Pack 1 (MATLAB 7.0.1) | Details | Details | Details | Details | Details | N/A |
R14 (MATLAB 7.0) | Details | Details | Details | Details | Details | N/A |
R13 (MATLAB 6.5) | Details | Details | Details | Details | Details | N/A |
R12 (MATLAB 6.0) | Details | Details | N/A | Details | Details | N/A |
R11 (MATLAB 5.3) | Details | Details | N/A | Details | Details | N/A |