public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* error on building the windows installer
@ 2012-11-04 23:43 Cesar Romani
  2012-11-05  2:30 ` John MacFarlane
  0 siblings, 1 reply; 22+ messages in thread
From: Cesar Romani @ 2012-11-04 23:43 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I was building the windows installer from the latest update from the git
repository.
On using make-windows-installer.bat I got an error on the line:
cabal-dev install --flags="executable -library blaze_html_0_5" --datasubdir=

the error is:
--------------------
[...]
Linking dist\build\pandoc\pandoc.exe ...
Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
<command line>: cannot satisfy -package-id pandoc-1.10-inplace
     (use -v for more information)
cabal.exe: Error: some packages failed to install:
pandoc-1.10 failed during the building phase. The exception was:
ExitFailure 1
--------------------

Many thanks in advance,

-- 
Cesar


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

* Re: error on building the windows installer
  2012-11-04 23:43 error on building the windows installer Cesar Romani
@ 2012-11-05  2:30 ` John MacFarlane
       [not found]   ` <20121105023034.GB15169-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2012-11-05  2:30 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Because pandoc-types 1.10 isn't released yet, the windows installer
script won't work without modifications.  It might be sufficient to
add cabal-dev add-source DIR, where DIR is the directory containing
the up-to-date code for pandoc-types.

+++ Cesar Romani [Nov 04 12 18:43 ]:
> I was building the windows installer from the latest update from the git
> repository.
> On using make-windows-installer.bat I got an error on the line:
> cabal-dev install --flags="executable -library blaze_html_0_5" --datasubdir=
> 
> the error is:
> --------------------
> [...]
> Linking dist\build\pandoc\pandoc.exe ...
> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
>     (use -v for more information)
> cabal.exe: Error: some packages failed to install:
> pandoc-1.10 failed during the building phase. The exception was:
> ExitFailure 1
> --------------------
> 
> Many thanks in advance,
> 
> -- 
> Cesar
> 
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 


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

* Re: error on building the windows installer
       [not found]   ` <20121105023034.GB15169-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2012-11-06 15:11     ` Cesar Romani
  2012-11-06 16:11       ` John MacFarlane
  0 siblings, 1 reply; 22+ messages in thread
From: Cesar Romani @ 2012-11-06 15:11 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 04/11/2012 09:30 p.m., John MacFarlane wrote:
 > Because pandoc-types 1.10 isn't released yet, the windows installer
 > script won't work without modifications.  It might be sufficient to
 > add cabal-dev add-source DIR, where DIR is the directory containing
 > the up-to-date code for pandoc-types.

Where should I add that line? I added
'cabal-dev add-source pandoc-types' before the line
cabal-dev install --flags="executable -library blaze_html_0_5" --datasubdir=
on the batch file make-windows-installer.bat, but I'm getting the same
error.

Regards,

-- 
Cesar


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

* Re: error on building the windows installer
  2012-11-06 15:11     ` Cesar Romani
@ 2012-11-06 16:11       ` John MacFarlane
       [not found]         ` <20121106161118.GB50342-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2012-11-06 16:11 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Cesar Romani [Nov 06 12 10:11 ]:
> On 04/11/2012 09:30 p.m., John MacFarlane wrote:
> > Because pandoc-types 1.10 isn't released yet, the windows installer
> > script won't work without modifications.  It might be sufficient to
> > add cabal-dev add-source DIR, where DIR is the directory containing
> > the up-to-date code for pandoc-types.
> 
> Where should I add that line? I added
> 'cabal-dev add-source pandoc-types' before the line
> cabal-dev install --flags="executable -library blaze_html_0_5" --datasubdir=
> on the batch file make-windows-installer.bat, but I'm getting the same
> error.

You'd need it before the line that installs citeproc-hs.


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

* Re: error on building the windows installer
       [not found]         ` <20121106161118.GB50342-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2012-11-07  2:02           ` Cesar Romani
  2012-11-07 17:10             ` John MacFarlane
  0 siblings, 1 reply; 22+ messages in thread
From: Cesar Romani @ 2012-11-07  2:02 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 06/11/2012 11:11 a.m., John MacFarlane wrote:
 > +++ Cesar Romani [Nov 06 12 10:11 ]:
 >> On 04/11/2012 09:30 p.m., John MacFarlane wrote:
 >>> Because pandoc-types 1.10 isn't released yet, the windows installer
 >>> script won't work without modifications.  It might be sufficient to
 >>> add cabal-dev add-source DIR, where DIR is the directory containing
 >>> the up-to-date code for pandoc-types.
 >>
 >> Where should I add that line? I added
 >> 'cabal-dev add-source pandoc-types' before the line
 >> cabal-dev install --flags="executable -library blaze_html_0_5" 
--datasubdir=
 >> on the batch file make-windows-installer.bat, but I'm getting the same
 >> error.
 >
 > You'd need it before the line that installs citeproc-hs.

I get the same error.

Regards,

-- 
Cesar


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

* Re: error on building the windows installer
  2012-11-07  2:02           ` Cesar Romani
@ 2012-11-07 17:10             ` John MacFarlane
       [not found]               ` <20121107171059.GA66573-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2012-11-07 17:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Cesar Romani [Nov 06 12 21:02 ]:
> On 06/11/2012 11:11 a.m., John MacFarlane wrote:
> > +++ Cesar Romani [Nov 06 12 10:11 ]:
> >> On 04/11/2012 09:30 p.m., John MacFarlane wrote:
> >>> Because pandoc-types 1.10 isn't released yet, the windows installer
> >>> script won't work without modifications.  It might be sufficient to
> >>> add cabal-dev add-source DIR, where DIR is the directory containing
> >>> the up-to-date code for pandoc-types.
> >>
> >> Where should I add that line? I added
> >> 'cabal-dev add-source pandoc-types' before the line
> >> cabal-dev install --flags="executable -library blaze_html_0_5"
> --datasubdir=
> >> on the batch file make-windows-installer.bat, but I'm getting the same
> >> error.
> >
> > You'd need it before the line that installs citeproc-hs.
> 
> I get the same error.

Hm.  You could try inserting this line after the add-source:

cabal-dev install --reinstall --force-reinstalls pandoc-types



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

* Re: error on building the windows installer
       [not found]               ` <20121107171059.GA66573-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2012-11-07 19:40                 ` Cesar Romani
  2012-11-07 19:48                   ` John MacFarlane
  0 siblings, 1 reply; 22+ messages in thread
From: Cesar Romani @ 2012-11-07 19:40 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 07/11/2012 12:10 p.m., John MacFarlane wrote:
 > +++ Cesar Romani [Nov 06 12 21:02 ]:
 >> On 06/11/2012 11:11 a.m., John MacFarlane wrote:
 >>> +++ Cesar Romani [Nov 06 12 10:11 ]:
 >>>> On 04/11/2012 09:30 p.m., John MacFarlane wrote:
 >>>>> Because pandoc-types 1.10 isn't released yet, the windows installer
 >>>>> script won't work without modifications.  It might be sufficient to
 >>>>> add cabal-dev add-source DIR, where DIR is the directory containing
 >>>>> the up-to-date code for pandoc-types.
 >>>>
 >>>> Where should I add that line? I added
 >>>> 'cabal-dev add-source pandoc-types' before the line
 >>>> cabal-dev install --flags="executable -library blaze_html_0_5"
 >> --datasubdir=
 >>>> on the batch file make-windows-installer.bat, but I'm getting the same
 >>>> error.
 >>>
 >>> You'd need it before the line that installs citeproc-hs.
 >>
 >> I get the same error.
 >
 > Hm.  You could try inserting this line after the add-source:
 >
 > cabal-dev install --reinstall --force-reinstalls pandoc-types

If I follow these steps on the batch file:
1. cabal-dev install --disable-library-for-ghci highlighting-kate
2. cabal-dev add-source pandoc-types
3. cabal-dev install --reinstall --force-reinstalls pandoc-types
4. cabal-dev install --flags="embed_data_files" citeproc-hs
5. cabal-dev install --flags="executable -library blaze_html_0_5" 
--datasubdir=
...

I always get the same error on the 5. line:

[...]
Linking dist\build\pandoc\pandoc.exe ...
Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
<command line>: cannot satisfy -package-id pandoc-1.10-inplace
     (use -v for more information)
cabal.exe: Error: some packages failed to install:
pandoc-1.10 failed during the building phase. The exception was:
ExitFailure 1

Regards,

-- 
Cesar


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

* Re: error on building the windows installer
  2012-11-07 19:40                 ` Cesar Romani
@ 2012-11-07 19:48                   ` John MacFarlane
       [not found]                     ` <20121107194845.GA21903-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2012-11-07 19:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Cesar Romani [Nov 07 12 14:40 ]:
 
> If I follow these steps on the batch file:
> 1. cabal-dev install --disable-library-for-ghci highlighting-kate
> 2. cabal-dev add-source pandoc-types
> 3. cabal-dev install --reinstall --force-reinstalls pandoc-types
> 4. cabal-dev install --flags="embed_data_files" citeproc-hs
> 5. cabal-dev install --flags="executable -library blaze_html_0_5"
> --datasubdir=
> ...
> 
> I always get the same error on the 5. line:
> 
> [...]
> Linking dist\build\pandoc\pandoc.exe ...
> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
>     (use -v for more information)
> cabal.exe: Error: some packages failed to install:
> pandoc-1.10 failed during the building phase. The exception was:
> ExitFailure 1

Ah.  I see what is going on.

To build make-pandoc-man-pages, we need the library installed.
But we disabled that with the '-library' flag, in order to make
the executable relocatable.

Well, the man pages aren't really needed for Windows anyway,
so maybe I'll add a cabal flag that turns off 'make-pandoc-man-pages';
I can then use this in the windows package creation script.

Thanks.


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

* Re: error on building the windows installer
       [not found]                     ` <20121107194845.GA21903-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
@ 2012-11-08 11:39                       ` andrea rossato
       [not found]                         ` <87sj8kxr1f.fsf-46C4ZU908FJ9y4XLxYaG4V6hYfS7NtTn@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: andrea rossato @ 2012-11-08 11:39 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> +++ Cesar Romani [Nov 07 12 14:40 ]:
>  
>> If I follow these steps on the batch file:
>> 1. cabal-dev install --disable-library-for-ghci highlighting-kate
>> 2. cabal-dev add-source pandoc-types
>> 3. cabal-dev install --reinstall --force-reinstalls pandoc-types
>> 4. cabal-dev install --flags="embed_data_files" citeproc-hs
>> 5. cabal-dev install --flags="executable -library blaze_html_0_5"
>> --datasubdir=
>> ...
>> 
>> I always get the same error on the 5. line:
>> 
>> [...]
>> Linking dist\build\pandoc\pandoc.exe ...
>> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
>> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
>>     (use -v for more information)
>> cabal.exe: Error: some packages failed to install:
>> pandoc-1.10 failed during the building phase. The exception was:
>> ExitFailure 1
>
> Ah.  I see what is going on.
>
> To build make-pandoc-man-pages, we need the library installed.
> But we disabled that with the '-library' flag, in order to make
> the executable relocatable.
>
> Well, the man pages aren't really needed for Windows anyway,
> so maybe I'll add a cabal flag that turns off 'make-pandoc-man-pages';
> I can then use this in the windows package creation script.
>
> Thanks.

In citeproc-hs there also seems to be a bug which shows up when building
with the "embed_data_files" flags. I'm going to fix it later this
afternoon.

Andrea


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

* Re: error on building the windows installer
       [not found]                         ` <87sj8kxr1f.fsf-46C4ZU908FJ9y4XLxYaG4V6hYfS7NtTn@public.gmane.org>
@ 2012-11-08 17:14                           ` John MacFarlane
       [not found]                             ` <20121108171447.GD94362-9Rnp8PDaXcZ2EAH53EmH34tHsfhOvSUSZkel5v8DVj8@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2012-11-08 17:14 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ andrea rossato [Nov 08 12 12:39 ]:
> John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> 
> > +++ Cesar Romani [Nov 07 12 14:40 ]:
> >  
> >> If I follow these steps on the batch file:
> >> 1. cabal-dev install --disable-library-for-ghci highlighting-kate
> >> 2. cabal-dev add-source pandoc-types
> >> 3. cabal-dev install --reinstall --force-reinstalls pandoc-types
> >> 4. cabal-dev install --flags="embed_data_files" citeproc-hs
> >> 5. cabal-dev install --flags="executable -library blaze_html_0_5"
> >> --datasubdir=
> >> ...
> >> 
> >> I always get the same error on the 5. line:
> >> 
> >> [...]
> >> Linking dist\build\pandoc\pandoc.exe ...
> >> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
> >> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
> >>     (use -v for more information)
> >> cabal.exe: Error: some packages failed to install:
> >> pandoc-1.10 failed during the building phase. The exception was:
> >> ExitFailure 1
> >
> > Ah.  I see what is going on.
> >
> > To build make-pandoc-man-pages, we need the library installed.
> > But we disabled that with the '-library' flag, in order to make
> > the executable relocatable.
> >
> > Well, the man pages aren't really needed for Windows anyway,
> > so maybe I'll add a cabal flag that turns off 'make-pandoc-man-pages';
> > I can then use this in the windows package creation script.
> >
> > Thanks.
> 
> In citeproc-hs there also seems to be a bug which shows up when building
> with the "embed_data_files" flags. I'm going to fix it later this
> afternoon.

My present thought is that pandoc's 'library' and 'executable' flags
create too many problems.  I'm thinking of getting rid of them, and
adding an embed_data_files flag to embed the data files into the binary.
(The added size is fairly insignificant since the binary is already so
large.)  This would allow you to make a relocatable executable, not just
on Windows but on any system.  And it would be fully relocatable --
copy the binary anywhere and it will work, without the need of
supporting data files.

This would also solve the problem with man pages noted above, as
we would no longer need the -library flag.

Anyway, I was going to use citeproc-hs as a model, so let me know what
the problem was!

John


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

* Re: error on building the windows installer
       [not found]                             ` <20121108171447.GD94362-9Rnp8PDaXcZ2EAH53EmH34tHsfhOvSUSZkel5v8DVj8@public.gmane.org>
@ 2012-11-08 18:24                               ` andrea rossato
       [not found]                                 ` <87fw4kx899.fsf-46C4ZU908FJ9y4XLxYaG4V6hYfS7NtTn@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: andrea rossato @ 2012-11-08 18:24 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

>> In citeproc-hs there also seems to be a bug which shows up when building
>> with the "embed_data_files" flags. I'm going to fix it later this
>> afternoon.
>
> My present thought is that pandoc's 'library' and 'executable' flags
> create too many problems.  I'm thinking of getting rid of them, and
> adding an embed_data_files flag to embed the data files into the binary.
> (The added size is fairly insignificant since the binary is already so
> large.)  This would allow you to make a relocatable executable, not just
> on Windows but on any system.  And it would be fully relocatable --
> copy the binary anywhere and it will work, without the need of
> supporting data files.
>
> This would also solve the problem with man pages noted above, as
> we would no longer need the -library flag.
>
> Anyway, I was going to use citeproc-hs as a model, so let me know what
> the problem was!

The problem was just me: I didn't check if the code compiled with the
"embed_data_files" flag before releasing 0.3.6.

The bug was due to the fact that when moving to hexpat I started using
lazy bytestrings for reading files, while embed-file uses strict
bytestrings, hence a type error -- easily fixed.

Andrea


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

* Re: error on building the windows installer
       [not found]                                 ` <87fw4kx899.fsf-46C4ZU908FJ9y4XLxYaG4V6hYfS7NtTn@public.gmane.org>
@ 2012-12-22 15:02                                   ` Cesar Romani
  2012-12-30  3:34                                     ` John MacFarlane
  0 siblings, 1 reply; 22+ messages in thread
From: Cesar Romani @ 2012-12-22 15:02 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 08/11/2012 01:24 p.m., andrea rossato wrote:
 > John MacFarlane<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 
  writes:
 >
 >>> In citeproc-hs there also seems to be a bug which shows up when 
building
 >>> with the "embed_data_files" flags. I'm going to fix it later this
 >>> afternoon.
 >>
 >> My present thought is that pandoc's 'library' and 'executable' flags
 >> create too many problems.  I'm thinking of getting rid of them, and
 >> adding an embed_data_files flag to embed the data files into the binary.
 >> (The added size is fairly insignificant since the binary is already so
 >> large.)  This would allow you to make a relocatable executable, not just
 >> on Windows but on any system.  And it would be fully relocatable --
 >> copy the binary anywhere and it will work, without the need of
 >> supporting data files.
 >>
 >> This would also solve the problem with man pages noted above, as
 >> we would no longer need the -library flag.
 >>
 >> Anyway, I was going to use citeproc-hs as a model, so let me know what
 >> the problem was!
 >
 > The problem was just me: I didn't check if the code compiled with the
 > "embed_data_files" flag before releasing 0.3.6.
 >
 > The bug was due to the fact that when moving to hexpat I started using
 > lazy bytestrings for reading files, while embed-file uses strict
 > bytestrings, hence a type error -- easily fixed.

After compiling from the newest update from the git repository, 'make'
and 'make install' work fine, but I'm always getting the same error by
building the windows installer make-windows-installer.bat:

Linking dist\build\pandoc\pandoc.exe ...
Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
<command line>: cannot satisfy -package-id pandoc-1.10-inplace
     (use -v for more information)
cabal.exe: Error: some packages failed to install:
pandoc-1.10 failed during the building phase. The exception was:
ExitFailure 1

The error occurs by the line:
cabal-dev install --flags="executable -library blaze_html_0_5" --datasubdir=

Regards,

-- 
Cesar


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

* Re: error on building the windows installer
  2012-12-22 15:02                                   ` Cesar Romani
@ 2012-12-30  3:34                                     ` John MacFarlane
       [not found]                                       ` <20121230033457.GA17954-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2012-12-30  3:34 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Cesar Romani [Dec 22 12 10:02 ]:
> On 08/11/2012 01:24 p.m., andrea rossato wrote:
> > John MacFarlane<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>  writes:
> >
> >>> In citeproc-hs there also seems to be a bug which shows up when
> building
> >>> with the "embed_data_files" flags. I'm going to fix it later this
> >>> afternoon.
> >>
> >> My present thought is that pandoc's 'library' and 'executable' flags
> >> create too many problems.  I'm thinking of getting rid of them, and
> >> adding an embed_data_files flag to embed the data files into the binary.
> >> (The added size is fairly insignificant since the binary is already so
> >> large.)  This would allow you to make a relocatable executable, not just
> >> on Windows but on any system.  And it would be fully relocatable --
> >> copy the binary anywhere and it will work, without the need of
> >> supporting data files.
> >>
> >> This would also solve the problem with man pages noted above, as
> >> we would no longer need the -library flag.
> >>
> >> Anyway, I was going to use citeproc-hs as a model, so let me know what
> >> the problem was!
> >
> > The problem was just me: I didn't check if the code compiled with the
> > "embed_data_files" flag before releasing 0.3.6.
> >
> > The bug was due to the fact that when moving to hexpat I started using
> > lazy bytestrings for reading files, while embed-file uses strict
> > bytestrings, hence a type error -- easily fixed.
> 
> After compiling from the newest update from the git repository, 'make'
> and 'make install' work fine, but I'm always getting the same error by
> building the windows installer make-windows-installer.bat:
> 
> Linking dist\build\pandoc\pandoc.exe ...
> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
>     (use -v for more information)
> cabal.exe: Error: some packages failed to install:
> pandoc-1.10 failed during the building phase. The exception was:
> ExitFailure 1
> 
> The error occurs by the line:
> cabal-dev install --flags="executable -library blaze_html_0_5" --datasubdir=

Yes, when you tried this I hadn't yet made the change discussed above.
I have made it now but have not yet tested the windows installer.
You may do so if you wish.

Be sure to do a 'git submodule update' after 'git pull'.


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

* Re: error on building the windows installer
       [not found]                                       ` <20121230033457.GA17954-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2013-01-02 20:41                                         ` Cesar Romani
  2013-01-02 23:55                                           ` John MacFarlane
  0 siblings, 1 reply; 22+ messages in thread
From: Cesar Romani @ 2013-01-02 20:41 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

On 29/12/2012 10:34 p.m., John MacFarlane wrote:
 > +++ Cesar Romani [Dec 22 12 10:02 ]:
 >> On 08/11/2012 01:24 p.m., andrea rossato wrote:
 >>> John 
MacFarlane<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>   writes:
 >>>
 >>>>> In citeproc-hs there also seems to be a bug which shows up when
 >> building
 >>>>> with the "embed_data_files" flags. I'm going to fix it later this
 >>>>> afternoon.
 >>>>
 >>>> My present thought is that pandoc's 'library' and 'executable' flags
 >>>> create too many problems.  I'm thinking of getting rid of them, and
 >>>> adding an embed_data_files flag to embed the data files into the 
binary.
 >>>> (The added size is fairly insignificant since the binary is already so
 >>>> large.)  This would allow you to make a relocatable executable, 
not just
 >>>> on Windows but on any system.  And it would be fully relocatable --
 >>>> copy the binary anywhere and it will work, without the need of
 >>>> supporting data files.
 >>>>
 >>>> This would also solve the problem with man pages noted above, as
 >>>> we would no longer need the -library flag.
 >>>>
 >>>> Anyway, I was going to use citeproc-hs as a model, so let me know what
 >>>> the problem was!
 >>>
 >>> The problem was just me: I didn't check if the code compiled with the
 >>> "embed_data_files" flag before releasing 0.3.6.
 >>>
 >>> The bug was due to the fact that when moving to hexpat I started using
 >>> lazy bytestrings for reading files, while embed-file uses strict
 >>> bytestrings, hence a type error -- easily fixed.
 >>
 >> After compiling from the newest update from the git repository, 'make'
 >> and 'make install' work fine, but I'm always getting the same error by
 >> building the windows installer make-windows-installer.bat:
 >>
 >> Linking dist\build\pandoc\pandoc.exe ...
 >> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
 >> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
 >>      (use -v for more information)
 >> cabal.exe: Error: some packages failed to install:
 >> pandoc-1.10 failed during the building phase. The exception was:
 >> ExitFailure 1
 >>
 >> The error occurs by the line:
 >> cabal-dev install --flags="executable -library blaze_html_0_5" 
--datasubdir=
 >
 > Yes, when you tried this I hadn't yet made the change discussed above.
 > I have made it now but have not yet tested the windows installer.
 > You may do so if you wish.
 >
 > Be sure to do a 'git submodule update' after 'git pull'.

I did it, but on 'make' I get:
$ make
cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
Configuring pandoc-1.10...
setup.exe: At least the following dependencies are missing:
Diff ==0.2.*
Resolving dependencies...
make: *** [all] Error 1

Then I did 'cabal install Diff' but I get the same result.

Regards,

-- 
Cesar


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

* Re: error on building the windows installer
  2013-01-02 20:41                                         ` Cesar Romani
@ 2013-01-02 23:55                                           ` John MacFarlane
       [not found]                                             ` <20130102235536.GA19032-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2013-01-02 23:55 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Cesar Romani [Jan 02 13 15:41 ]:
> On 29/12/2012 10:34 p.m., John MacFarlane wrote:
> > +++ Cesar Romani [Dec 22 12 10:02 ]:
> >> On 08/11/2012 01:24 p.m., andrea rossato wrote:
> >>> John MacFarlane<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>   writes:
> >>>
> >>>>> In citeproc-hs there also seems to be a bug which shows up when
> >> building
> >>>>> with the "embed_data_files" flags. I'm going to fix it later this
> >>>>> afternoon.
> >>>>
> >>>> My present thought is that pandoc's 'library' and 'executable' flags
> >>>> create too many problems.  I'm thinking of getting rid of them, and
> >>>> adding an embed_data_files flag to embed the data files into
> the binary.
> >>>> (The added size is fairly insignificant since the binary is already so
> >>>> large.)  This would allow you to make a relocatable executable,
> not just
> >>>> on Windows but on any system.  And it would be fully relocatable --
> >>>> copy the binary anywhere and it will work, without the need of
> >>>> supporting data files.
> >>>>
> >>>> This would also solve the problem with man pages noted above, as
> >>>> we would no longer need the -library flag.
> >>>>
> >>>> Anyway, I was going to use citeproc-hs as a model, so let me know what
> >>>> the problem was!
> >>>
> >>> The problem was just me: I didn't check if the code compiled with the
> >>> "embed_data_files" flag before releasing 0.3.6.
> >>>
> >>> The bug was due to the fact that when moving to hexpat I started using
> >>> lazy bytestrings for reading files, while embed-file uses strict
> >>> bytestrings, hence a type error -- easily fixed.
> >>
> >> After compiling from the newest update from the git repository, 'make'
> >> and 'make install' work fine, but I'm always getting the same error by
> >> building the windows installer make-windows-installer.bat:
> >>
> >> Linking dist\build\pandoc\pandoc.exe ...
> >> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
> >> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
> >>      (use -v for more information)
> >> cabal.exe: Error: some packages failed to install:
> >> pandoc-1.10 failed during the building phase. The exception was:
> >> ExitFailure 1
> >>
> >> The error occurs by the line:
> >> cabal-dev install --flags="executable -library blaze_html_0_5"
> --datasubdir=
> >
> > Yes, when you tried this I hadn't yet made the change discussed above.
> > I have made it now but have not yet tested the windows installer.
> > You may do so if you wish.
> >
> > Be sure to do a 'git submodule update' after 'git pull'.
> 
> I did it, but on 'make' I get:
> $ make
> cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
> Configuring pandoc-1.10...
> setup.exe: At least the following dependencies are missing:
> Diff ==0.2.*
> Resolving dependencies...
> make: *** [all] Error 1
> 
> Then I did 'cabal install Diff' but I get the same result.

Well, the message is telling you that you don't have the Diff 0.2
library, which is a dependency of pandoc.  Try 'make prep' to
install all the dependencies.

('cabal install' won't help anyway, since the Makefile is using
a cabal-dev sandbox.  You could do 'cabal update && cabal-dev install').


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

* Re: error on building the windows installer
       [not found]                                             ` <20130102235536.GA19032-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
@ 2013-01-10 14:48                                               ` Huashan Chen
       [not found]                                                 ` <CAC1OX+AwPWip5GxUSg-8W2ST4Rcn6Vyk3aH+7+tgeZipZwm29g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: Huashan Chen @ 2013-01-10 14:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi John,

I am wondering if it's possible to re-assign another data directory
with `--data-dir` parameter to pandoc compiled with `embed_data_files`
flag? I ask because all the following commands failed under Windows.

>pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=d:\pandoc\data\
>pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=data
>pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=.\data\


Best,

Chen, Huashan


On Thu, Jan 3, 2013 at 7:55 AM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> +++ Cesar Romani [Jan 02 13 15:41 ]:
>> On 29/12/2012 10:34 p.m., John MacFarlane wrote:
>> > +++ Cesar Romani [Dec 22 12 10:02 ]:
>> >> On 08/11/2012 01:24 p.m., andrea rossato wrote:
>> >>> John MacFarlane<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>   writes:
>> >>>
>> >>>>> In citeproc-hs there also seems to be a bug which shows up when
>> >> building
>> >>>>> with the "embed_data_files" flags. I'm going to fix it later this
>> >>>>> afternoon.
>> >>>>
>> >>>> My present thought is that pandoc's 'library' and 'executable' flags
>> >>>> create too many problems.  I'm thinking of getting rid of them, and
>> >>>> adding an embed_data_files flag to embed the data files into
>> the binary.
>> >>>> (The added size is fairly insignificant since the binary is already so
>> >>>> large.)  This would allow you to make a relocatable executable,
>> not just
>> >>>> on Windows but on any system.  And it would be fully relocatable --
>> >>>> copy the binary anywhere and it will work, without the need of
>> >>>> supporting data files.
>> >>>>
>> >>>> This would also solve the problem with man pages noted above, as
>> >>>> we would no longer need the -library flag.
>> >>>>
>> >>>> Anyway, I was going to use citeproc-hs as a model, so let me know what
>> >>>> the problem was!
>> >>>
>> >>> The problem was just me: I didn't check if the code compiled with the
>> >>> "embed_data_files" flag before releasing 0.3.6.
>> >>>
>> >>> The bug was due to the fact that when moving to hexpat I started using
>> >>> lazy bytestrings for reading files, while embed-file uses strict
>> >>> bytestrings, hence a type error -- easily fixed.
>> >>
>> >> After compiling from the newest update from the git repository, 'make'
>> >> and 'make install' work fine, but I'm always getting the same error by
>> >> building the windows installer make-windows-installer.bat:
>> >>
>> >> Linking dist\build\pandoc\pandoc.exe ...
>> >> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
>> >> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
>> >>      (use -v for more information)
>> >> cabal.exe: Error: some packages failed to install:
>> >> pandoc-1.10 failed during the building phase. The exception was:
>> >> ExitFailure 1
>> >>
>> >> The error occurs by the line:
>> >> cabal-dev install --flags="executable -library blaze_html_0_5"
>> --datasubdir=
>> >
>> > Yes, when you tried this I hadn't yet made the change discussed above.
>> > I have made it now but have not yet tested the windows installer.
>> > You may do so if you wish.
>> >
>> > Be sure to do a 'git submodule update' after 'git pull'.
>>
>> I did it, but on 'make' I get:
>> $ make
>> cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
>> Configuring pandoc-1.10...
>> setup.exe: At least the following dependencies are missing:
>> Diff ==0.2.*
>> Resolving dependencies...
>> make: *** [all] Error 1
>>
>> Then I did 'cabal install Diff' but I get the same result.
>
> Well, the message is telling you that you don't have the Diff 0.2
> library, which is a dependency of pandoc.  Try 'make prep' to
> install all the dependencies.
>
> ('cabal install' won't help anyway, since the Makefile is using
> a cabal-dev sandbox.  You could do 'cabal update && cabal-dev install').
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


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

* Re: error on building the windows installer
       [not found]                                                 ` <CAC1OX+AwPWip5GxUSg-8W2ST4Rcn6Vyk3aH+7+tgeZipZwm29g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-01-10 17:26                                                   ` John MacFarlane
       [not found]                                                     ` <20130110172629.GB67105-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2013-01-10 17:26 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Yes, it should be.  The code only uses the embedded data if
the data file is not found under the specified data-dir.
I've tested it on Windows and it seems to work.

Maybe you could say more about the nature of the "failure"
you're seeing.

(By the way, if you specify --reference-doc=PATH, it will use
PATH, not data-dir\PATH.  Could that be the confusion?)

+++ Huashan Chen [Jan 10 13 22:48 ]:
> Hi John,
> 
> I am wondering if it's possible to re-assign another data directory
> with `--data-dir` parameter to pandoc compiled with `embed_data_files`
> flag? I ask because all the following commands failed under Windows.
> 
> >pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=d:\pandoc\data\
> >pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=data
> >pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=.\data\
> 
> 
> Best,
> 
> Chen, Huashan
> 
> 
> On Thu, Jan 3, 2013 at 7:55 AM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > +++ Cesar Romani [Jan 02 13 15:41 ]:
> >> On 29/12/2012 10:34 p.m., John MacFarlane wrote:
> >> > +++ Cesar Romani [Dec 22 12 10:02 ]:
> >> >> On 08/11/2012 01:24 p.m., andrea rossato wrote:
> >> >>> John MacFarlane<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>   writes:
> >> >>>
> >> >>>>> In citeproc-hs there also seems to be a bug which shows up when
> >> >> building
> >> >>>>> with the "embed_data_files" flags. I'm going to fix it later this
> >> >>>>> afternoon.
> >> >>>>
> >> >>>> My present thought is that pandoc's 'library' and 'executable' flags
> >> >>>> create too many problems.  I'm thinking of getting rid of them, and
> >> >>>> adding an embed_data_files flag to embed the data files into
> >> the binary.
> >> >>>> (The added size is fairly insignificant since the binary is already so
> >> >>>> large.)  This would allow you to make a relocatable executable,
> >> not just
> >> >>>> on Windows but on any system.  And it would be fully relocatable --
> >> >>>> copy the binary anywhere and it will work, without the need of
> >> >>>> supporting data files.
> >> >>>>
> >> >>>> This would also solve the problem with man pages noted above, as
> >> >>>> we would no longer need the -library flag.
> >> >>>>
> >> >>>> Anyway, I was going to use citeproc-hs as a model, so let me know what
> >> >>>> the problem was!
> >> >>>
> >> >>> The problem was just me: I didn't check if the code compiled with the
> >> >>> "embed_data_files" flag before releasing 0.3.6.
> >> >>>
> >> >>> The bug was due to the fact that when moving to hexpat I started using
> >> >>> lazy bytestrings for reading files, while embed-file uses strict
> >> >>> bytestrings, hence a type error -- easily fixed.
> >> >>
> >> >> After compiling from the newest update from the git repository, 'make'
> >> >> and 'make install' work fine, but I'm always getting the same error by
> >> >> building the windows installer make-windows-installer.bat:
> >> >>
> >> >> Linking dist\build\pandoc\pandoc.exe ...
> >> >> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
> >> >> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
> >> >>      (use -v for more information)
> >> >> cabal.exe: Error: some packages failed to install:
> >> >> pandoc-1.10 failed during the building phase. The exception was:
> >> >> ExitFailure 1
> >> >>
> >> >> The error occurs by the line:
> >> >> cabal-dev install --flags="executable -library blaze_html_0_5"
> >> --datasubdir=
> >> >
> >> > Yes, when you tried this I hadn't yet made the change discussed above.
> >> > I have made it now but have not yet tested the windows installer.
> >> > You may do so if you wish.
> >> >
> >> > Be sure to do a 'git submodule update' after 'git pull'.
> >>
> >> I did it, but on 'make' I get:
> >> $ make
> >> cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
> >> Configuring pandoc-1.10...
> >> setup.exe: At least the following dependencies are missing:
> >> Diff ==0.2.*
> >> Resolving dependencies...
> >> make: *** [all] Error 1
> >>
> >> Then I did 'cabal install Diff' but I get the same result.
> >
> > Well, the message is telling you that you don't have the Diff 0.2
> > library, which is a dependency of pandoc.  Try 'make prep' to
> > install all the dependencies.
> >
> > ('cabal install' won't help anyway, since the Makefile is using
> > a cabal-dev sandbox.  You could do 'cabal update && cabal-dev install').
> >
> > --
> > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
> 
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 


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

* Re: error on building the windows installer
       [not found]                                                     ` <20130110172629.GB67105-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2013-01-11 13:39                                                       ` Huashan Chen
       [not found]                                                         ` <CAC1OX+CctCg1gMy+uURs8rQcs7YLU8L5uzr77g+ebUpmewg2eQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: Huashan Chen @ 2013-01-11 13:39 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Oops, I forgot to post the error messages, here it is (for all the
three commands mentioned above)

pandoc: Duplicate link reference `[PHP markdown extra]' "source" (line
1519, column 1)
pandoc: reference.docx: openBinaryFile: does not exist (No such file
or directory)

--reference-doc=PATH works fine though. However, in some
circumstances, --data-dir is much convient.



Best,

Chen, Huashan


On Fri, Jan 11, 2013 at 1:26 AM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Yes, it should be.  The code only uses the embedded data if
> the data file is not found under the specified data-dir.
> I've tested it on Windows and it seems to work.
>
> Maybe you could say more about the nature of the "failure"
> you're seeing.
>
> (By the way, if you specify --reference-doc=PATH, it will use
> PATH, not data-dir\PATH.  Could that be the confusion?)
>
> +++ Huashan Chen [Jan 10 13 22:48 ]:
>> Hi John,
>>
>> I am wondering if it's possible to re-assign another data directory
>> with `--data-dir` parameter to pandoc compiled with `embed_data_files`
>> flag? I ask because all the following commands failed under Windows.
>>
>> >pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=d:\pandoc\data\
>> >pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=data
>> >pandoc readme -o readme.docx --reference-docx=ref.docx  --data-dir=.\data\
>>
>>
>> Best,
>>
>> Chen, Huashan
>>
>>
>> On Thu, Jan 3, 2013 at 7:55 AM, John MacFarlane <fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>> > +++ Cesar Romani [Jan 02 13 15:41 ]:
>> >> On 29/12/2012 10:34 p.m., John MacFarlane wrote:
>> >> > +++ Cesar Romani [Dec 22 12 10:02 ]:
>> >> >> On 08/11/2012 01:24 p.m., andrea rossato wrote:
>> >> >>> John MacFarlane<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>   writes:
>> >> >>>
>> >> >>>>> In citeproc-hs there also seems to be a bug which shows up when
>> >> >> building
>> >> >>>>> with the "embed_data_files" flags. I'm going to fix it later this
>> >> >>>>> afternoon.
>> >> >>>>
>> >> >>>> My present thought is that pandoc's 'library' and 'executable' flags
>> >> >>>> create too many problems.  I'm thinking of getting rid of them, and
>> >> >>>> adding an embed_data_files flag to embed the data files into
>> >> the binary.
>> >> >>>> (The added size is fairly insignificant since the binary is already so
>> >> >>>> large.)  This would allow you to make a relocatable executable,
>> >> not just
>> >> >>>> on Windows but on any system.  And it would be fully relocatable --
>> >> >>>> copy the binary anywhere and it will work, without the need of
>> >> >>>> supporting data files.
>> >> >>>>
>> >> >>>> This would also solve the problem with man pages noted above, as
>> >> >>>> we would no longer need the -library flag.
>> >> >>>>
>> >> >>>> Anyway, I was going to use citeproc-hs as a model, so let me know what
>> >> >>>> the problem was!
>> >> >>>
>> >> >>> The problem was just me: I didn't check if the code compiled with the
>> >> >>> "embed_data_files" flag before releasing 0.3.6.
>> >> >>>
>> >> >>> The bug was due to the fact that when moving to hexpat I started using
>> >> >>> lazy bytestrings for reading files, while embed-file uses strict
>> >> >>> bytestrings, hence a type error -- easily fixed.
>> >> >>
>> >> >> After compiling from the newest update from the git repository, 'make'
>> >> >> and 'make install' work fine, but I'm always getting the same error by
>> >> >> building the windows installer make-windows-installer.bat:
>> >> >>
>> >> >> Linking dist\build\pandoc\pandoc.exe ...
>> >> >> Preprocessing executable 'make-pandoc-man-pages' for pandoc-1.10...
>> >> >> <command line>: cannot satisfy -package-id pandoc-1.10-inplace
>> >> >>      (use -v for more information)
>> >> >> cabal.exe: Error: some packages failed to install:
>> >> >> pandoc-1.10 failed during the building phase. The exception was:
>> >> >> ExitFailure 1
>> >> >>
>> >> >> The error occurs by the line:
>> >> >> cabal-dev install --flags="executable -library blaze_html_0_5"
>> >> --datasubdir=
>> >> >
>> >> > Yes, when you tried this I hadn't yet made the change discussed above.
>> >> > I have made it now but have not yet tested the windows installer.
>> >> > You may do so if you wish.
>> >> >
>> >> > Be sure to do a 'git submodule update' after 'git pull'.
>> >>
>> >> I did it, but on 'make' I get:
>> >> $ make
>> >> cabal-dev configure --enable-tests --enable-benchmarks && cabal-dev build
>> >> Configuring pandoc-1.10...
>> >> setup.exe: At least the following dependencies are missing:
>> >> Diff ==0.2.*
>> >> Resolving dependencies...
>> >> make: *** [all] Error 1
>> >>
>> >> Then I did 'cabal install Diff' but I get the same result.
>> >
>> > Well, the message is telling you that you don't have the Diff 0.2
>> > library, which is a dependency of pandoc.  Try 'make prep' to
>> > install all the dependencies.
>> >
>> > ('cabal install' won't help anyway, since the Makefile is using
>> > a cabal-dev sandbox.  You could do 'cabal update && cabal-dev install').
>> >
>> > --
>> > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>> > To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > For more options, visit https://groups.google.com/groups/opt_out.
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
>> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


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

* Re: error on building the windows installer
       [not found]                                                         ` <CAC1OX+CctCg1gMy+uURs8rQcs7YLU8L5uzr77g+ebUpmewg2eQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-01-11 15:43                                                           ` John MacFarlane
       [not found]                                                             ` <20130111154356.GA73415-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2013-01-11 15:43 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Huashan Chen [Jan 11 13 21:39 ]:
> Oops, I forgot to post the error messages, here it is (for all the
> three commands mentioned above)
> 
> pandoc: Duplicate link reference `[PHP markdown extra]' "source" (line
> 1519, column 1)

This shows that you're not using the latest version, since the
README was fixed to avoid this duplicate reference.

> pandoc: reference.docx: openBinaryFile: does not exist (No such file
> or directory)
> 
> --reference-doc=PATH works fine though. However, in some
> circumstances, --data-dir is much convient.

I still don't see any evidence of a change in functionality.
I think you are assuming that

--reference-docx=FILE --data-dir=DIR

will look for the reference-docx in DIR/FILE.  I don't think
that was ever the case.  You can either do

--reference-docx=PATH

or put reference.docx in DIR and do

--data-dir=DIR

(with --reference-docx).

John


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

* Re: error on building the windows installer
       [not found]                                                             ` <20130111154356.GA73415-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2013-01-12 16:45                                                               ` Huashan Chen
       [not found]                                                                 ` <CAC1OX+BO-n6HRxdiJfkYTD6GFmTqcD5be5FaxmAUq4+FXwszvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: Huashan Chen @ 2013-01-12 16:45 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Hi, John,

Do you mean that I couldn't place my customized docx file in `data`
directory and use

--reference-docx=MYFILE --data-dir=DIR

together? According to the manual, I'd thought that pandoc will look
for MYFILE in DIR.


Best,

Chen, Huashan


On Fri, Jan 11, 2013 at 11:43 PM, John MacFarlane
<fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> +++ Huashan Chen [Jan 11 13 21:39 ]:
>> Oops, I forgot to post the error messages, here it is (for all the
>> three commands mentioned above)
>>
>> pandoc: Duplicate link reference `[PHP markdown extra]' "source" (line
>> 1519, column 1)
>
> This shows that you're not using the latest version, since the
> README was fixed to avoid this duplicate reference.
>
>> pandoc: reference.docx: openBinaryFile: does not exist (No such file
>> or directory)
>>
>> --reference-doc=PATH works fine though. However, in some
>> circumstances, --data-dir is much convient.
>
> I still don't see any evidence of a change in functionality.
> I think you are assuming that
>
> --reference-docx=FILE --data-dir=DIR
>
> will look for the reference-docx in DIR/FILE.  I don't think
> that was ever the case.  You can either do
>
> --reference-docx=PATH
>
> or put reference.docx in DIR and do
>
> --data-dir=DIR
>
> (with --reference-docx).
>
> John
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
>
>


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

* Re: error on building the windows installer
       [not found]                                                                 ` <CAC1OX+BO-n6HRxdiJfkYTD6GFmTqcD5be5FaxmAUq4+FXwszvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-01-12 17:42                                                                   ` John MacFarlane
       [not found]                                                                     ` <20130112174216.GA93250-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
  0 siblings, 1 reply; 22+ messages in thread
From: John MacFarlane @ 2013-01-12 17:42 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

+++ Huashan Chen [Jan 13 13 00:45 ]:
> Hi, John,
> 
> Do you mean that I couldn't place my customized docx file in `data`
> directory and use
> 
> --reference-docx=MYFILE --data-dir=DIR
> 
> together? According to the manual, I'd thought that pandoc will look
> for MYFILE in DIR.

No.  If you leave off --reference-docx, it will look for reference.docx
in DIR, but if you specify --reference-docx, it will assume that you're
giving the whole path to the file.

John


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

* Re: error on building the windows installer
       [not found]                                                                     ` <20130112174216.GA93250-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
@ 2013-01-13  0:47                                                                       ` Huashan Chen
  0 siblings, 0 replies; 22+ messages in thread
From: Huashan Chen @ 2013-01-13  0:47 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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

Thank you, that solves my puzzle.
在 2013-1-13 AM1:42,"John MacFarlane" <fiddlosopher-Re5JQEeQqe8@public.gmane.orgm>写道:

> +++ Huashan Chen [Jan 13 13 00:45 ]:
> > Hi, John,
> >
> > Do you mean that I couldn't place my customized docx file in `data`
> > directory and use
> >
> > --reference-docx=MYFILE --data-dir=DIR
> >
> > together? According to the manual, I'd thought that pandoc will look
> > for MYFILE in DIR.
>
> No.  If you leave off --reference-docx, it will look for reference.docx
> in DIR, but if you specify --reference-docx, it will assume that you're
> giving the whole path to the file.
>
> John
>
> --
> You received this message because you are subscribed to the Google Groups
> "pandoc-discuss" group.
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to pandoc-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



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

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

end of thread, other threads:[~2013-01-13  0:47 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-04 23:43 error on building the windows installer Cesar Romani
2012-11-05  2:30 ` John MacFarlane
     [not found]   ` <20121105023034.GB15169-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2012-11-06 15:11     ` Cesar Romani
2012-11-06 16:11       ` John MacFarlane
     [not found]         ` <20121106161118.GB50342-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2012-11-07  2:02           ` Cesar Romani
2012-11-07 17:10             ` John MacFarlane
     [not found]               ` <20121107171059.GA66573-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2012-11-07 19:40                 ` Cesar Romani
2012-11-07 19:48                   ` John MacFarlane
     [not found]                     ` <20121107194845.GA21903-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2012-11-08 11:39                       ` andrea rossato
     [not found]                         ` <87sj8kxr1f.fsf-46C4ZU908FJ9y4XLxYaG4V6hYfS7NtTn@public.gmane.org>
2012-11-08 17:14                           ` John MacFarlane
     [not found]                             ` <20121108171447.GD94362-9Rnp8PDaXcZ2EAH53EmH34tHsfhOvSUSZkel5v8DVj8@public.gmane.org>
2012-11-08 18:24                               ` andrea rossato
     [not found]                                 ` <87fw4kx899.fsf-46C4ZU908FJ9y4XLxYaG4V6hYfS7NtTn@public.gmane.org>
2012-12-22 15:02                                   ` Cesar Romani
2012-12-30  3:34                                     ` John MacFarlane
     [not found]                                       ` <20121230033457.GA17954-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2013-01-02 20:41                                         ` Cesar Romani
2013-01-02 23:55                                           ` John MacFarlane
     [not found]                                             ` <20130102235536.GA19032-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@public.gmane.org>
2013-01-10 14:48                                               ` Huashan Chen
     [not found]                                                 ` <CAC1OX+AwPWip5GxUSg-8W2ST4Rcn6Vyk3aH+7+tgeZipZwm29g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-01-10 17:26                                                   ` John MacFarlane
     [not found]                                                     ` <20130110172629.GB67105-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2013-01-11 13:39                                                       ` Huashan Chen
     [not found]                                                         ` <CAC1OX+CctCg1gMy+uURs8rQcs7YLU8L5uzr77g+ebUpmewg2eQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-01-11 15:43                                                           ` John MacFarlane
     [not found]                                                             ` <20130111154356.GA73415-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2013-01-12 16:45                                                               ` Huashan Chen
     [not found]                                                                 ` <CAC1OX+BO-n6HRxdiJfkYTD6GFmTqcD5be5FaxmAUq4+FXwszvQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-01-12 17:42                                                                   ` John MacFarlane
     [not found]                                                                     ` <20130112174216.GA93250-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org>
2013-01-13  0:47                                                                       ` Huashan Chen

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 NNTP newsgroup(s).