I can not get the class graph to generate on Windows, and I am not sure where to look for an error. I installed Graphviz as an Administrator on Windows 7, and everything seems to be appear to be working.
I used the DocBlox.xml file that works on a Ubuntu computer and generates the graphics, but I do not get anything on Windows.
Any thoughts on what could be wrong, or where to look for errors?
Command Line in the main directory: docblox --force -v
docblox.xml -> DocBlox.xml
doxblox.log -> DocBlox.log
When I go to the project, the graphic is a simple graphical X in IE 8, for missing image.
Classes.svg is 2K.
Usually this happens because DocBlox is unable to find the dot executable that is installed with GraphViz. This is easily tested by going to an arbitrary directory in your Command Prompt and typing dot.
If this does not work then you need to add the GraphViz binary folder to your path.
Should this not be the solution; please paste your output when using the -v (verbose) option so that DocBlox will output additional information.
Update
It appears I either misread the opening post or the subsequent edits: there is nothing wrong with your DocBlox installation. IE8 and below do not natively support SVG; in order for this to work you would need to either upgrade your browser or install the (now discontinued) Adobe SVG Plugin.
Related
So I'm in the process of getting into a project that already exists, including hosting it.
I've got all the source code (have yet to transfer the files from the old hosting)
The webpage is hosted on a Plesk Onyx 17.8.11, OS Ubuntu 18.04.3 LTS.
Most of the website runs like a charm, sans anything that includes loading files and the generating of pdfs (maybe other stuff I haven't found yet).
When I want to generate a pdf (using a queue worker), I get the error sh: 1: wkhtmltopdf: not found in my laravel.log, which points to the line of code that catches any errors thrown in the pdf-generation.
wkhtmltopdf is installed via composer (and also in the composer.json), both in the project and globally. I already searched the web, and found the hint to use the binary option. However, since the codebase is not exactly small, and I know it runs fine on another host, I don't want to change all instances of generatePdf() to include the option. Because it runs on another server, it feels like there's some configuration I'm getting wrong.
Thanks in advance!
Update: I had to install wkhtmltopdf with patched qt, as described here, now it works like a charm.
Using the hint from #cOle2, I got wkhtmltopdf via apt-get instead of composer. This made wkhtmltopdf usable from anywhere and lead me to another error: The switch --footer-html, is not support using unpatched qt, and will be ignored.qt.qpa.screen: QXcbConnection: Could not connect to display\nCould not connect to any X display. This error lead me here, and reinstalling wkhtmltopdf as described there fixed the problem.
tl;dr Install wkhtmltopdf as binary WITH patched qt.
I am trying to open a browser locally to debug what I am writing in PhpStorm. However regardless of everything I have installed PhpStorm constantly complains with "php-cgi not found" issue.
I have installed homebrew with PHP 5.6
I have installed fastcgi and I've read up pretty much everything there is for this error. However I am still getting this "php-cgi not found" issue
I have installed Apache using this guide http://jason.pureconcepts.net/2015/10/install-apache-php-mysql-mac-os-x-el-capitan/
When I access http://localhost/phpinfo.php I can see the php info
Here's what just worked for me - as I was having the very same issue. Note that I was looking to install PHP 5.6.x here, so this answer conforms to that, and as of this writing, 5.6.36 was the most current version of 5.6 that brew had available. Obviously we're also dealing with MAC here.
Open Terminal
If you have brew installed, type brew install php56
Once completed, your terminal window will contain a plethora of information. One thing to look for is the path to PHP that was just installed. Look for If you need to have this software first in your PATH run:. Just below that, you'll see two paths listed. One ends in bin, the other in sbin. You want the one that ends in bin.
Open PHPStorm's PHP CLI Configuration (Preferences -> Languages & Frameworks -> PHP)
At the end of the CLI Interpreter box, click the ... to open up the options.
Click the + on the top-left to add a new interpreter.
I typed "PHP 5.6" in the "Name" field... type whatever you'd like to appear.
In the PHP executable field, enter the following /usr/local/Cellar/php#5.6/5.6.36_1/bin/php-cgi (again, this is based on the path you will find in your terminal window - described in the third step above)
Once you enter that and leave the field, PHP Storm should detect the build and where the php.ini file is located, automatically.
Click "Ok"
You're done. This worked for me on three different installations.
Hope this helps someone.
I have VSCode installed, but don't seem to have php - i.e. there is no "php.exe" anywhere on my computer. No guides that I can find on the web about setting VSCode up for PHP suggests that I need to download and install php itself seperately (only debuggers and linters)... my question is:
Do I need to install PHP seperately? Should I have had to do this, or is there a bug in my VSCode installation...
Yes you need to install PHP from the php website and then tell VSCode where PHP.exe is located.
VSCode is an editor not an interpreter.
I think if you install PHP at the default location VSCode will automaticly pick it up but if not you need to specify its path in options.
If you install XAMPP you will get apache,php and mySql in one installation.
EDIT: an interpreter is software that translated your code(in your case PHP) into code that the CPU can understand and then executes.
#kpollock it' not you. Yes, it should seem obvious that the language should be installed manually or separately, so you should have gotten that part, sorry. But no, there doesn't seem to be information anywhere about defining the underpinnings. This "understanding" seems to be left to the individual through research as you're doing.
After I installed PHP I manually set my environment PATH to include the PHP folder. OR in VS Code you can go to menu>File>Preferences>User Settings, the settings are maintained as a JSON object (unlike VS) and there is a PHP section for the .exe path.
Since you mentioned Node, you may not have installed Node.js manually. (I don't know if Node comes with VS Code either.) It might have come in with a VS2015 extension like Gulp or some other higher-level functionality, or maybe it was an installation option with VSC. If you can't use node or npm from a console, set your environment PATH to include it.
Today I have tried to install imagick in my xampp a hundred times. And I did it. If you have troubles, please try following these steps:
Since xampp is x86, check if your Image Magick (the program) is x86. If not, download the latest version here: imagemagick.org/script/binary-releases.php#windows
Please remember that u MUST download the Win32 dynamic at 16 bits-per-pixel.
Install Image Magick at C:\imagemagick.
Download the latest stable version of imagick here: . You MUST download the 5.x Thread Safe (TS) x86. The x in 5.x is the version of your PHP.
Put the php_imagick.dll in php/ext folder of your xampp installation.
Add this in your php.ini: extension=php_imagick.dll
Here is when I have a lot of trouble. If you try to start the server (or writing php in the console (start->cmd)), you will get an error. If that error says something like this: Unable to find the entry point for the procedure FlattenImages in the DLL CORE_RL_magick.dll it means that you're well underway.
Now, you must go into the installation folder of Image Magick and overwrite the DLL you downloaded with the php_imagick.dll. All of them start with the prefix CORE_RL_.
Once you overwrote all of them, you can try writing php in the windows console. I don't say something means that the imagick is functional (you can check in localhost/xampp/ > phpinfo() link. Personally, I had to install a new DLL: vcomp110.dll.
If someone has the same error as me (the system can't found the vcomp11.dd) download it here
Now, if you try executing php on console, or just initializing the apache module of xampp, you should not have errors.
Goodbye and hope I can help someone.
EDIT: when tried to convert some-img.bmp some-result.jpg in the console, I had this error:
convert.exe: unable to open module file 'C:\Users\my-acc\.magick\IM_MOD_RL_BMP_.dll': No such file or directory # ...
This happened when there is no folder .magick in my-acc. The thing you need to do is this:
Create a folder named .magick in the my-acc folder. Since the name starts with a stop, you need to create it through the console. Here are the commands:
1.1. c:
1.2. cd Users\my-acc
1.3. mkdir .magick
Go to C:\imagemagick\modules\coders and copy the entire files into the latest folder created.
Now, you will be able to use Image Magick through the commands or the PHP Classes.
On background, if you use Codeigniter, i have no idea how to use the image_lib with imagick. So, it's better with the own imagick classes. Here a simple example:
$image = new Imagick($upload_data['full_path']);
$image->thumbnailImage(250,0);
if($image->writeImage($upload_data['file_path'].$upload_data['raw_name'].'_thumb'.$upload_data['file_ext'])){
something here;
}
$image->clear();
This answer might be extremely naive, but, I've found that getting things done in Windows is generally too painful. Many people agree with that and have found solace in a tool known as "chocolatey".
First, install chocolatey on your Windows machine (super easy install instructions):
https://chocolatey.org/
Then, use chocolatey to install everything else that you need (imagemagick in this case):
https://chocolatey.org/packages/imagemagick
I suspect you might have to do some minor tweaking to configuration files after that, plus handle all of the "Windows permissions" needed to get things to work smoothly. Permissions are can be as simple (and not necessarily safe) as "full control" to some user, plus activating inheritance and overwriting all children's settings to use inheritance.
In short, install, configure, permissions, go.
PS. This answer might be incomplete/prototypical/experimental, since I don't run codeigniter, php, imagemagick on Windows.
This how-to of Winderfind is wonderful, but for me it was not yet complete to troubleshoot all problems. First of all, have a look at this tutorial:
http://hrt0kmt.hatenablog.com/entry/2015/05/27/170608
Secondly I discovered that not all versions of ImageMagick will work with all versions of php_imagick.dll. Check out my and others answers on this post for further troubleshooting:
ImageMagick supported formats no value
Great tutorial,
If you are running windows 11, and installing xampp with php 8.1, you need to install 64bit versions:
Win32 dynamic at 16 bits-per-pixel
Becomes
Win64 dynamic at 16 bits-per-pixel
And
5.x Thread Safe (TS) x86
Becomes
8.1 Thread Safe (TS) x64
If you've installed the 32bit versions (as I did), you can just download the 64bit versions and overwrite all the files. Then restart apache and it should start working.
I'm using a windows machine for local development and I'd like to install php_svn so I can write some code in php that provides an svn interface for a web app so that the client can download all their files easily. The php4win site is down, and I can't find the php_svn.dll anywhere and running pecl.bat install svn doesnae work either. "The DSP svn.dsp could not be found" I'd be very grateful if anyone has any information on how I can install this php extension on windows, and the /pierre site doesn't seem to contain the php_svn extension within it.
Just by doing a few quick searches on your request, I couldn't find it, either. It looks like you'll either have to compile the library for Windows, yourself, or try the method that Björn mentions on this answer.
Alin, thanks for your effort. I ended up with using the svn command line client directly from php. Like this $Res = svn --non-interactive ls -R -v "file:///C:/Proj/Svn/..." and then parsing the result string.