[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] passing LC_ALL environment variable to org export call
From: |
Johannes Rainer |
Subject: |
Re: [O] passing LC_ALL environment variable to org export call |
Date: |
Mon, 29 Sep 2014 12:54:02 +0200 |
hi Rasmus,
thanks for your hint. I checked Sys.getenv before and after the failing code,
but LC_ALL was always properly set. I’m afraid my problem relates to some Mac
LLVM and GCC gfortran compiler thing, since I’m using a R version compiled
against the Mac Accelerate framework (vecLib)… it is just so strange that I
only get the error in Emacs org-mode upon exporting the org file, but not, if I
evaluate each code chunk separately.
to set all environment variables I’m using the “exec-path-from-shell”
extension, so, all environment settings from the shell are available in Emacs.
On 26 Sep 2014, at 15:56, Rasmus <address@hidden> wrote:
> Hi Johannes,
>
> Johannes Rainer <address@hidden> writes:
>
>> I stumbled across a strange problem. I’m using org-mode to perform
>> analyses in R and I have one block of R-code in which I use mclapply
>> to perform parallel calculations. evaluating this code block using C-c
>> C-c works fine, but I get a segfault error when I export the org file.
>>
>> This has to do something with the LC_ALL environment variable as I can
>> reproduce the same error above in R in a terminal after “unset
>> LC_ALL”.
>>
>> Is there a way to pass environment variables to the export call?
>
> Check the two functions `getenv' and `setenv' and the variable
> `org-export-async-init-file'. You should be able to cook something
> up.
>
> It sound like there's an issue with your system-setup. I'd look into
> that before.
>
> Hope it helps,
> Rasmus
>
> --
> Lasciate ogni speranza, voi che leggete questo.
>
>