phpDocumentor crashing when using graphviz - graphviz

I just managed to get "dot" installed correctly, per a warning in phpDocumentor. Now when I try to build my docs, however, I am getting the exception:
[phpDocumentor\GraphViz\Exception]
An error occurred while creating the graph; GraphViz returned: Format: "svg" not recognized. Use one of:
Does anyone know how to get past this? The command I am running is:
php phpdoc.php -c mypath/phpdoc.dist.xml -p

I had this same issue, running sudo dot -c fixed it for me.

Related

install-pkg command in not working in repl.it

Here is my code:
install-pkg "Minecraft.deb"
I am trying to install a .deb package and whenever I run the code, I get an error message telling me that they could not find the install-pkg command.
I cannot find out how to do it. Any help?
Try with dpkg -i Minecraft.deb

Composer fails [UnexpectedValueException]

After installing a new version of a Magento 2 module composer fails on every command. Also the backend of Magento isn't working anymore:
1 exception(s):
Exception #0 (UnexpectedValueException): Package magento/composer's
source key should be specified as {"type": ..., "url": ...,
"reference": ...},
{"type":"git","url":"https:\/\/github.com\/magento\/composer.git","reference":null} given.
Also when using composer -v command via ssh the same error is showing.
When trying to flush the cache via ssh the same error is showing and also an extra error:
Fatal error: Uncaught Error: Class 'Cli' not found in
Does anyone know how to fix this?
Few things you can try:
Try to reinstall composer.
Also you can try running composer clear-cache. Also check for any running composer process and kill then first.
If this is still an issue anyone has I found through much digging that reference cannot be set to null. If a download from source is necessary than I recommend moving up a directory for your url or use a dist instead of source

Unable to change GO version in PhotonOS

I have deployed PhotonOS using directions from photon and VIC configuration, while running command docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.6 make all
an Error appears:
Please install go1.7 (found: go version go1.6.3 linux/amd64)
Makefile:152: recipe for target 'goversion' failed
make: *** [goversion] Error 1
`
to solve it I have tried to update
go1.6.3 to go1.7 using solution - changeing go version manually
after steps go version is showing go1.4.2, but the previous error still complains on go version 1.6.3.
Also, I have tried to install "gvm" using bash < <(curl -s -S -L https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer) , whenever I try to call gvm install go1.7 it brings
-bash: gvm: command not found
whenever I retry running gvm-installer it says
ERROR: Already installed!
Any help is highly appreciated!!
use :
docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.7 make all
command instead, that will work on PhotonOS

Getting Unknown flag: -v when i run protoc -version in my ubuntu

I'm getting the following message when i run protoc -version in my ubuntu terminal.
Unknown flag: -v
Earlier to this, I had got the following error when I ran protoc -version. I found a solution through google and ran "sudo ldconfig /usr/local/lib". After running that, I'm getting the Unknown flag message as mentioned above. Can anyone help me to resolve this? Thanks in advance.
protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory
Long flags require two dashes. Try:
protoc --version
(Common Unix convention says that if you write -abc (with one dash), it means the same thing as -a -b -c, which is why you get the error saying that there is no flag -v. Admittedly, there are a lot of Unix programs that don't follow this rule, but protoc does follow it.)

Error -60005 when install Cocos2d-iPhone v3 RC4

When I try to install Cocos2d-iphone 3.0.0 RC4, I got an error: (run without sudo)
Error -60005 occurred while executing script with privileges.
So, I try to show its package content and use terminal to do: cd ...Cocos2D Installer 3.0.0.app/Contents/MacOS
I try this command: (with sudo)
sudo ./Cocos2D\ Installer\ 3.0.0
It works but I got log with some errors:
[1m>>> Installing Cocos2D-v3.0.0 files (B[m
[1m>>> Installing Cocos2D-v3.0.0 templates (B[m
[4m[1mCocos2D Template Installer (Cocos2D-v3.0.0)(B[m
Error: [31m✖︎(B[m Script cannot be executed as root.
In order for it to work properly, please execute the script again without 'sudo'.
If you want to know more about how to use this script execute '/Users/viethung/Downloads/Cocos2D-v3.0.0/install.sh --help'.
[1m>>> Building/Installing Cocos2D-v3.0.0 documentation, this may take a minute.... (B[m
appledoc version: 2.2 (build 963)
Generation step 4/5 failed: GBDocSetInstallGenerator failed generating output, aborting!
Documentation set was installed, but couldn't reload documentation within Xcode.
Xcode got an error: No documentation set present at specified path.
[1m>>> Cocos2D-v3.0.0 installation complete! (B[m
Are there any way is better than this way?
I have same problem.
I think you installed old cocos2d-iphone and it caused this problem.
You should remove old cocos2d-iphone first. I removed:
~/Library/Developer/Xcode/cocos2d v3.x
And install again. It works for me.
Hope it works for you :)

Resources