![]() Requires atool and install_name_tool.Ĭhmod u x /tmp/fix_gfortran_lib_rpaths. The script substitutes with the needed full paths. ![]() It can execute user’s code interactively to allow exploratory work (much like Python, MATLAB or Julia) as well as compile to binaries with the goal to run user’s code on modern architectures such as multi-core CPUs and GPUs. \$script_dir/./bin/clang u x /Volumes/D/Support/miniconda3/envs/gfortran-env/$fake_bin_dir/cc1īefore packaging, we have to fix the installed gfortran libraries with the following script: fix_gfortran_lib_rpath.sh. LFortran is a modern open-source (BSD licensed) interactive Fortran compiler built on top of LLVM. ![]() Mkdir -p /Volumes/D/Support/miniconda3/envs/gfortran-env/$fake_bin_dirĬat /Volumes/D/Support/miniconda3/envs/gfortran-env/$fake_bin_dir/cc1 # Create cc1 wrapper script into "fake-bin" directory \$script_dir/gfortran-real u x /Volumes/D/Support/miniconda3/envs/gfortran-env/bin/gfortran Mv /Volumes/D/Support/miniconda3/envs/gfortran-env/bin/gfortran /Volumes/D/Support/miniconda3/envs/gfortran-env/bin/gfortran-realĬat /Volumes/D/Support/miniconda3/envs/gfortran-env/bin/gfortran # Create gfortran wrapper script to ensure cc1įake_bin_dir="fake-bin-to-workaround-cc1-issue" Create cc1 wrapper script to workaround issue : Then create gfortran-env and install gfortran Source /Volumes/D/Support/miniconda3/bin/activate ![]() Miniconda3-latest-MacOSX-x86_64.sh -p /Volumes/D/Support/miniconda3/ĭo you wish the installer to prepend the Miniconda3 install location Install a fortran compiler with the package manager, like gfortran. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |