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

compilation error #35

Closed
blendsoft opened this issue Jan 18, 2013 · 4 comments
Closed

compilation error #35

blendsoft opened this issue Jan 18, 2013 · 4 comments

Comments

@blendsoft
Copy link

When I try to compile:

cilex/bin$ php ./compile

PHP Fatal error: Uncaught exception 'RuntimeException' with message 'The git binary cannot be found.' in /media/disk2/darek/yii/cilex/src/Cilex/Compiler.php:43
Stack trace:
#0 /media/disk2/darek/yii/cilex/bin/compile(13): Cilex\Compiler->compile()
#1 {main}

thrown in /media/disk2/darek/yii/cilex/src/Cilex/Compiler.php on line 43

Fatal error: Uncaught exception 'RuntimeException' with message 'The git binary cannot be found.' in /media/disk2/darek/yii/cilex/src/Cilex/Compiler.php on line 43

RuntimeException: The git binary cannot be found. in /media/disk2/darek/yii/cilex/src/Cilex/Compiler.php on line 43

but git is of course available on system

cilex/bin$ whereis git
git: /usr/bin/git /usr/bin/X11/git /usr/share/man/man1/git.1.gz

cilex/bin$ git
usage: git [--version] [--exec-path[=]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=] [--work-tree=] [--namespace=]
[-c name=value] [--help]
[]

@mvriel
Copy link
Member

mvriel commented Jan 19, 2013

This message is thrown because the command git log --pretty="%h %ci" -n1 HEAD returned an error code other than 0. This does not mean git is not available but rather that the command failed for some reason.

What happens if you execute that command at your location?

@kimausloos
Copy link
Contributor

I had the same issue and creating a new git repo, adding something and committing that takes care of the issue. I don't understand why that commit short commit hash and date is so required to build the phar file. Why not use the current date and time?

@mvriel
Copy link
Member

mvriel commented Feb 15, 2013

That specific part was re-used from the Compiler of Silex (as attributed in the fie); to be honest: I do not know the reasoning for that specific part

@kimausloos
Copy link
Contributor

Ok, I'll try to find out and send a PR if needed! Thanks

@Seldaek Seldaek closed this as completed Nov 20, 2016
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

4 participants