emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* error: Execution of bibtex2html
@ 2012-11-04 23:48 Vikas Rawal
  0 siblings, 0 replies; 12+ messages in thread
From: Vikas Rawal @ 2012-11-04 23:48 UTC (permalink / raw)
  To: emacs-orgmode

I am having trouble in using org-exp-bibtex.el on debian sid. I was
unable to install bibtex2html through the package manager because of
dependency problem with ocaml-base-nox-3.12.1. I then installed ocaml
separately, and compiled bibtex2html from source. Now, bibtex2html is
working fine from the command line.

But when I export a file having bibtex citations, orgmode complains
saying "Execution of bibtex2html failed". It seemed to me that orgmode
was unable to find bibtex2html. bibtex2html is installed in
/usr/local/bin/bibtex2html. Since it was not being found, I also
myself created a symlink to /usr/bin.bibtex2html. But that does not
help either.

My orgmode version is 7.9.2

Could anyone suggest what to do.

Thanks,

Vikas

^ permalink raw reply	[flat|nested] 12+ messages in thread

* error: Execution of bibtex2html
@ 2012-11-05 20:49 Vikas Rawal
  0 siblings, 0 replies; 12+ messages in thread
From: Vikas Rawal @ 2012-11-05 20:49 UTC (permalink / raw)
  To: emacs-orgmode

I am having trouble in using org-exp-bibtex.el on debian sid. I was
unable to install bibtex2html through the package manager because of
dependency problem with ocaml-base-nox-3.12.1. I then installed ocaml
separately, and compiled bibtex2html from source. Now, bibtex2html is
working fine from the command line.

But when I export a file having bibtex citations, orgmode complains
saying "Execution of bibtex2html failed". It seemed to me that orgmode
was unable to find bibtex2html. bibtex2html is installed in
/usr/local/bin/bibtex2html. Since it was not being found, I also
myself created a symlink to /usr/bin.bibtex2html. But that does not
help either.

My orgmode version is 7.9.2

Could anyone suggest what to do.

Thanks,

Vikas

^ permalink raw reply	[flat|nested] 12+ messages in thread

* error: Execution of bibtex2html
@ 2012-11-05 20:54 Vikas Rawal
  2012-11-06 16:43 ` Suvayu Ali
  0 siblings, 1 reply; 12+ messages in thread
From: Vikas Rawal @ 2012-11-05 20:54 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 739 bytes --]

I am having trouble in using org-exp-bibtex.el on debian sid. I was unable
to install bibtex2html through the package manager because of dependency
problem with ocaml-base-nox-3.12.1. I then installed ocaml separately, and
compiled bibtex2html from source. Now,  bibtex2html is working fine from
the command line.

But when I export a file having bibtex citations, orgmode complains saying
"Execution of bibtex2html failed". It seemed to me that orgmode was unable
to find bibtex2html. bibtex2html is installed
in /usr/local/bin/bibtex2html. Since it was not being found, I also
myself created a symlink to /usr/bin.bibtex2html. But that does not help
either.

My orgmode version is 7.9.2

Could anyone suggest what to do.

Thanks,

Vikas

[-- Attachment #2: Type: text/html, Size: 897 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-05 20:54 Vikas Rawal
@ 2012-11-06 16:43 ` Suvayu Ali
  2012-11-06 21:09   ` Vikas Rawal
  2012-11-06 21:26   ` Vikas Rawal
  0 siblings, 2 replies; 12+ messages in thread
From: Suvayu Ali @ 2012-11-06 16:43 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, Nov 06, 2012 at 05:54:47AM +0900, Vikas Rawal wrote:
> 
> But when I export a file having bibtex citations, orgmode complains saying
> "Execution of bibtex2html failed". It seemed to me that orgmode was unable
> to find bibtex2html. bibtex2html is installed
> in /usr/local/bin/bibtex2html. Since it was not being found, I also
> myself created a symlink to /usr/bin.bibtex2html. But that does not help
> either.
> 

Just a couple of obvious suggestions; are you sure bibtex2html is in
your path when you launch Emacs?  Maybe adding /usr/local/bin to your
PATH will do the trick.  I would put such modifications in
~/bash_profile (assuming you use bash as shell), logout and login before
trying again.

The symlink you created, is it really /usr/bin.bibtex2html or is that a
typo?

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-06 16:43 ` Suvayu Ali
@ 2012-11-06 21:09   ` Vikas Rawal
       [not found]     ` <vikaslists@agrarianresearch.org>
  2012-11-06 21:24     ` Myles English
  2012-11-06 21:26   ` Vikas Rawal
  1 sibling, 2 replies; 12+ messages in thread
From: Vikas Rawal @ 2012-11-06 21:09 UTC (permalink / raw)
  To: emacs-orgmode

> 
> Just a couple of obvious suggestions; are you sure bibtex2html is in
> your path when you launch Emacs?  Maybe adding /usr/local/bin to your
> PATH will do the trick.  I would put such modifications in
> ~/bash_profile (assuming you use bash as shell), logout and login before
> trying again.
> 
> The symlink you created, is it really /usr/bin.bibtex2html or is that a
> typo?

Sorry, that was a typo. I am able to directly run bibtex2html from the
bash shell prompt. ECHO $PATH shows /usr/local/bin. So that should not
be a problem. But somehow org-exp-bibtex.el cannot find it. I wonder
if org-exp-bibtex has the path hard-coded into it! Or something else?

Vikas

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
       [not found]     ` <vikaslists@agrarianresearch.org>
@ 2012-11-06 21:23       ` Nick Dokos
  2012-11-07  3:51         ` Vikas Rawal
  0 siblings, 1 reply; 12+ messages in thread
From: Nick Dokos @ 2012-11-06 21:23 UTC (permalink / raw)
  To: emacs-orgmode

Vikas Rawal <vikaslists@agrarianresearch.org> wrote:

> > 
> > Just a couple of obvious suggestions; are you sure bibtex2html is in
> > your path when you launch Emacs?  Maybe adding /usr/local/bin to your
> > PATH will do the trick.  I would put such modifications in
> > ~/bash_profile (assuming you use bash as shell), logout and login before
> > trying again.
> > 
> > The symlink you created, is it really /usr/bin.bibtex2html or is that a
> > typo?
> 
> Sorry, that was a typo. I am able to directly run bibtex2html from the
> bash shell prompt. ECHO $PATH shows /usr/local/bin. So that should not
> be a problem. But somehow org-exp-bibtex.el cannot find it. I wonder
> if org-exp-bibtex has the path hard-coded into it! Or something else?
> 

Depending on how it is started, emacs may have a different idea of PATH
than bash. Check in emacs with (getenv "PATH") or by starting a shell
M-x shell and trying to run bibtex2html from there. org-exp-bibtex.el
does not hard code the path afaict, so if the above succeeds, then it
should succeed as well.

Nick

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-06 21:09   ` Vikas Rawal
       [not found]     ` <vikaslists@agrarianresearch.org>
@ 2012-11-06 21:24     ` Myles English
  2012-11-07  2:57       ` Vikas Rawal
  1 sibling, 1 reply; 12+ messages in thread
From: Myles English @ 2012-11-06 21:24 UTC (permalink / raw)
  To: Vikas Rawal; +Cc: emacs-orgmode


Hi Vikas,

Vikas Rawal writes:

>> 
>> Just a couple of obvious suggestions; are you sure bibtex2html is in
>> your path when you launch Emacs?  Maybe adding /usr/local/bin to your
>> PATH will do the trick.  I would put such modifications in
>> ~/bash_profile (assuming you use bash as shell), logout and login before
>> trying again.
>> 
>> The symlink you created, is it really /usr/bin.bibtex2html or is that a
>> typo?
>
> Sorry, that was a typo. I am able to directly run bibtex2html from the
> bash shell prompt. ECHO $PATH shows /usr/local/bin.

What does 'which bibtex2html' show?

> So that should not be a problem. But somehow org-exp-bibtex.el cannot
> find it. I wonder if org-exp-bibtex has the path hard-coded into it!
> Or something else?
>
> Vikas


Myles

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-06 16:43 ` Suvayu Ali
  2012-11-06 21:09   ` Vikas Rawal
@ 2012-11-06 21:26   ` Vikas Rawal
  1 sibling, 0 replies; 12+ messages in thread
From: Vikas Rawal @ 2012-11-06 21:26 UTC (permalink / raw)
  To: Suvayu Ali; +Cc: emacs-orgmode

On Tue, Nov 06, 2012 at 05:43:32PM +0100, Suvayu Ali wrote:
> On Tue, Nov 06, 2012 at 05:54:47AM +0900, Vikas Rawal wrote:
> > 
> > But when I export a file having bibtex citations, orgmode complains saying
> > "Execution of bibtex2html failed". It seemed to me that orgmode was unable
> > to find bibtex2html. bibtex2html is installed
> > in /usr/local/bin/bibtex2html. Since it was not being found, I also
> > myself created a symlink to /usr/bin.bibtex2html. But that does not help
> > either.
> > 
> 
> Just a couple of obvious suggestions; are you sure bibtex2html is in
> your path when you launch Emacs?  Maybe adding /usr/local/bin to your
> PATH will do the trick.  I would put such modifications in
> ~/bash_profile (assuming you use bash as shell), logout and login before
> trying again.
> 
> The symlink you created, is it really /usr/bin.bibtex2html or is that a
> typo?
> 

Also, the latex export works fine. So bibtex and my #+BIBLIOGRAPHY are
ok.

Vikas

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-06 21:24     ` Myles English
@ 2012-11-07  2:57       ` Vikas Rawal
  2012-11-07  3:24         ` Yagnesh Raghava Yakkala
  0 siblings, 1 reply; 12+ messages in thread
From: Vikas Rawal @ 2012-11-07  2:57 UTC (permalink / raw)
  To: emacs-orgmode


> > Sorry, that was a typo. I am able to directly run bibtex2html from the
> > bash shell prompt. ECHO $PATH shows /usr/local/bin.
> 
> What does 'which bibtex2html' show?
> 

from within M-x shell:

*****

[11:53:47][0][source]# bibtex2html 
This is bibtex2html version 1.97, compiled on Mon Nov 5 07:16:12 JST
2012
Copyright (c) 1997-2010 Jean-Christophe Filliâtre and Claude Marché
This is free software with ABSOLUTELY NO WARRANTY (use option
--warranty)

Reading from standard input...
  C-c C-c
[11:54:26][130][source]# which bibtex2html
/usr/local/bin/bibtex2html

*****

Vikas

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-07  2:57       ` Vikas Rawal
@ 2012-11-07  3:24         ` Yagnesh Raghava Yakkala
  2012-11-07  4:10           ` Nick Dokos
  0 siblings, 1 reply; 12+ messages in thread
From: Yagnesh Raghava Yakkala @ 2012-11-07  3:24 UTC (permalink / raw)
  To: emacs-orgmode


Hello Vikas,

On 11月 07 2012, Vikas Rawal <vikaslists@agrarianresearch.org> wrote:

>> > Sorry, that was a typo. I am able to directly run bibtex2html from the
>> > bash shell prompt. ECHO $PATH shows /usr/local/bin.
>> 
>> What does 'which bibtex2html' show?
>> 
>
> from within M-x shell:

As Nick said in his previous mail, if the shell has executable in its path
doesn't ensure emacs to find it.

in your emacs,
M-: (executable-find "bibtex2html")

to see whether emacs can find the executable, if it doesn't, add the following
in your .emacs

(add-to-list 'exec-path "/path/to/your/bibtex2html/")

Hope that helps.,
Thanks
-- 
ఎందరో మహానుభావులు అందరికి వందనములు
YYR

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-06 21:23       ` Nick Dokos
@ 2012-11-07  3:51         ` Vikas Rawal
  0 siblings, 0 replies; 12+ messages in thread
From: Vikas Rawal @ 2012-11-07  3:51 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode



> > 
> > Sorry, that was a typo. I am able to directly run bibtex2html from the
> > bash shell prompt. ECHO $PATH shows /usr/local/bin. So that should not
> > be a problem. But somehow org-exp-bibtex.el cannot find it. I wonder
> > if org-exp-bibtex has the path hard-coded into it! Or something else?
> > 

The problem was with my setup of bibtex2html. 

I needed to change /usr/share/texmf/web2c/texmf.cnf and replace "openout_any =
p" with "openout_any = a".

I found this at https://aur.archlinux.org/packages.php?ID=8140

Thanks everyone for help.

Vikas

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: error: Execution of bibtex2html
  2012-11-07  3:24         ` Yagnesh Raghava Yakkala
@ 2012-11-07  4:10           ` Nick Dokos
  0 siblings, 0 replies; 12+ messages in thread
From: Nick Dokos @ 2012-11-07  4:10 UTC (permalink / raw)
  To: Yagnesh Raghava Yakkala; +Cc: emacs-orgmode

Yagnesh Raghava Yakkala <hi@yagnesh.org> wrote:

> 
> Hello Vikas,
> 
> On 11 07 2012, Vikas Rawal <vikaslists@agrarianresearch.org> wrote:
> 
> >> > Sorry, that was a typo. I am able to directly run bibtex2html from the
> >> > bash shell prompt. ECHO $PATH shows /usr/local/bin.
> >> 
> >> What does 'which bibtex2html' show?
> >> 
> >
> > from within M-x shell:
> 
> As Nick said in his previous mail, if the shell has executable in its path
> doesn't ensure emacs to find it.
> 

As an amendment to my previous note, normally, if the shell inside emacs
can find the executable, then emacs should be able to find it too. There
are some abnormal situations however (e.g. defining PATH in .bashrc or
equiv - yecchh) that would cause the shell to find it whereas emacs would
not be able to. So Yagnesh is correct in asking for more checking.

Nick

> in your emacs,
> M-: (executable-find "bibtex2html")
> 
> to see whether emacs can find the executable, if it doesn't, add the following
> in your .emacs
> 
> (add-to-list 'exec-path "/path/to/your/bibtex2html/")
> 

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-11-07  4:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04 23:48 error: Execution of bibtex2html Vikas Rawal
  -- strict thread matches above, loose matches on Subject: below --
2012-11-05 20:49 Vikas Rawal
2012-11-05 20:54 Vikas Rawal
2012-11-06 16:43 ` Suvayu Ali
2012-11-06 21:09   ` Vikas Rawal
     [not found]     ` <vikaslists@agrarianresearch.org>
2012-11-06 21:23       ` Nick Dokos
2012-11-07  3:51         ` Vikas Rawal
2012-11-06 21:24     ` Myles English
2012-11-07  2:57       ` Vikas Rawal
2012-11-07  3:24         ` Yagnesh Raghava Yakkala
2012-11-07  4:10           ` Nick Dokos
2012-11-06 21:26   ` Vikas Rawal

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).