create laravel 5 project:
composer create-project laravel/laravel wifi dev-develop --prefer-dist
Error:
PHP Fatal error: Uncaught exception 'PharException' with message 'phar "/usr/local/bin/composer.phar" has a broken signature' in /usr/local/bin/composer.phar:23
Stack trace:
0 /usr/local/bin/composer.phar(23): Phar::mapPhar('composer.phar')
1 {main}
thrown in /usr/local/bin/composer.phar on line 23
This is a composer problem not a Laravel one.
Your composer.phar may be corrupted try to re-download the composer using the instructions from here
This is a composer problem, try:
Sudo su
composer self-update
Related
Here is the error I'm getting when trying to deploy to Heroku using the most recent stack (20)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
/tmp/build_20bfe735/vendor/ruby-2.6.6/bin/ruby -I
/tmp/build_20bfe735/vendor/ruby-2.6.6/lib/ruby/2.6.0 -r
./siteconf20210328-11397-1gaqmyj.rb extconf.rb
creating Makefile
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
make "DESTDIR=" clean
current directory:
/tmp/build_20bfe735/vendor/bundle/ruby/2.6.0/gems/prawn-gmagick-0.0.9/ext/image
make "DESTDIR="
compiling image.c
image.c:3:10: fatal error: wand/magick_wand.h: No such file or directory
3 | #include <wand/magick_wand.h>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:245: image.o] Error 1
make failed, exit code 2
Same error after I tried this buildpack with graphicsmagick
https://elements.heroku.com/buildpacks/bogini/heroku-buildpack-graphicsmagick
So, after playing a bit I made it work by adding 3 additional dependencies to the Aptfile in the example above
libgraphicsmagick++3
libgraphicsmagick++1-dev
libgraphicsmagick-q16-3
So the final Aptfile looks like this
debhelper
g++
gsfonts
libbz2-dev
libexif-dev
libfreetype6-dev
libice-dev
libjbig-dev
libjpeg-dev
liblcms2-dev
libltdl-dev
libpng-dev
libsm-dev
libtiff-dev
libwebp-dev
libwmf-dev
libx11-dev
libxext-dev
libxml2-dev
perl
sharutils
transfig
x11proto-core-dev
zlib1g-dev
libgraphicsmagick++3
libgraphicsmagick++1-dev
libgraphicsmagick-q16-3
And my buildpacks setup:
1. https://github.com/heroku/heroku-buildpack-apt
2. https://github.com/bogini/heroku-buildpack-graphicsmagick
3. heroku/ruby
Do you guys see any problem with any of those dependencies and setup?
After running: sudo apt-get upgrade I got:
Setting up google-cloud-sdk (274.0.1-0) ... Compiling
platform/bq/third_party/yaml/lib3/init.py ... File
"platform/bq/third_party/yaml/lib3/init.py", line 284
class YAMLObject(metaclass=YAMLObjectMetaclass):
^ SyntaxError: invalid syntax
Processing triggers for man-db (2.8.5-2) ...
I have Debian GNU/Linux 10
This is a bug on the new version of the SDK.
It is already being tracked by the Google Engineering Team on the issue tracker on this link: https://issuetracker.google.com/issues/146447037
I'm installing redis, everytime I run this command sudo apt install redis-server I got an unrecoverable fatal error
I already tried many solutions to completly remove redis, redis-server, but nothing worked, this is the error
dpkg: unrecoverable fatal error, aborting:
unknown user 'redis' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)
I solved it by opening the statoverride file using
sudo nano /var/lib/dpkg/statoverride
then removing the line with the user called "redis" along with any blank lines.
I downloaded the setup from official site and executed ./setup.py but got following error
File "./setup.py", line 54
print "Error when creating opscenter SSL files. Error was:\n"
^
SyntaxError: Missing parentheses in call to 'print'
any alternatives?
I am trying to get Frank/Cucumber Framework to run on Yosemite with XCode 6.1.
I have followed the instructions on how to install and frankify a project by:
gem install frank-cucumber
frank setup (in the project folder)
frank build
frank launch
Only the last part fails with a segmentation fault:
LAUNCHING APP...
sh: line 1: 15828 Trace/BPT trap: 5 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "showsdks" 2>&1
sh: line 1: 15832 Segmentation fault: 11 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "launch" "/Volumes/Project/CucuTest/Frank/frankified_build/Frankified.app" "--sdk" "--family" "iphone" "--exit" 2>&1
I know, that it is required to add the accessibility for Apps, so that the computer can be controlled by Apps. In Yosemite this has changed and I could not add /usr/bin/frank to the list, but I added the Terminal.app. Is this the problem or am I looking in the wrong place.
This is the first time I am using Frank/Cucumber.
For me installing ios-sim version 3 using brew install ios-sim as noted here did the trick.
Just want to re-iterate this question and ask for any help. I am seeing the same issue. I am also not clear on the steps to add accessibility and anything else under Yosemite.
sh: line 1: 6180 Trace/BPT trap: 5 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "showsdks" 2>&1
sh: line 1: 6184 Segmentation fault: 11 /Library/Ruby/Gems/2.0.0/gems/sim_launcher-0.4.13/lib/sim_launcher/../../native/ios-sim "launch" "/Users/ric
Hmmm.... Actually looks like there is an upstream Ruby error on the "Frank Setup"
create Frank/libShelleyMac.a
create Frank/plugins
System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require': cannot load such file -- xcodeproj/prebuilt/universal.x86_64-darwin14-2.0.0/xcodeproj_ext (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:126:in `require'
from /Library/Ruby/Gems/2.0.0/gems/xcodeproj-0.14.1/lib/xcodeproj/ext.rb:6:in `rescue in <top (required)>'