From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/5438 Path: news.gmane.org!not-for-mail From: Huashan Chen Newsgroups: gmane.text.pandoc Subject: Re: error on building the windows installer Date: Fri, 11 Jan 2013 21:39:46 +0800 Message-ID: References: <20121107194845.GA21903@protagoras.phil.berkeley.edu> <87sj8kxr1f.fsf@eeepc.nowhere.net> <20121108171447.GD94362@Johns-MacBook-Air-2.local> <87fw4kx899.fsf@eeepc.nowhere.net> <20121230033457.GA17954@Johns-MacBook-Pro.local> <20130102235536.GA19032@protagoras.phil.berkeley.edu> <20130110172629.GB67105@Johns-MacBook-Pro.local> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1357911590 3184 80.91.229.3 (11 Jan 2013 13:39:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2013 13:39:50 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDZLHEGVZMOBBI5MYCDQKGQEL4WVN2Y-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jan 11 14:40:07 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-oa0-f56.google.com ([209.85.219.56]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tteq5-0000Mz-9U for gtp-pandoc-discuss@m.gmane.org; Fri, 11 Jan 2013 14:40:05 +0100 Original-Received: by mail-oa0-f56.google.com with SMTP id j6sf873607oag.21 for ; Fri, 11 Jan 2013 05:39:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-received:x-beenthere:x-received:x-received:received-spf :mime-version:in-reply-to:references:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=YxdXpl2g9q6fj+gT5jcfO7xcLu8beGH9t8Uw5tliQc4=; b=NKOQqfzQ3TdsjoFjMnwCffEtfyGizn2LgQNxxyySd+cUfkdpGENvg5TyXSYFB9acdi 9CEN2zCaSPEx893yfrm4br+3IJEdKnjuSb1Hk3GMoYBH/mXTGIkdHytx6U8etFGI6Cgn Wwyzx20FVqpzj53Zi1C+RoS39X7FiBCg0+DTGixJa13s4lZelK8rrpEv/X8WQTqsT/1z kaQXIjNClahnR2DVrKVH5FVMoVWPXwM8KvwNkstA47n/fCzQX1BcZXXGz3sxBFwuy/H4 jTA9aQ8fhupvPeSz6irOTiP3IM6jdgmmtgMYF5MsoxZhqi DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:x-beenthere:x-received:x-received:received-spf :mime-version:in-reply-to:references:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=YxdXpl2g9q6fj+gT5jcfO7xcLu8beGH9t8Uw5tliQc4=; b=Ju1gjNW5gyU9Qa99LNpYjSyFuxqUbAngkb4uRVWH/t9N/ylPnbc1gTpdMogi/qJrNk jDhd0kcWjQ0V7jmg6uf73OVgM0/uvLmXbwO6z1tRZuFTCDNxpGAieS4r5BGQuXQ2ZvLI zw0sjBHb9eqwH6jwMirsUvnVrQIcTEg7RMs4Ybl4HQWUNxbECxZTcTWFzZzoYXkNhqY+ DeTou9mYx5NdLEPrWIsZSKSx04trAY25JtDieHh43NuPOqGjfqqVaXnpLxmnbbcu2Mri LJSVX9bNbVoczE6NzD7zmhjQa/dW2S9CL2RH6Ms6g8gi+LqoO2lS+ X-Received: by 10.49.72.169 with SMTP id e9mr13926694qev.3.1357911588660; Fri, 11 Jan 2013 05:39:48 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.49.24.19 with SMTP id q19ls2303135qef.84.gmail; Fri, 11 Jan 2013 05:39:47 -0800 (PST) X-Received: by 10.236.156.227 with SMTP id m63mr1783138yhk.17.1357911587343; Fri, 11 Jan 2013 05:39:47 -0800 (PST) X-Received: by 10.236.156.227 with SMTP id m63mr1783136yhk.17.1357911587332; Fri, 11 Jan 2013 05:39:47 -0800 (PST) Original-Received: from mail-qc0-f169.google.com (mail-qc0-f169.google.com [209.85.216.169]) by gmr-mx.google.com with ESMTPS id fg3si775668qcb.2.2013.01.11.05.39.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Jan 2013 05:39:47 -0800 (PST) Received-SPF: pass (google.com: domain of chenhuashan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.216.169 as permitted sender) client-ip=209.85.216.169; Original-Received: by mail-qc0-f169.google.com with SMTP id t2so1117847qcq.28 for ; Fri, 11 Jan 2013 05:39:47 -0800 (PST) Original-Received: by 10.224.187.12 with SMTP id cu12mr61154737qab.1.1357911587153; Fri, 11 Jan 2013 05:39:47 -0800 (PST) Original-Received: by 10.49.121.170 with HTTP; Fri, 11 Jan 2013 05:39:46 -0800 (PST) In-Reply-To: <20130110172629.GB67105-9Rnp8PDaXcadBw3G0RLmbRFnWt+6NQIA@public.gmane.org> X-Original-Sender: chenhuashan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of chenhuashan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.216.169 as permitted sender) smtp.mail=chenhuashan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dkim=pass header.i=@gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Subscribe: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:5438 Archived-At: 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 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 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 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... >> >> >> : 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. > >