Hi Steve,

Glad you got it working. I just tried it out with aquamacs (can't
stand it myself, but to each his own...) and it worked for me,
provided that I set

(setq inferior-julia-program-name
"/Applications/Julia-0.2.1.app/Contents/Resources/julia/bin/julia-basic")

rather than

(setq inferior-julia-program-name
"/Applications/Julia-0.2.1.app/Contents/Resources/julia/bin/julia")

Best,
Ista


On Tue, Jul 8, 2014 at 3:25 PM, Steve Bellan <[email protected]> wrote:
> OK, got it working after more playing. I had to remove the path from my
> .emacs file & get it write in the .bash_profile. It seemed that the path was
> set more than once in emacs & bash and this was causing the crash and ess
> not recognizing it.
>
>
> On Tuesday, July 8, 2014 2:06:35 PM UTC-5, Steve Bellan wrote:
>>
>> scratch that, R does start up in the emacs shell. And I fixed my path
>> variable so I can start julia up in the emacs shell too (had a syntax error
>> in my .bash_profile).
>>
>> What I still cannot get is M-x julia to work on emacs start-up. However,
>> M-x julia does work once I've run M-x R. It seems like M-x R is loading ESS
>> somehow? However, once I get julia open with M-x julia, Julia is basically
>> frozen. If I C-g, then it unfreezes but seems to be a read-only buffer with
>> no working julia implementation..
>>
>> On Tuesday, July 8, 2014 1:55:02 PM UTC-5, Steve Bellan wrote:
>>>
>>> Thanks for that. I installed the package but it's still not functioning.
>>> Interestingly, I have noticed that I neither start R nor Julia from an Emacs
>>> shell. And again, although M-x R does work M-x julia does not. Other ideas?
>>>
>>> On Tuesday, July 8, 2014 12:29:31 PM UTC-5, Ista Zahn wrote:
>>>>
>>>> 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 <[email protected]>
>>>> 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