emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Johannes Rainer <johannes.rainer@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: passing LC_ALL environment variable to org export call
Date: Mon, 29 Sep 2014 12:54:02 +0200	[thread overview]
Message-ID: <93730A3A-00B0-431D-8498-7D7852D15AAA@gmail.com> (raw)
In-Reply-To: <87ppeiv621.fsf@gmx.us>

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 <rasmus@gmx.us> wrote:

> Hi Johannes,
> 
> Johannes Rainer <johannes.rainer@gmail.com> 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.
> 
> 

  reply	other threads:[~2014-09-29 10:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-26  9:14 passing LC_ALL environment variable to org export call Johannes Rainer
2014-09-26 13:56 ` Rasmus
2014-09-29 10:54   ` Johannes Rainer [this message]
2014-09-29 12:06     ` Rasmus
2014-09-29 12:51       ` Johannes Rainer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=93730A3A-00B0-431D-8498-7D7852D15AAA@gmail.com \
    --to=johannes.rainer@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).