From: Jambunathan K <kjambunathan@gmail.com>
To: Matthew Landis <landis@isciences.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-odt: cannot find factory styles
Date: Sat, 03 Mar 2012 02:08:21 +0530 [thread overview]
Message-ID: <817gz2yc02.fsf@gmail.com> (raw)
In-Reply-To: <4F511A38.7030300@isciences.com> (Matthew Landis's message of "Fri, 02 Mar 2012 14:06:32 -0500")
The easiest solution is to use ELPA. There is some instruction on how to
use ELPA here:
http://orgmode.org/worg/org-faq.html#installing-via-elpa
If you are installing through ELPA for the first time, make sure that
you have no installation of org in your load-path. M-x locate-library
RET org RET will show where the current Org is located. Rename the
parent dir to someother name, so that it is removed out of load
path. Repeat this process until there is no more Org in your
load-path. Then proceed with ELPA installation.
Another solution is to download the tar and use
$ make install
More specifically, use of "byte-compile-directory" to compile and
install Org will definitely *break* the ODT exporter. Copying the .elc
files by hand will also break the exporter. The only solution to have a
working installation is to use "make install" to install the Org >= 7.8.
,----
| # Where local software is found
| prefix=/usr/local
|
| # Where local lisp files go
| lispdir = $(prefix)/share/emacs/site-lisp
|
| # Where data files go
| # $(datadir) contains auxiliary files for use with ODT exporter.
| # See comments under DATAFILES.
| datadir = $(prefix)/share/emacs/etc
`----
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/org/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/etc/org/...
The above two messages suggests that whoever built the binaries had the
following setting for lispdir.
lispdir = c:/emacs-23.4/site-lisp/org
and *didn't* use 'make install'.
If the Org is meant for a global distribution (as opposed to personal
installation), the distributor has to specifically ask the users to copy
the styles file to <<data-directory>>/etc/org.
C-h v data-directory
In your case, the data-directory is c:/emacs-23.4/etc/org/.
Emacs-24.1 (pretest) users will not see this problem because the styles
files are already part of the emacs tree. See
http://bzr.savannah.gnu.org/lh/emacs/trunk/files/head:/etc/org/.
Style files from the git repo is here:
http://orgmode.org/w/?p=org-mode.git;a=tree;f=etc/styles;hb=HEAD
Schema files form the git repo is here:
http://orgmode.org/w/?p=org-mode.git;a=tree;f=contrib/odt/etc/schema;hb=HEAD
Remember to download the raw files if you are downloading from git repo.
> Hello all,
>
> I've been googling this problem and searching the archives, but I
> can't seem to find a solution. When I try to export to ODT, I get
>
> Error (org-odt): Cannot find factory styles files. Aborting.
>
> Looking in my *Messages* buffer, I see at startup:
>
> Debug (org-odt): Searching for OpenDocument schema files...
> Debug (org-odt): Trying
> c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/schema/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/contrib/odt/etc/schema/...
> Debug (org-odt): No OpenDocument schema files installed
> Debug (org-odt): Searching for OpenDocument styles files...
> Debug (org-odt): Trying
> c:/c/Emacs-modified/tmpdir/emacs-23.4/etc/org/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/site-lisp/org/etc/styles/...
> Debug (org-odt): Trying c:/emacs-23.4/etc/org/...
> Problems while trying to load feature `org-odt'
>
> So you can see that i am using Windows (Win 7 64 bit). In fact, I am
> using Vincent Goulet's Windows installer (modified-2, FWIW), and I
> directed it to install into C:/emacs-23.4 instead of the default
> C:/Program Files (x86) directory.
>
> Looking in the site-lisp directories for the folders org-odt is
> searching, I don't see contrib, org, or etc directories.
>
> But I do see C:/emacs-23.4/etc/org/styles, which has OrgOdtStyles.xml,
> and C:/emacs-23.4/etc/schema, which doesn't obviously have any files
> to do with ODT.
>
> Is there a workaround or alternative installation to fix it? It would
> be really cool to export to ODT!
>
> M
--
next prev parent reply other threads:[~2012-03-02 20:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-02 19:06 org-odt: cannot find factory styles Matthew Landis
2012-03-02 20:38 ` Jambunathan K [this message]
2012-03-02 20:45 ` Jambunathan K
2012-03-05 19:38 ` Matthew Landis
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=817gz2yc02.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=landis@isciences.com \
/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).