Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when attempting a conversion #15

Open
dhammerindy opened this issue Jun 4, 2016 · 1 comment
Open

Errors when attempting a conversion #15

dhammerindy opened this issue Jun 4, 2016 · 1 comment

Comments

@dhammerindy
Copy link

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants