From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: byte-code: Error (org-odt): Cannot find factory styles files. Aborting. Date: Mon, 16 Jan 2012 18:35:17 +0530 Message-ID: <81d3ajdche.fsf@gmail.com> References: <87k44szo5p.fsf@gmx.co.uk> <81d3akl089.fsf@gmail.com> <87pqej2771.fsf@gmx.co.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmmFm-00018I-LX for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 08:05:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmmFg-000875-Rj for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 08:05:38 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:37970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmmFg-00086u-LV for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 08:05:32 -0500 Received: by iadj38 with SMTP id j38so1307776iad.0 for ; Mon, 16 Jan 2012 05:05:32 -0800 (PST) In-Reply-To: <87pqej2771.fsf@gmx.co.uk> (Johnny's message of "Mon, 16 Jan 2012 11:54:58 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Johnny Cc: emacs-orgmode@gnu.org Hello Johnny >> It looks like one of your installation step is non-standard. There is an >> easy workaround available but I would like to make sure that org-odt >> auto-configures itself with minimal user intervention. > > Make on unmodified Makefile, manually moved to /usr/local/share > direcory. You MUST NOT copy files by hand. You MUST use 'make install' to copy the files. There are two variables - lispdir and datadir - that determine where the lisp and styles files go. Here is the unmodified Makefile. ,---- Makefile | # 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 `---- If you do M-x locate-library RET org-odt RET on your current installation, you are likely to see the following message: ,---- | Library is file "/usr/local/share/emacs/org-mode" as directory. `---- Based on the above setting, you can modify the default lispdir as follows: ,---- Makefile | # Where local lisp files go | lispdir = $(prefix)/share/emacs/org-mode <================ | | # Where data files go | # $(datadir) contains auxiliary files for use with ODT exporter. | # See comments under DATAFILES. | datadir = $(prefix)/share/emacs/etc `---- The style files will then get automatically get copied to /usr/local/share/emacs/etc. It's NOT important what the values for lispdir and datadir are. What is VERY IMPORTANT is that you use "make install" to copy the files. > >> - What OS/Distrib are you using > > Fedora 16. I am on Windows. I don't use any of the Gnu/Linuxes. I am not sure what Fedora policy for installation is. May be org-7.8.03 hasn't hit Fedora yet and that's the reason why you chose to download and install by hand. FYI, Gentoo uses the following values for lispdir and datadir. prefix = /usr lispdir = $(prefix)/share/emacs/site-lisp/org-mode/ datadir = $(prefix)/share/emacs/etc/org-mode/ See http://lists.gnu.org/archive/html/emacs-orgmode/2011-12/msg00800.html. --