No need to modify the code, just replace CFLAGS += $(shell $(PYCONFIG) --cflags) -I$(PWD) -fPIE -UNDEBUG -Wno-unused-function -Wno-unused-variable with CFLAGS += $(shell $(PYCONFIG) --cflags) -I$(PWD) -fPIE -UNDEBUG -Wno-unused-function -Wno-unused-variable -std=c99 in file https://github.com/beancount/beancount/blob/master/Makefile and rerun the build process.
Le mar. 2 févr. 2021 à 00:58, William Bean <[email protected]> a écrit : > Ahh yea it probably is the compiler version, thanks. So would I just > modify tokens.c on my local copy as the error (and you previously) > suggested and see if that works? > > On Mon, Feb 1, 2021, 6:53 PM Altynbek Isabekov < > [email protected]> wrote: > >> If 4.4.7-23 is the version of your GCC compiler and not Red Hat OS, then >> its default C standard is ANSI (with GNU extensions, i.e. "-std=c90" ). >> >> Constructions such: >> for (size_t i = 0; i < len; ++i) { >> ... >> >> } >> >> in >> https://github.com/beancount/beancount/blob/master/beancount/parser/tokens.c >> >> won't work, you need specify a newer C standard (C99) or install a newer >> version of GCC. >> >> >> >> Le mar. 2 févr. 2021 à 00:27, William Bean <[email protected]> a écrit : >> >>> Oof I can double check, but that's what it was spitting out for me. >>> >>> On Mon, Feb 1, 2021, 5:39 PM Daniele Nicolodi <[email protected]> >>> wrote: >>> >>>> On 01/02/2021 23:31, William Bean wrote: >>>> > I've been trying to install Beancount on my new shared hosting account >>>> > today and haven't had any luck. I ended up needing to do a git clone >>>> and >>>> > manual install because I couldn't get pip to work. I do have compile >>>> > access and it seemed to almost install. The os is Red Hat 4.4.7-23 >>>> >>>> Are you sure of this version number? That would point to a RedHat >>>> version released in 2006. I would not like to run a shared hosting >>>> platform on something so old. >>>> >>>> Cheers, >>>> Dan >>>> >>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "Beancount" group. >>>> To unsubscribe from this topic, visit >>>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/beancount/a2409688-c301-3733-82a2-713e8cfa1853%40grinta.net >>>> . >>>> >>> -- >>> 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 view this discussion on the web visit >>> https://groups.google.com/d/msgid/beancount/CAO0DHEAfxBYMUbbmAyEc%2Bxfb-G6NOG%3DMQ9xgG%3DKrEzeh0fv2fQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/beancount/CAO0DHEAfxBYMUbbmAyEc%2Bxfb-G6NOG%3DMQ9xgG%3DKrEzeh0fv2fQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Sincerely yours, Altynbek >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Beancount" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/beancount/CAOm1zMPDdGgx6mm3C9rFbrHg02PNk0h5YRp8OvUmrCSM7Tv%3D8g%40mail.gmail.com >> <https://groups.google.com/d/msgid/beancount/CAOm1zMPDdGgx6mm3C9rFbrHg02PNk0h5YRp8OvUmrCSM7Tv%3D8g%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/CAO0DHECRGj6MUsu0ECYRWVzUE-a3V9DXy6vdTgG9OE%2BiZ7B89g%40mail.gmail.com > <https://groups.google.com/d/msgid/beancount/CAO0DHECRGj6MUsu0ECYRWVzUE-a3V9DXy6vdTgG9OE%2BiZ7B89g%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- Sincerely yours, Altynbek -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAOm1zMPDNvETHxmh6NdTNsT6H3RO0-V4LFzUnk5o9Qw_4w1ojg%40mail.gmail.com.
