-
-
Notifications
You must be signed in to change notification settings - Fork 197
[Bug]: Php binary /vendor/nativephp/electron/resources/js/resources/php: 1: Syntax error: "(" unexpected #23
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
Comments
I am facing same issue |
I managed to use the project in Ubuntu After you run php artisan native:install, say no when it ask you to run the server. Then, copy you php file from /usr/bin/php to nativephp/vendor/nativephp/php-bin/bin/mac/x86. After that when you run php artisan native:run it will use your php library instead of the mac php library version |
@antonioanerao is there any workaround for windows |
Sorry I didnt tried it |
its not working for me. i'm using linux, any other alternative solution |
copy your php file from /vendor/nativephp/php-bin/bin/linux/x64 to /vendor/nativephp/php-bin/bin/mac/x86. |
this works on ubuntu |
this is not working in zorin os
vite v4.4.7 building for development... watching for file changes... build started... build the electron main process successfully vite v4.4.7 building for development... watching for file changes... build started... build the electron preload files successfully dev server running for the electron renderer process at: ➜ Local: http://localhost:5173/ start electron app... node:events:492 Error: spawn /home/nodesol/vendor/nativephp/electron/resources/js/node_modules/electron/dist/electron ENOENT Node.js v18.17.0 My system: |
Closing this as we don't have official Linux support yet. |
how come? |
looking forward to have it as i will simplify this up fast |
Work for me |
Yep. Thanks. |
J'ai un bug sur windows : Error: spawn php ENOENT |
What happened?
Error: Command failed: /home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/resources/php artisan native:config
/home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/resources/php: 1: Syntax error: "(" unexpected
code: 2,
killed: false,
signal: null,
cmd: '/home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/resources/php artisan native:config',
stdout: '',
stderr: '/home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/resources/php: 1: Syntax error: "(" unexpected\n'
}
API server started on port 4000
Starting PHP server... /home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/resources/php artisan serve /home/sayed/Desktop/DesktopApps/ray
Making sure app folders are available
Migrating database...
/home/sayed/Desktop/DesktopApps/ray/vendor/nativephp/electron/resources/js/resources/php: 1: Syntax error: "(" unexpected
How to reproduce the bug
php artisan native:serve
Package Version
0.10
PHP Version
8.1
Laravel Version
10
Which operating systems does with happen with?
Linux
Notes
No response
The text was updated successfully, but these errors were encountered: