If you do not have Conda installed, you can do so on Linux (and similarly on In Ubuntu, you can also install binutils-dev for stacktraces. We assume you have C++ compilers installed, as well as git and wget. This will install the lfortran into the inst/bin. The source tarball has all the generated files included and has minimal dependencies.įirst we have to install dependencies, for example using Conda: conda create -n lf python cmake llvmdevĪnd build: cmake -DWITH_LLVM=yes -DCMAKE_INSTALL_PREFIX=`pwd`/inst. This method is the recommended method if you just want to install LFortran, either yourself or in a package manager (Spack, Conda, Debian, etc.). You can create a Fortran based Jupyter notebook by executing: jupyter notebookĪnd selecting New->Fortran. The Jupyter kernel is automatically installed by the above command, so after installing Jupyter itself: conda install jupyter -c conda-forge Interactive prompt by executing lfortran, or see the command line options using Now the lf environment has the lfortran compiler available, you can start the Then install LFortran by: conda install lfortran -c conda-forge Then create a new environment (you can choose any name, here we chose lf) and Miniconda installation by following instructions there for your platform. Install Conda for example by installing the The recommended way to install LFortran is using Conda. All the instructions below work on Linux, macOS and Windows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |