As this blog suggested
blog
My Environment
windows 7 64-bit
xampp 5.6.12 32-bit
I installed ImageMagic for windows (32bit)
Setted environment path of ImageMagic and MAGICK_HOME variable
Downloaded the php_imagick.dll and pasted in C:\xampp\php\ext and the file name started with CORE_RL_* in C:\xampp\apache\bin
Now when apache starts it shows error
the programme can't start because VCOMP110.DLL is missing from your computer. try reinstall program to fix this problem
I don't know why this error occurs.
Also I installed vcredist_x86.exe
You are getting the following error message:
The program can't start because VCOMP110.DLL is missing from your computer. Try reinstalling the program to fix this problem.
This means that you did not install the Visual C++ Redistributable for Visual Studio 2012. You can download it from this page: https://www.microsoft.com/en-us/download/details.aspx?id=30679
I am late here, but maybe it helps someone, you can check the Architecture using phpinfo().
ImageMagick + Imagick + PHP on XAMPP
Environment
Windows7
32bit OS
XAMPP v3.2.1
Step for install
Install Imagick (PHP Extention).
Install DLL of extension module.
Setting DLL.
1. Install ImageMagick (PHP Extention) under C:/
Install PHP Extention.
You must install correct version which corresponded to your OS version. i installed 32 bit version ImageMagick-6.9.1-10-Q16-x86-dll.exe.
Confirm extension_dir of phpinfo(); below is ok.
extention_dir C:/xampp/php/ext
2. Install DLL & Setting
2-1. Install PHP Extension
Install by PECL
!! Then confirm phpinfo(); you should select install.
Case of enabled > php_imagick.dll, TS
Case of disabled > php_imagick.dll, NTS
2-2. DLL file move into extension folder
php_imagick.dll in download folder move to C:/xampp/php/ext
2-3. CORE_RL_* move into Apache binary folder
CORE_RL_* file move into C:/xampp/apache/bin
2-4. Add extension to php.ini
You should write extension=php_imagick.dll on php.ini ( !! Write under [PECL] ).
3. Setting Environment
Add MAGICK_HOME to your environment PATH.
Try phpinfo();
4. convert image on CLI
>convert wizard: wizard.jpg
>convert wizard.jpg win:
But in this state, ImageMagick number of supported formats is 0 and ImageMagick supported formats is no value so you should do below.
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/coders copy to C:/xampp/apache/bin
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/filters copy to C:/xampp/apache/bin
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/coders copy to C:/ImageMagick-6.9.1-Q16
All *_.dll file in C:/ImageMagick-6.9.1-Q16/modules/filters copy to C:/ImageMagick-6.9.1-Q16
Restart Apache
taken from:
http://hrt0kmt.hatenablog.com/entry/2015/05/27/170608
Related
I am trying to install mingw-w64 onto Windows. However I receive an error, "the file has been downloaded incorrectly". Redownloading the setup file again from sourceforge does not fix the problem. Is there an alternative way to install it or am I doing something wrong?
Old post but same problem, the installer doesn't seem to work.
I give the solution which works for me
You can directly download the archive of MinGW64 with your chosen configuration :
https://sourceforge.net/projects/mingw-w64/files/mingw-w64/
Once the compressed file downloaded, you have just to extract and copy/paste the MinGW64 folder( with the pre-compiled librairies) to your chosen folder ( in my case : C:\mingw64)
I got same error and solved it, after struggling a few hours. You should download MinGW64 via https://winlibs.com/#download-release.
After downloading, You should unzip mingw64 file to a folder(in my case I unzipped it to c disk; C:\mingw64)
And then you have to set up path. for that follow below steps;
open settings.
Search for Edit environment variables for your
account.
choose path variable and then select edit.
Select New and add the Mingw-w64 folder path(bin folder). In my case, I added (C:\mingw64\bin).
Select OK to save the updated path.
And reopen your cmd, then check if everything is good by typing; gcc --version
Long story short, the official installer is broken and not been fixed for years, so we have to install it manually.
The official download link above would bring you to sourceforge: https://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win32/Personal Builds/mingw-builds/installer/mingw-w64-install.exe
And in the same folder that contains the installer, there's a repository.txt. (about this file)
Take a look at it, the installer basically just download and unzip the build from one of these urls within repository.txt. Choose the url you want and download/upzip it manually. (In my case, I use 8.1.0|x86_64|posix|seh|rev0 setup)
Last, setup the Path environment variable pointing to your unzipped bin folder, let say C:\mingw64\bin, and this should do the trick.
Finally, I solved this problem by downloading this:http://winlibs.com/
GCC 10.1.0 + LLVM/Clang/LLD/LLDB 10.0.0 + MinGW-w64 7.0.0 - release 3 (LATEST)
Win32: 7-Zip archive* | Zip archive
Win64: 7-Zip archive* | Zip archive
and set the %path%
After that, I still can't execute gcc correctly, but then I solved the problem by adding this environment variable:
"CGO_ENABLED=1"
I encountered the problem when using this golang package: https://github.com/mattn/go-sqlite3
I received the same error. When I re-ran the installer as an adminstrator it was installed successfully.
I also made sure not to add any spaces to the installation path.
Following this tutorial helped me manually install MinGW for windows : youtube
So the problem for me was that when I tried to use the .exe installer, it either showed me that,
"the file has been downloaded incorrectly" , or , the /.../bin folder did not have any files in it.
In the link above, the MinGW files (including the /bin files) were manually downloaded and identified properly by the Environment Variables.
The problem is with your internet connection and/or ISP. I'm not great at networking so I'll let others be more specific. I tried installing/downloading it using my mobile's data as wifi hotspot and it worked. Hope it helps
I'm trying to add tesseract to be able to install pytesseract.
I use Windows 7.
I add this path to my PATH environmental variable
C:\Program Files (x86)\Tesseract-OCR\tesseract.exe
From the command line if I run
tesseract DMTX_screenshot.png out
OR
tesseract
I'm getting
tesseract is not recognized as an internal or external command.
Here is a copy-paste of the a portion of my environmental variable:
C:\Program Files (x86)\Tesseract-OCR\tesseract.exe;C:\Users\Moondra\Anaconda_related\Anaconda\geckodriver.exe;
Any ideas as to what I may be doing wrong?
Thank you.
The PATH variable should include directories only, not files, such as C:\Program Files (x86)\Tesseract-OCR.
The solution is the following you have to add cd first ...
Example:
cd C:\Program Files (x86)\Tesseract-OCR
C:\Program Files (x86)\Tesseract-OCR> tesseract --version
So It seems there are two version for Windows, 4.00 and 3.05 -- 4.00 is still buggy.
I installed the 3.05 version and seems to work fine now.
Here is where I got the 3.05 version.
https://github.com/UB-Mannheim/tesseract/wiki
After adding tesseract to PATH, make sure you restart your PC.
It only worked after the restart.
Just add the folder to the Path under Windows (not sure with Win7):
Control Panel > System and Security > System >
Advanced system settings > Advanced > Environment variables > PATH > New
I was also having this problem initially. Don't install tesseract via pip install tesseract.
Go to https://github.com/UB-Mannheim/tesseract/wiki and then download latest version for your computer and install that.
Then type sysdm.cpl and add the directory where tesseract.exe is present to env. variables.
for eg: C:\Program Files\Tesseract-OCR
This solved it for me.
Add C:\msys64\mingw32\bin to PATH variable in case you've installed it using pacman or msys2.
Go to the location where you have installed Tesseract-OCR on the terminal and then type tesseract -v. This worked for me.
Afters hours and hours spend on trying to install zephir on my windows 8, i finally managed to build an single .zep file !
Now, i've copied the .dll from /ext/Release directory, into my xampp/php/ext and added the extension=.dll in my php.ini - I'm using latest xampp with php 5.5.24 - and when I restart my Apache, the httpd.exe throws an error "The program can't start because php5.dll is missing form your computer". I'm really baffled by this eror, searching on net for the last hours and I can't find an answer !
Does anyone had this issue before ?
Problem 2) I've install vagrant and followed the tutorial from blog, and managed to install everything.Then I went to /vagrant directory as it is shared between the host and the guest, used zaphir init , all the files were generated, then copied my .zep file from my windows host into the right directory and runned zephir build. Again all went fine, the .so file was created but as my main development platform is on windows, i wanted to use the files from /etc/ to build the .dll extension for my xampp installation - to be honest i didn't tried to use the .so extension and test if the extension works on linux - .
Now, using the Developer Command Promt for Visual Studio 2012, i tried to run command "cl .c" inside the /ext/ directory that was build by zaphir on linux, but an fatal error its appearing in my developer command promt "Fatal error C1083: Cannot open include file: php.h: No such file or directory"
The greatest way for me would be to compile the extension for both windows, my dev. pc but for linux also !
Could please someone help me with this issues ? Give me some guidance as I have to admit, I don't have knowledge about developing/compiling in C !
Thank you
Have you followed https://github.com/phalcon/zephir/blob/master/WINDOWS.md ?
I generally do not recommend xampp since it uses the TS version of PHP.
This means you generally have to replace anything in the manual
containg NTS with TS.
(The most important part is that you download a devpack for TS insteadof NTS, as the manual specifies.)
Whenever I try to install the Visual Studio SDK I get the following error:
Windows Program Compatibility mode is on. Turn it off and then try Setup again.
I have checked and Compatibility mode is not turned on. From what I've read, renaming the installer to vssdk_full.exe should help. That hasn't had any impact.
I got the installer from Microsoft's website.
What do I need to do to get this to install?
Are you installing on Windows 10? If so, then I have the same problem and it seems as though the current SDK setup is checking the Windows version and 10 isn't currently supported. See https://social.technet.microsoft.com/Forums/en-US/77c61be0-1303-4040-a587-62843d321159/visual-studio-2013-sdk?forum=WinPreview2014General for more info
I have managed to get it to install on windows 10, download the sdk, it will download vssdk_full.exe, run this with /layout path which will extract the actual setup file.
Then set compatibility on the new file to win 8 and it will install just fine.
You might not need to do the/layout thing but that is what I did.
ed
I had the same problem. I downloaded .iso file with install package form the internet. Then I mounted it using PowerISO and tried to start it from virtual CD drive. It ended up in the same message as above.
I looked it up and thought that in Properties of .exe install file, it's enough to uncheck some boxes compability section. But nothing was checked.
Soon afterwards I unzipped the package to a temporary directory with PowerISO and installed Visual from there. Worked without problems.
I had this problem, I renamed the instalation file to "vssdk_full.exe" and it installed without problems.
We are test driving Mercurial at work. We don't want to have to enter our user/pass each time we interact with a repository, so we set up the mercurial_keyring extension. We:
Installed Python 2.6.5 (32 or 64 bit, depending on the system)
Installed setuptools (for easy_install.exe)
easy_install keyring
easy_install mercurial_keyring
And then made the appropriate changes to %userprofile%/mercurial.ini in the [auth] section. It works fine on my colleague's computer (32bit xp sp3), but it does not work on my machine (Windows 7 Ultimate x64). Also noteworthy, the setuptools had to be built from source on Win 7 x64 (python setup.py bdist_wininst, then run the resulting setuptools-0.6c11.win-amd64.exe).
Using just hg.exe from the Mercurial 1.5 binary installation (the .msi), I get this error when I run hg.exe:
*** failed to import extension mercurial_keyring: No module named
mercurial_keyring
I tried to change my mercurial.ini, to specify the path to the mercurial_keyring.py file, instead of having mercurial find it (since it's in the PYTHONPATH).
Old:
[extensions]
mercurial_keyring =
New:
[extensions] mercurial_keyring =
c:/mercurial/extensions/mercurial_keyring.py
The error changes to:
abort: could not import module
keyring!
So while providing the path to the mercurial_keyring extension works, the dependent keyring module still cannot be found.
After further investigation, it appears that NO extensions work. They all produce the error:
*** failed to import extension [extension name]: No module named
[module name]
It appears that when running hg.exe, it is not aware of PYTHONPATH. I have tried:
Python 2.6.5 32 bit
Python 2.6.5 64 bit
Building Mercurial 1.5 from source with MinGW
Building Mercurial 1.5 from source with MSVC9
Using hg.exe from the 1.5 binary dist (.msi)
Using the hg.py in c:\python26\scripts when building from source
Various configurations in %userprofile%/mercurial.ini
Using setuptools (easy_install.exe) to install keyring and mercurial_keyring
Building keyring and mercurial_keyring from source (python setup.py bdist_wininst)
Nothing works. The closest I've got is using hg.py when building from source. It at least doesn't give me errors, and actually creates %userprofile%/wincrypto_pass.cfg when I enter my credentials. But on subsequent requests, it doesn't enter the credentials automatically. It prompts me for them again.
Interestingly, TortoiseHG is using the keyring. I just can't get it to work on the command line. I think something is going on with Win 7 x64 that is preventing mercurial (hg.exe) from seeing the PYTHONPATH, so it can't find any of the installed modules.
Does anyone have extensions working in Win 7 x64? Specifically with the binary installation of mercurial (not hg.py)?
UPDATE
I've found a suitable work around for now. Since TortoiseHG does work with mercurial_keyring, I've simply changed my PATH setup to include the tortoiseHG folder, but not c:\mercurial. Now when I type "hg" at the command line, it's using the hg.exe in the tortoiseHG folder, which works fine. Just the same, this is still a problem with mercurial extensions on Win 7 x64. Answers welcome.
Answering my own question with my previous update, since there are no other takers yet.
Suitable workaround: Since TortoiseHG does work with mercurial_keyring, I've simply changed my PATH to include the tortoiseHG folder, and exclude c:\mercurial. Now when I type "hg" at the command line, it's using the hg.exe in the tortoiseHG folder, which works fine with the keyring.
I'm using:
on Windows Server 2008 SP2 x86:
Python 2.6.5 x86
Mercurial 1.5.1 x86
TortoiseHg 1.0.1 x86
on Windows Server 2008 R2:
Python 2.6.5 x86
Mercurial 1.5.1 x86
TortoiseHg 1.0.1 x64
On both setups, all configured extensions are loaded without errors.
All tools are installed using the installers provided on their sites. Mercurial appears before TortoiseHg in PATH. I'm using a common configuration file ~/.hgrc for both tools, and a Mercurial.ini file in TortoiseHg installation folder that is loading just the mercurial_keyring extension.
On the command line I have to input the password every time it's needed, but in TortoiseHg the keyring extensions it's fully working.
From the Keyring Extension page on the Mercurial wiki:
If you are on Windows, we recommend you use TortoiseHg. THG ships with Windows specific keyring backends, without which the mercurial-keyring extension cannot function properly on Windows.
UPDATE http://asimilatorul.com/adapter/post/using-mercurial_keyring-extension-with-mercurial-on-windows/
You can copy the required files from TortoiseHg's library.zip into Mercurial's library.zip:
hgext\mercurial_keyring.pyo
keyring__init__.pyo
keyring\backend.pyo
keyring\core.pyo
win32_crypto.pyd
The extension page states that TortoiseHG has some additional components to make it work on Windows and that it doesn't work properly without them. It sounds like the workaround of referencing the TortoiseHG version may be the easiest way to get it working on Windows.