I was able to compile under cygwin, but I want to deploy beancount to run 
on a WIndows machine without cygwin on it. Is there anyway to run the 
cygwin compiled version from the Windows command prompt or git bash?

I've also been trying to compile under Visual C++. I'm running into a 
number of problems:

1) No unistd.h file (I created a fake one and got past this for now)
2) Lots of warnings mainly about converting from size_t to int
3) A compile error parser.c (273) error C2059: syntax error: 'bad suffix on 
number'. This is the line which uses the PARSER_SOURCE_HASH macro. Looking 
on StackOverflow this is probably that and unsigned long int is being used 
and Visual C++ wants an unsigned __int64(or something like that.)

Does anyone know how to get past these issues?

Thanks,

Len


On Monday, June 8, 2015 at 6:48:10 PM UTC-5, [email protected] wrote:
>
> Starting a new thread for installation of Beancount on Windows. This came 
> from this thread: 
> https://groups.google.com/d/msg/beancount/qaZS7sMbiHs/firV9jRW0AEJ
>  
> I tried to install Beancount on Windows and have been unsuccessful so far. 
> I haven't spent much time on it though. The problem is, the install process 
> requires C compilation at some stage, and this fails:
>
> src/python/beancount/parser/parser.c: In function 'PyInit__parser': 
> <command-line>:0:20: error: invalid suffix "f1cf...." on integer constant
> src/python/beancount/parser/parser.c:272:50: note: in expansion of macro 
> 'PARSE_SOURCE_HASH'
>
> Steps to get this far:
> 1) Install Python-3.4 under Windows
> 2) Install MinGW32 for Windows. I believe the MinGW Base System (chosen 
> via the MinGW installer) is adequate, though I'm not sure.
> 3) Follow this to point Python's distutil to MinGW: 
> http://stackoverflow.com/questions/3297254/how-to-use-mingws-gcc-compiler-when-installing-python-package-using-pip
> 4) Set your PATH in a cmd window to include both MinGW\bin and \Python34
> 5) Open a cmd window and follow beancount install instructions
>
> Perhaps this will work better if Visual C++ is used instead of MinGW, I 
> don't know. I haven't dug any deeper. I'll post if I do.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/0d92f292-50b7-4776-9c53-d1a6fba2d565%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to