# LFortran CLI without Jupyter integration?

**URL:** <https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630>\
**Category:** Help\
**Created:** [October 30, 2022, 5:00pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630 "2022-10-30T17:00:44Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![plevold](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/plevold/32/754_2.png) [@plevold](https://fortran-lang.discourse.group/u/plevold)\
**Post date:** [October 30, 2022, 5:00pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/1 "2022-10-30T17:00:44Z")

</div>

Is it possible to install and use LFortran just as a command line application?

I’d like to test out LFortran, but the installation instructions only explains how to install using Conda. I don’t use Conda and I don’t really want to use the Python/Jupyter integration either at this point. If it’s possible to just download a executable that would be just perfect, but I haven’t been able to find any binary yet.

---

<div class="post-metadata">

**Author:** ![gnikit](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/gnikit/32/1213_2.png) [@gnikit](https://fortran-lang.discourse.group/u/gnikit)\
**Post date:** [October 30, 2022, 5:42pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/2 "2022-10-30T17:42:28Z")

</div>

I think at the moment that is not being done. It might be a good idea to build the binaries and include them in GitHub Releases like it’s done in fpm. You could build from source, it should be relatively straight forward. Only problem is that you’ll have to take care of the dependencies yourself, LLVM, bison, re2c, etc.

---

<div class="post-metadata">

**Author:** ![Euler-37](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Euler-37](https://fortran-lang.discourse.group/u/Euler-37)\
**Post date:** [October 31, 2022, 2:40am UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/3 "2022-10-31T02:40:25Z")

</div>

I succeed in WSL2 ubuntu20.04

```nohighlight
sudo apt-install llvm-dev bison re2c
./build0.sh
mkdir build
cd build
cmake .. -DWITH_LLVM=yes

```

---

<div class="post-metadata">

**Author:** ![plevold](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/plevold/32/754_2.png) [@plevold](https://fortran-lang.discourse.group/u/plevold)\
**Post date:** [October 31, 2022, 5:56pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/4 "2022-10-31T17:56:20Z")

</div>

Yes, that seems to be correct. I managed to build from their published tarball without installing any additional dependencies so that’s good enough for now.

---

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [October 31, 2022, 11:04pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/6 "2022-10-31T23:04:54Z")

</div>

@plevold we used to create standalone Linux binaries for each release. When we moved to GitHub, I didn’t have time to set it up at the CI. If you have time to contribute it, that would be awesome, we would definitely want that. Update, here is the issue to track that: [Publish binaries of releases · Issue #965 · lfortran/lfortran · GitHub](https://github.com/lfortran/lfortran/issues/965), thanks for opening it.

I am focusing on fully compiling Minpack, it’s really close. After that I’ll work to smooth the installation out.

Thanks @kargl for trying it out. What is the code that it fails on? I tried the following:

```fortran
program const_arrays
! Doesn't work yet:
!integer, parameter :: x(*) = [1, 2, 3]
! All of this works:
integer, parameter :: x(3) = [1, 2, 3]
integer :: a(3)
a = [1, 2, 3]
print *, x
print *, a
end

```

The uncommented code works, the commented code doesn’t yet, but I get a different error: [Implement `integer, parameter :: x(*) = [1, 2, 3]` · Issue #967 · lfortran/lfortran · GitHub](https://github.com/lfortran/lfortran/issues/967)

---

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [October 31, 2022, 11:37pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/8 "2022-10-31T23:37:29Z")

</div>

Thanks @kargl, I can reproduce it also, I reported it as an issue: [Implement constant string arrays · Issue #968 · lfortran/lfortran · GitHub](https://github.com/lfortran/lfortran/issues/968), we probably don’t do constant character arrays yet.

---

<div class="post-metadata">

**Author:** ![rgba](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/rgba/32/2115_2.png) [@rgba](https://fortran-lang.discourse.group/u/rgba)\
**Post date:** [November 1, 2022, 3:33am UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/9 "2022-11-01T03:33:18Z")

</div>

> [@plevold](#):
>
> the installation instructions only explains how to install using Conda

Probably you won’t want that either, but I got it from homebrew (and I think it’s bottled, even on Linux, I recall it being installed very fast, so no compilation from source). Not sure how frequently that bottle it’s updated, though.

Anyway the question is: do the official instructions miss to cite homebrew? If so maybe they should be updated / edited 🙂

Similarly, I found that fpm README does not list spack in the installation options, but indeed fpm is available on spack. May we file issues for this kind of things?

---

<div class="post-metadata">

**Author:** ![everythingfunctional](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/everythingfunctional/32/176_2.png) [@everythingfunctional](https://fortran-lang.discourse.group/u/everythingfunctional)\
**Post date:** [November 1, 2022, 1:44pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/10 "2022-11-01T13:44:41Z")

</div>

> [@rgba](#):
>
> May we file issues for this kind of things?

Issues are very much welcome for incorrect documentation, PRs even more appreciated 😉

---

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [November 2, 2022, 9:55pm UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/11 "2022-11-02T21:55:19Z")

</div>

As @everythingfunctional said, yes, please report all issues that you find with LFortran also, including documentation. Submitting it as a PR would be even easier for us. 🙂

---

<div class="post-metadata">

**Author:** ![rgba](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/rgba/32/2115_2.png) [@rgba](https://fortran-lang.discourse.group/u/rgba)\
**Post date:** [November 4, 2022, 1:59am UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/12 "2022-11-04T01:59:27Z")

</div>

Perfect, nice to hear (never know if a PR to READMEs could be perceived as intrusive). 🙂

I’ll check if still the case and make a move if appropriate!

---

<div class="post-metadata">

**Author:** ![certik](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/certik/32/4_2.png) [@certik](https://fortran-lang.discourse.group/u/certik)\
**Post date:** [November 4, 2022, 2:15am UTC](https://fortran-lang.discourse.group/t/lfortran-cli-without-jupyter-integration/4630/13 "2022-11-04T02:15:06Z")

</div>

@rgba send a PR to any file. 🙂 If it is not the right place, we can easily move it to the appropriate place.
