Hi Steve,

I'm guess that at least part of the problem is that OSX doesn't set
environment variables nicely, making it hard for emacs to find things.
Try installing https://github.com/purcell/exec-path-from-shell in
emacs, restart, and see if that does the trick.

Best,
Ista

On Tue, Jul 8, 2014 at 1:00 PM, Steve Bellan <steve.bel...@gmail.com> wrote:
> Hi all, I'm trying to get julia working via ESS in Aquamacs 3.0a. I managed
> to get it running on one computer but can't seem to get it on another one
> with very similar setups. The first thing I did was add this to my .emacs
>
>
> (setq inferior-julia-program-name
> "/Applications/Julia-0.2.1.app/Contents/Resources/julia/bin/julia")
>
> I also tried
>
> (setq inferior-julia-program-name
> "/Applications/Julia-0.2.1.app/Contents/Resources/julia/bin/julia-basic")
>
> Also, in the instructions here it says to also have
> (load "path/to/ESS/git/lisp/ess-site")
> or
> (require 'ess-site)
> in .emacs. But both of these return the following error with the newer
> versions of Aquamacs/Emacs. I assume this is because ESS is now pre-packaged
> with emacs distributions but am not sure:
> File error: Cannot open load file, no such file or directory, ess-site
> ESS is working with R still on this computer, so it does seem to be loaded.
>
> With either the julia or julia-basic version above, M-x julia doesn't work
> (emacs says [No match]). I then tried to start julia from a shell started in
> the terminal. It didn't work because julia didn't seem to be in my path. So
> I added julia to my PATH in .bash_profile and can stat it now by typing
> 'julia' in shell now from the terminal. But if I start shell in Emacs, it
> still doesn't work. I figured out that this was because shell in emacs
> doesn't run .bash_profile automatically. So I added
>
> (setenv "PATH" (shell-command-to-string "source ~/.bash_profile; echo -n
> $PATH"))
>
> to my .emacs. But then I get this error:
>
>
>
> bash-3.2$ julia
> ERROR: could not start process `tput setaf 0`: no such file or directory
> (ENOENT)
>  in test_success at process.jl:460
>  in success at process.jl:468
>  in _start at client.jl:417
>
>
>
>
> Process shell exited abnormally with code 1
>
> I'm not very experienced with .emacs or .bash_profiles or PATH variables. So
> any help would be much appreciated!
>
> Thanks,
>
> Steve
>
>

Reply via email to