jimthunderbird / php-to-c-extension

127 stars 28 forks source link

Errors when attempting a conversion #15

Open dhammerindy opened 8 years ago

dhammerindy commented 8 years ago

Please forgive my formatting of this message if it is incorrect. This is my first post here. I've attempted to install php-to-c-extension as outlined in the instructions but something hasn't gone right. When I attempt a conversion I get this...

$ php php-to-c-extension/build_extensions.php Dummy.php Installing zephir... You need to run this command from the toplevel of the working tree. sh: autogen.sh: No such file or directory ./install-json: line 5: ./configure: No such file or directory make: *\ No targets specified and no makefile found. Stop. Parser statistics: 127 terminals, 99 nonterminals, 458 rules 945 states, 0 parser table entries, 0 conflicts parser.c:9:25: error: json-c/json.h: No such file or directory In file included from parser.c:14:

After this comes a long list of entries that look like this:

parser.c:8898: error: âsyntax_errorâ undeclared (first use in this function) parser.c:8911: error: âxx_parser_statusâ has no member named âscanner_stateâ parser.c:8917: error: âxx_parser_statusâ has no member named âscanner_stateâ parser.c:8918: error: âxx_parser_statusâ has no member named âscanner_stateâ

What am I missing here? This is being run on a test OS. I am running CentOS 6.8 which is a VPS powered by VirtualBox. Should I try running this on a different OS? Was there simply an issue with my install where something not listed in the 4 steps didn't get included? My install method for Composer used the Global method.

Any help you can provide would be greatly appreciated. I am really eager to see your application at work.

Stevehans commented 6 years ago

Solution to the first bit is to clone into json-c

git clone https://github.com/json-c/json-c.git

But then you end up with other issues which I'm still looking at!