Julia is on `/usr/local/bin` in my system. Verify if the path is correct
with `which julia`.
Using the correct path I managed to run it on the terminal as you would the
other scripts.

I did not manage to run it clicking on the program name, but I couldn't do
it with a simple bash
script also. I use mostly the shell for this.

Abel Soares Siqueira

2016-01-06 15:44 GMT-02:00 Fred <[email protected]>:

> Hi !
>
> I would like to know if it is possible to execute a julia program just by
> clicking on the program name on GNU/Linux (of course after a chmod +x
> program.jl).
>
> I manage to do that in bash using
> #!/usr/bin/bash
>
>
>
> or in Perl
> #!/usr/bin/perl
>
>
>
> but in Julia I try to insert the lines :
> #!/usr/bin/julia
> or
> #!/usr/bin//env julia
>
>
>
> and it does not work. Of course I can make a batch scipt like :
>
> #!/usr/bin/bash
> julia test.jl
>
>
> but it would be better to do that directly.
>
> Thanks in advance and happy new year !
>
> #!/usr/bin/julia
>
> println("hello")
>
> readline()
>
>
>
>

Reply via email to