From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/5425 Path: news.gmane.org!not-for-mail From: Huashan Chen Newsgroups: gmane.text.pandoc Subject: Re: error on building the windows installer Date: Thu, 10 Jan 2013 22:48:04 +0800 Message-ID: References: <20121107171059.GA66573@Johns-MacBook-Pro.local> <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> 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 1357829288 30045 80.91.229.3 (10 Jan 2013 14:48:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 14:48:08 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDZLHEGVZMOBBJFJXODQKGQEFTC2NOA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jan 10 15:48:25 2013 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-gg0-f190.google.com ([209.85.161.190]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtJQb-0001hT-VZ for gtp-pandoc-discuss@m.gmane.org; Thu, 10 Jan 2013 15:48:22 +0100 Original-Received: by mail-gg0-f190.google.com with SMTP id r27sf366849ggj.7 for ; Thu, 10 Jan 2013 06:48:05 -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=cDgcgjGioWNwyKoAyMgTI2s/lO5h4d2Vz7OONGFASqI=; b=VUBpH1/aHvenh8Uh5Gb2s0xI4GXtVmJW3VgnxvxRKeq2ojxvpBUSAPz1b9eEV0D+B9 oXRpqqy2yin4DQu8CEsT1ft8/6rxGUF1+2p3+hxOk7fk+kEEa2jv/iEdJ6BBBFeSWVac 0k/L91QUhr8qYI8Ofx3Kf3m4l6qno3K58uNU46ZzneaE7MwWYtawZARGHPj8lgwa225d XxH5AYm6Ebkk9SnzHXdrgT6UQM4sh4ATl66vXFphnP4wVy6SF6Ax/Dsg3LwbhVROgaRY Dgiid/1L5R7D8MrOREfG9DE1iB1QYkLaDZmjYRjjpL0D0w 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=cDgcgjGioWNwyKoAyMgTI2s/lO5h4d2Vz7OONGFASqI=; b=CA45N3J+1TMkj0+3a6csByiEZ3Pltl2iPimoNsd0GnrXP4e3XXh4ACKiCvPcN4g01a aO6PVRLUOJ/3mL0EaOem4UOhxNH9BqpuITdkqe6U4vu7XV9GITUqtz7RVQipsi984j5G pICeWyFOEF8/DRhQzq9f50UbPIy1yNmn5EUc6dm9XHtyQy3x07EQImI3Xpay5lsKCdms r05JgoWSQFkYdaLK6+XnqHVTi2lBONOGPZ03Hz8bBOAakHY2SPlV1TFtY0WT/CK7p0RN o5Cv+kr3fqwwqmfDOceyqArBIUwSODoCY124AnM4AfRN4/KaVzBa2 X-Received: by 10.182.41.38 with SMTP id c6mr723543obl.0.1357829285609; Thu, 10 Jan 2013 06:48:05 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.49.26.166 with SMTP id m6ls1618825qeg.10.gmail; Thu, 10 Jan 2013 06:48:04 -0800 (PST) X-Received: by 10.224.190.193 with SMTP id dj1mr45009112qab.6.1357829284423; Thu, 10 Jan 2013 06:48:04 -0800 (PST) X-Received: by 10.224.190.193 with SMTP id dj1mr45009111qab.6.1357829284407; Thu, 10 Jan 2013 06:48:04 -0800 (PST) Original-Received: from mail-qc0-f175.google.com (mail-qc0-f175.google.com [209.85.216.175]) by gmr-mx.google.com with ESMTPS id y1si343032qco.0.2013.01.10.06.48.04 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Jan 2013 06:48:04 -0800 (PST) Received-SPF: pass (google.com: domain of chenhuashan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 209.85.216.175 as permitted sender) client-ip=209.85.216.175; Original-Received: by mail-qc0-f175.google.com with SMTP id j3so399614qcs.34 for ; Thu, 10 Jan 2013 06:48:04 -0800 (PST) Original-Received: by 10.49.3.234 with SMTP id f10mr67160219qef.52.1357829284287; Thu, 10 Jan 2013 06:48:04 -0800 (PST) Original-Received: by 10.49.121.170 with HTTP; Thu, 10 Jan 2013 06:48:04 -0800 (PST) In-Reply-To: <20130102235536.GA19032-nFAEphtLEs+AA6luYCgp0U1S2cYJDpTV9nwVQlTi/Pw@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.175 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:5425 Archived-At: 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. > >